/*
 * The island itself. Sizes, radii and type follow the QML views in nalyx
 * (home/features/desktop/hyprland/isla/views). Shared by the page and the
 * artwork sources in art/src.
 */

@font-face {
  font-family: 'Isla Heros';
  src: url('../fonts/heros-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'Isla Heros';
  src: url('../fonts/heros-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: 'Isla Glyphs';
  src: url('../fonts/isla-glyphs.woff2') format('woff2');
  font-display: block;
}

:root {
  --accent: #3584e4;
  --accent-rgb: 53, 132, 228;
  --on-accent: #ffffff;
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.6);
  --ink-faint: rgba(255, 255, 255, 0.34);
  --fill: rgba(255, 255, 255, 0.09);
  --fill-hover: rgba(255, 255, 255, 0.15);
  --pill: #000000;
  --out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --in-quad: cubic-bezier(0.11, 0, 0.5, 0);
}

.isla {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  margin-inline: auto;
  transform-origin: 50% 0;
  font-family: 'Isla Heros', 'TeX Gyre Heros', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  user-select: none;
}

.isla-body {
  --shadow: 0;
  position: relative;
  overflow: hidden;
  background: var(--pill);
  box-shadow: 0 8px 28px rgba(0, 0, 0, var(--shadow));
  cursor: default;
}

/* Concave fillets where the body meets the top edge (IslaShape.qml). */
.isla-shoulder {
  flex: none;
  width: 9px;
  height: 9px;
}
.isla-shoulder-l {
  background: radial-gradient(circle at 0 100%, transparent 8.6px, var(--pill) 9.2px);
}
.isla-shoulder-r {
  background: radial-gradient(circle at 100% 100%, transparent 8.6px, var(--pill) 9.2px);
}

.isla-view {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.isla-view:not(.is-shown) {
  pointer-events: none;
}

/* Reveal.qml: in 300 ms OutCubic after a stagger, out 130 ms InQuad. */
.rv {
  opacity: 0;
  transform: scale(var(--from, 0.94));
  filter: blur(7px);
  transition:
    opacity 130ms var(--in-quad),
    transform 130ms var(--in-quad),
    filter 130ms var(--in-quad);
}
.is-shown .rv {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 300ms var(--out-cubic) var(--d, 0ms),
    transform 300ms var(--out-cubic) var(--d, 0ms),
    filter 300ms var(--out-cubic) var(--d, 0ms);
}
.isla-still .rv,
.isla-still .is-shown .rv {
  transition: none;
}

.ig {
  font-family: 'Isla Glyphs';
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  display: inline-block;
}
.i-accent {
  color: var(--accent);
}
.i-dim {
  color: var(--ink-dim);
}
.i-faint {
  color: var(--ink-faint);
}

.i-art {
  display: inline-grid;
  place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--tone) 72%, #000);
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.i-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.i-wave i {
  width: 3px;
  height: 14px;
  border-radius: 1.5px;
  background: var(--accent);
  transform-origin: 50% 50%;
  animation: i-wave 0.9s var(--out-cubic) infinite alternate;
}
.i-wave i:nth-child(1) { animation-duration: 0.62s; }
.i-wave i:nth-child(2) { animation-duration: 0.81s; animation-delay: -0.3s; }
.i-wave i:nth-child(3) { animation-duration: 0.54s; animation-delay: -0.2s; }
.i-wave i:nth-child(4) { animation-duration: 0.73s; animation-delay: -0.45s; }
@keyframes i-wave {
  from { transform: scaleY(0.22); }
  to { transform: scaleY(1); }
}

/* ---------------------------------------------------------------- compact */

.i-compact {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}
.i-c-left,
.i-c-right {
  display: flex;
  align-items: center;
}
.i-c-middle {
  width: 56px;
  flex: none;
}
.i-c-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-dim);
  margin-right: 9px;
}
.i-c-status .i-faint {
  font-size: 13px;
}
.i-c-clock {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.i-slot {
  display: inline-flex;
  align-items: center;
  width: 0;
  height: 32px;
  overflow: hidden;
  opacity: 0;
  transition:
    width 240ms var(--out-cubic),
    opacity 240ms var(--out-cubic);
}
.i-slot-wave {
  justify-content: flex-end;
}
.has-media .i-slot {
  width: 28px;
  opacity: 1;
  transition:
    width 320ms var(--out-cubic),
    opacity 320ms var(--out-cubic);
}
.isla-still-slots .i-slot {
  transition: none !important;
}

.i-ws {
  position: relative;
  display: inline-flex;
  gap: 1px;
  height: 20px;
}
.i-ws-lens {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--accent);
}
.i-ws-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  font: 700 13px/1 'Isla Heros', 'TeX Gyre Heros', sans-serif;
  color: var(--ink-dim);
  transition: color 160ms var(--out-cubic);
}
.i-ws-cell.is-active {
  color: var(--on-accent);
}
button.i-ws-cell {
  cursor: pointer;
}
button.i-ws-cell:hover:not(.is-active) {
  color: var(--ink);
}
button.i-ws-cell:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* --------------------------------------------------------------- expanded */

.i-expanded {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px 12px;
}
.i-x-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  padding: 0 4px;
}
.i-x-time {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.i-x-clockrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.i-x-clock {
  font-size: 30px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.i-x-weather {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 17px;
  color: var(--ink-dim);
}
.i-x-weather .ig {
  font-size: 16px;
}
.i-x-date {
  font-size: 13px;
  color: var(--ink-dim);
}
.i-x-buttons {
  display: flex;
  gap: 8px;
}
.i-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fill);
  font-size: 17px;
  flex: none;
}
.i-circle.is-accent {
  background: var(--accent);
  color: var(--on-accent);
}
.i-ring {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.i-ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.i-media {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 106px;
  padding: 10px 14px 12px 12px;
  border-radius: 22px;
  background: var(--fill);
  box-sizing: border-box;
}
.i-media-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.i-media-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.i-media-text b {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.i-media-text span {
  font-size: 13px;
  color: var(--ink-dim);
}
.i-transport {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.i-transport > .ig {
  width: 30px;
  text-align: center;
}
.i-circle-sm {
  width: 40px;
  height: 40px;
  font-size: 17px;
}
.i-media-progress {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.i-media-progress span:last-child {
  text-align: right;
}
.i-bar {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--fill-hover);
  overflow: hidden;
}
.i-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--ink);
}

.i-tray,
.i-history {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  border-radius: 20px;
  background: var(--fill);
  box-sizing: border-box;
}
.i-tray {
  padding: 0 12px 0 14px;
}
.i-tray-apps,
.i-tray-sys {
  display: flex;
  gap: 14px;
  font-size: 16px;
}
.i-tray-sys {
  font-size: 14px;
  gap: 18px;
}
.i-tray-slack {
  color: #36c5f0;
}
.i-tray-spotify {
  color: #1ed760;
}
.i-history {
  padding: 0 14px 0 16px;
  font-size: 13px;
  color: var(--ink-faint);
}
.i-history .ig {
  color: var(--ink);
  font-size: 14px;
}

/* ------------------------------------------------------------- volume osd */

.i-osd {
  display: grid;
  grid-template-columns: 22px 1fr 40px;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px 0 18px;
  font-size: 16px;
}
.i-bar-osd {
  height: 6px;
  border-radius: 3px;
}
.i-osd-value {
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------- peek */

.i-peek {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 18px 0 12px;
}
.i-peek-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.i-peek-text b {
  font-size: 14px;
}
.i-peek-text span {
  font-size: 12px;
  color: var(--ink-dim);
}

/* ----------------------------------------------------------- notification */

.i-notification {
  display: flex;
  gap: 12px;
  padding: 14px;
}
.i-n-pic {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1c1c1c;
  color: var(--tone);
  font-size: 26px;
}
.i-n-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.i-n-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.i-n-head b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.i-n-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.i-n-badge {
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}
.i-n-now {
  font-size: 12px;
  color: var(--ink-faint);
}
.i-n-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.32;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.i-n-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.i-n-action {
  flex: 1;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: var(--fill);
  color: var(--ink);
  font: 700 13px/30px 'Isla Heros', 'TeX Gyre Heros', sans-serif;
  text-align: center;
  transition:
    background-color 120ms var(--out-cubic),
    transform 140ms var(--out-cubic);
}
button.i-n-action {
  cursor: pointer;
}
button.i-n-action:hover {
  background: var(--fill-hover);
}
button.i-n-action:active {
  transform: scale(0.96);
}
button.i-n-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- launcher */

.i-launcher {
  display: flex;
  flex-direction: column;
}
.i-l-search {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 22px;
  font-size: 18px;
}
.i-l-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  caret-color: var(--accent);
  font: 400 18px/32px 'Isla Heros', 'TeX Gyre Heros', sans-serif;
}
.i-l-input::placeholder {
  color: var(--ink-faint);
}
/* The caret and the open launcher are the focus indicator here, like in
   the shell; a ring inside the pill would read as a second field. */
.i-l-input:focus-visible {
  outline: none;
}
.i-l-listwrap {
  position: relative;
  margin: 0 8px;
  padding-bottom: 10px;
}
.i-launcher:not(.has-rows) .i-l-listwrap {
  padding-bottom: 0;
}
.i-launcher.is-empty .i-l-listwrap {
  padding-bottom: 0;
}
.i-l-highlight {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.2);
}
.i-launcher:not(.has-rows) .i-l-highlight {
  display: none;
}
.i-l-list {
  position: relative;
}
.i-l-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px 0 18px;
  white-space: nowrap;
  cursor: default;
}
.i-l-dot {
  position: absolute;
  left: 4px;
  top: 20.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.i-l-row.is-open .i-l-dot {
  opacity: 1;
}
.i-l-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 24px;
  color: var(--tone);
  flex: none;
}
.i-l-row b {
  font-size: 15px;
}
.i-l-comment {
  font-size: 13px;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.i-l-action {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 12px;
  font-size: 12px;
  color: var(--ink-dim);
  opacity: 0;
  transition: opacity 140ms var(--out-cubic);
}
.i-l-row.is-current .i-l-action {
  opacity: 1;
}
.i-l-empty {
  margin: 0;
  padding: 0 16px;
  font-size: 14px;
  line-height: 46px;
  color: var(--ink-dim);
}
.i-l-empty:empty {
  display: none;
}

/* ---------------------------------------------------------------- spotify */

.i-spotify {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  gap: 12px;
}
.i-s-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.i-s-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.i-s-text b {
  font-size: 17px;
}
.i-s-text span {
  font-size: 14px;
  color: var(--ink-dim);
}
.i-s-text small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.i-s-like {
  font-size: 17px;
  margin-right: 8px;
}
.i-s-progress {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.i-s-progress span:last-child {
  text-align: right;
}
.i-s-progress .i-bar {
  margin: 0 4px 0 0;
}
.i-s-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 17px;
}
.i-s-side {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-left: 4px;
}
.i-s-vol {
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  font-size: 15px;
  color: var(--ink-dim);
}
.i-bar-vol {
  width: 78px;
}
.i-s-center {
  display: flex;
  align-items: center;
  gap: 30px;
}
.i-s-center > .ig:first-child,
.i-s-center > .ig:last-child {
  font-size: 15px;
  color: var(--ink-dim);
}
.i-s-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #000;
  font-size: 20px;
}

/* ---------------------------------------------------------- minimal pill */

/* CompactView.qml off the primary layout: the clock alone, centered, with
   the media slots either side (2 * 12 px padding plus 8). */
.i-compact-minimal {
  justify-content: center;
  padding: 0 16px;
}

/* ------------------------------------------------------------- layout osd */

.i-kb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  white-space: nowrap;
  font-size: 17px;
}
.i-kb-code {
  font-size: 14px;
  color: var(--accent);
}
.i-kb-name {
  font-size: 13px;
  color: var(--ink-dim);
}

/* --------------------------------------------------- notification picture */

.i-n-pic.is-picture {
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
}

/* -------------------------------------------------------------- tray menu */

.i-tray-app {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -6px -7px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: background-color 100ms var(--out-cubic);
}
.i-tray-app:hover,
.i-tray-app[aria-expanded='true'] {
  background: var(--fill-hover);
}
.i-tray-app:focus-visible,
.i-m-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.i-expanded.has-menu .i-history,
.i-menu-host:empty {
  display: none;
}
.i-menu {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 20px;
  background: var(--fill);
  transform-origin: 50% 0;
}
.is-shown .rv.is-entering {
  opacity: 0;
  transform: scale(var(--from, 0.94));
  filter: blur(7px);
  transition: none;
}
.i-m-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: 400 13px/1 'Isla Heros', 'TeX Gyre Heros', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 100ms linear;
}
.i-m-row:hover {
  background: var(--fill-hover);
}
.i-m-row.is-bold {
  font-weight: 700;
}
.i-m-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.i-m-lead {
  font-size: 16px;
  color: var(--ink-dim);
}
.i-m-trail {
  font-size: 15px;
  color: var(--ink-faint);
}
.i-m-trail.is-on {
  color: var(--accent);
}
.i-m-sep {
  height: 9px;
  margin: 0 12px;
  background: linear-gradient(var(--fill), var(--fill)) center / 100% 1px no-repeat;
}

/* --------------------------------------------------------------- whatsapp */

/* WhatsApp Web inside the pill, as whatsapp/isla.css repaints it: true
   black shell, the list as a raised card (radius 22, 6 px gap), the accent
   for unread counts and the open row, the palette's secondary (a deep
   accent) for outgoing bubbles. Sizes are WhatsApp's own. */
.i-wa {
  --wa-raised: #1e1e1e;
  --wa-high: #282828;
  --wa-out: color-mix(in srgb, var(--accent) 50%, #000);
  --wa-dim: rgba(255, 255, 255, 0.6);
  --wa-line: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.wa-page {
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  overflow: hidden;
  background: #000;
  transform-origin: 50% 0;
}
.i-wa button {
  font: inherit;
  color: inherit;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.i-wa button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.wa-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--tone);
  font-size: calc(var(--size) * 0.34);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.wa-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}
.wa-badge.is-muted {
  background: var(--wa-high);
  color: var(--ink);
}
.wa-badge[hidden] {
  display: none;
}

.wa-list {
  display: flex;
  flex-direction: column;
  flex: 0 0 276px;
  margin-right: 6px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--wa-raised);
  transition:
    margin-left 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0s;
}
.is-folded .wa-list {
  margin-left: -282px;
  visibility: hidden;
  transition:
    margin-left 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 240ms;
}
.wa-lhead {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 4px;
}
.wa-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: var(--wa-high);
  color: var(--wa-dim);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.wa-search .ig {
  flex: none;
  font-size: 17px;
}
.wa-search span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-sidebar-icon {
  display: grid;
}
.wa-hbtn {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
}
.wa-chips {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
}
.wa-chip {
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--wa-line);
  border-radius: 14px;
  color: var(--wa-dim);
  font-size: 13px;
  line-height: 26px;
}
.wa-chip.is-on {
  border-color: transparent;
  background: var(--wa-high);
  color: var(--ink);
}
.wa-rows {
  display: flex;
  flex-direction: column;
  padding: 0 6px;
  overflow: hidden;
}
.wa-row-btn {
  display: block;
  width: 100%;
  border-radius: 14px !important;
  text-align: left;
}
.wa-row-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
.wa-row-btn.is-current {
  background: rgba(var(--accent-rgb), 0.24) !important;
}
.wa-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 10px;
}
.wa-row-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.wa-row-top,
.wa-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wa-row-top b {
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-time {
  flex: none;
  font-size: 12px;
  color: var(--wa-dim);
}
.wa-time.is-unread {
  color: var(--accent);
}
.wa-preview {
  min-width: 0;
  font-size: 13px;
  color: var(--wa-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.wa-chead {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 54px;
  padding: 0 6px;
}
.wa-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  font-size: 19px;
}
.wa-toggle:hover,
.is-folded .wa-toggle {
  background: rgba(255, 255, 255, 0.09) !important;
}
.wa-toggle-badge,
.wa-recent .wa-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  border: 2px solid #000;
}
.wa-head-avatar {
  display: flex;
  margin-left: 2px;
}
.wa-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
  padding-left: 6px;
}
.wa-who b {
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-who span {
  font-size: 13px;
  color: var(--wa-dim);
}
.wa-recents {
  display: none;
}
.is-folded .wa-recents:not(:empty) {
  display: flex;
  flex: none;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 22px;
  background: var(--wa-raised);
}
.wa-recent {
  position: relative;
  display: flex;
  border-radius: 50% !important;
}
.wa-recent:hover .wa-avatar {
  opacity: 0.8;
}
.wa-recent .wa-badge {
  top: -5px;
  right: -7px;
}
.wa-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
  padding: 0 10px 0 8px;
  font-size: 20px;
  color: var(--wa-dim);
}
.wa-call {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--wa-line);
  border-radius: 17px;
  color: var(--ink);
}
.wa-call-more {
  font-size: 14px;
  color: var(--wa-dim);
}
.wa-thread {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  flex: 1;
  min-height: 0;
  padding: 12px 56px 10px;
  overflow: hidden;
  transition: padding 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-folded .wa-thread {
  padding-inline: 96px;
}
.wa-day {
  align-self: center;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--wa-raised);
  color: var(--wa-dim);
  font-size: 12px;
}
.wa-msg {
  position: relative;
  max-width: 64%;
  padding: 6px 9px 8px;
  border-radius: 10px;
  background: var(--wa-high);
  font-size: 14px;
  line-height: 19px;
}
.wa-msg.out {
  align-self: flex-end;
  background: var(--wa-out);
}
.wa-msg.in {
  align-self: flex-start;
}
.wa-msg.in + .wa-msg.out,
.wa-msg.out + .wa-msg.in {
  margin-top: 8px;
}
.wa-from {
  display: block;
  font-size: 13px;
  color: var(--accent);
}
.wa-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 7px 0 -4px 10px;
  font-size: 11px;
  line-height: 1;
  color: var(--wa-dim);
}
.wa-read {
  font-size: 15px;
  color: var(--accent);
}
.wa-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 12px 10px;
}
.wa-input {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border-radius: 23px;
  background: var(--wa-raised);
  color: var(--wa-dim);
  font-size: 22px;
}
.wa-input span:last-child {
  font-size: 15px;
}
.wa-mic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--wa-dim);
}

/* Ctrl+K: WhatsApp's own search as a sheet over the dimmed panel. */
.wa-sheet-back {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 26px;
  background: rgba(0, 0, 0, 0.6);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 160ms var(--out-cubic),
    visibility 0s linear 160ms;
}
.has-sheet .wa-sheet-back {
  visibility: visible;
  opacity: 1;
  transition: opacity 160ms var(--out-cubic);
}
.wa-sheet {
  display: flex;
  flex-direction: column;
  width: 560px;
  height: 470px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--wa-raised);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(-6px) scale(0.98);
  transition: transform 220ms var(--out-cubic);
}
.has-sheet .wa-sheet {
  transform: none;
}
.wa-sheet-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin: 8px 8px 6px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--wa-high);
  color: var(--wa-dim);
  font-size: 17px;
}
.wa-sheet-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font: 400 15px/1 'Isla Heros', 'TeX Gyre Heros', sans-serif;
  caret-color: var(--accent);
}
.wa-sheet-input::placeholder {
  color: var(--wa-dim);
}
/* The sheet itself is the focus indicator, as in the shell's launcher. */
.wa-sheet-input:focus-visible {
  outline: none;
}
.wa-sheet-rows {
  flex: 1;
  min-height: 0;
  padding: 4px 6px;
  border-top: 1px solid var(--wa-line);
  overflow: hidden;
}
.wa-sheet-rows .wa-row {
  border-radius: 14px;
  cursor: pointer;
}
.wa-sheet-rows .wa-row.is-active {
  background: rgba(var(--accent-rgb), 0.24);
}
.wa-sheet-empty {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--wa-dim);
}
.wa-sheet-foot {
  display: flex;
  gap: 28px;
  flex: none;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--wa-line);
  font-size: 12px;
  color: var(--wa-dim);
}

@media (prefers-reduced-motion: reduce) {
  .rv,
  .is-shown .rv,
  .i-slot,
  .has-media .i-slot,
  .i-ws-cell,
  .i-l-action,
  .i-m-row,
  .i-tray-app,
  .wa-list,
  .is-folded .wa-list,
  .wa-thread,
  .wa-sheet,
  .wa-sheet-back,
  .has-sheet .wa-sheet-back {
    transition: none;
  }
  .i-wave i {
    animation: none;
    transform: scaleY(0.6);
  }
  .i-wave i:nth-child(2n) {
    transform: scaleY(0.35);
  }
}
