/* A compact dark activity surface; translucency belongs to these controls. */
.island-rail {
  min-height: 56px;
  padding: 8px 16px;
  background: transparent;
  border: 0;
}
.island-capsule {
  min-height: 40px;
  width: auto;
  max-width: min(100%, 320px);
  padding: 4px 12px 4px 6px;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.17);
  background:
    linear-gradient(155deg, rgb(255 255 255 / 0.08), transparent 55%), rgb(15 17 21 / 0.96);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 4px 12px rgb(0 0 0 / 0.16);
  backdrop-filter: blur(20px) saturate(1.3);
  color: #f5f6f8;
}
.island-capsule img {
  width: 28px;
  height: 28px;
}
.island-caption {
  max-width: 190px;
  font-size: 12px;
  font-weight: 500;
}
.island-live-clock {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: #ffbd69;
  border-inline-start: 1px solid rgb(255 255 255 / 0.18);
  padding-inline-start: 8px;
  white-space: nowrap;
}
.island-rail[data-focus='paused'] .island-live-clock {
  color: #c4cad4;
}
.island-rail[data-focus='complete'] .island-live-clock {
  color: #bce6cf;
}
.island-count {
  min-width: 20px;
  font-size: 10px;
  padding: 0 4px;
  background: #bce6cf;
  color: #111318;
}
.island-dialog {
  --surface: #24272d;
  --surface-alt: rgb(255 255 255 / 0.065);
  --page: rgb(0 0 0 / 0.12);
  --text: #f5f6f8;
  --muted: #b6bdc8;
  --line: rgb(255 255 255 / 0.14);
  --accent: #bce6cf;
  --accent-hover: #d2efde;
  --accent-soft: rgb(188 230 207 / 0.12);
  --focus: #e4fff0;
  --red: #ffb6b6;
  color-scheme: dark;
  width: min(480px, calc(100% - 32px));
  max-width: 480px;
  padding: 20px;
  margin-top: 64px;
  border-radius: 32px;
  background: rgb(19 21 26 / 0.96);
  color: var(--text);
  border: 1px solid rgb(255 255 255 / 0.19);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 20px 60px rgb(0 0 0 / 0.3);
  backdrop-filter: blur(28px) saturate(1.25);
  max-height: calc(100dvh - 80px);
}
.island-dialog::backdrop {
  background: rgb(0 0 0 / 0.12);
  backdrop-filter: none;
}
.island-header {
  gap: 12px;
}
.island-header .island-identity {
  flex: 1;
  min-width: 0;
}
.island-header h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}
.island-scope {
  font-size: 11px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.island-header .island-header-actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.island-header .icon-button,
.island-avatar-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.065);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 8px;
}
.island-avatar-button {
  padding: 2px;
}
.island-avatar-button img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.island-header .icon-button:hover,
.island-avatar-button:hover {
  background: rgb(255 255 255 / 0.13);
}
.island-header .icon-button svg {
  width: 18px;
  height: 18px;
}
.island-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.065);
  margin: 16px 0;
  flex-wrap: nowrap;
}
.island-tabs [data-island-tab] {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 20px;
  color: var(--muted);
}
.island-tabs [aria-pressed='true'] {
  background: rgb(255 255 255 / 0.14);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 2px 5px rgb(0 0 0 / 0.15);
}
.island-compose textarea {
  font-size: 16px;
  border-radius: 20px;
}
.island-compose > div {
  align-items: end;
}
.island-send {
  border-radius: 50%;
  width: 44px;
  height: 44px;
}
.island-chat .secondary,
.island-updates .secondary {
  border-radius: 20px;
}
.island-turn {
  padding: 8px 0;
}
.island-user {
  border-radius: 16px;
}
.island-notification {
  border-radius: 12px;
  margin-bottom: 4px;
  border: 0;
}
.island-notification.is-unread {
  background: rgb(188 230 207 / 0.1);
}
.island-empty {
  padding: 20px 8px;
}
.focus-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.focus-phase {
  color: #bce6cf;
}
.island-focus[data-phase='paused'] .focus-phase {
  color: #c4cad4;
}
.island-focus[data-phase='complete'] .focus-phase {
  color: #ffbd69;
}
.focus-task-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 6px;
}
.focus-task-select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #292c32;
  font-size: 14px;
}
.focus-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 20px 0;
}
.focus-dial {
  width: 148px;
  height: 148px;
  position: relative;
}
.focus-dial svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 4;
  transform: rotate(-90deg);
}
.focus-track {
  stroke: rgb(255 255 255 / 0.1);
}
.focus-arc {
  stroke: #ffbd69;
  stroke-dasharray: 452.39;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s linear;
}
.island-focus[data-phase='complete'] .focus-arc {
  stroke: #bce6cf;
}
.focus-dial > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.focus-clock {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.focus-kind {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.focus-task-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.focus-task-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 12px;
  overflow-wrap: anywhere;
}
.focus-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.focus-presets button {
  min-height: 36px;
  border: 1px solid transparent;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
.focus-presets [aria-pressed='true'] {
  border-color: rgb(255 189 105 / 0.6);
  color: #ffbd69;
  background: rgb(255 189 105 / 0.08);
}
.focus-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.focus-controls .primary {
  border: 0;
  border-radius: 24px;
  min-height: 44px;
  min-width: 100px;
  font-size: 13px;
  justify-content: center;
  background: #ffbd69;
  color: #17191d;
  padding: 8px 16px;
}
.focus-controls svg {
  width: 16px;
  height: 16px;
}
.focus-controls .icon-button {
  border-radius: 50%;
  background: rgb(255 255 255 / 0.065);
  color: var(--muted);
  width: 40px;
  height: 40px;
  min-width: 40px;
}
.focus-task-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  flex-wrap: wrap;
}
.focus-task-actions button {
  font-size: 11px;
  min-height: 40px;
  gap: 6px;
}
.focus-task-actions svg {
  width: 15px;
  height: 15px;
}
.focus-task-actions .secondary {
  border-radius: 20px;
  background: rgb(188 230 207 / 0.09);
  border-color: rgb(188 230 207 / 0.2);
  color: #bce6cf;
  padding: 8px 12px;
}
.focus-footnote {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin: 12px 0 0;
}
@media (max-width: 599px) {
  .island-dialog {
    width: calc(100% - 16px);
    padding: 16px;
    margin-top: max(8px, env(safe-area-inset-top));
    max-height: calc(100dvh - 16px);
    border-radius: 28px;
  }
  .island-caption {
    max-width: 170px;
  }
  .focus-body {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
  }
  .focus-dial {
    width: 128px;
    height: 128px;
  }
  .focus-clock {
    font-size: 34px;
  }
  .focus-controls .primary {
    min-width: 88px;
    padding: 8px 12px;
  }
  .focus-task-actions {
    gap: 4px;
  }
  .focus-task-actions button {
    font-size: 10px;
  }
  .island-header {
    gap: 8px;
  }
  .island-tabs {
    margin: 12px 0;
  }
}
@media (max-width: 359px) {
  .focus-body {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px 0;
  }
  .focus-dial {
    margin: 0 auto;
    width: 120px;
    height: 120px;
  }
  .focus-detail {
    text-align: center;
  }
  .focus-presets,
  .focus-controls {
    justify-content: center;
  }
  .focus-task-meta {
    margin-bottom: 8px;
  }
  .focus-task-actions {
    justify-content: center;
  }
  .island-caption {
    max-width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .focus-arc {
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .island-capsule,
  .island-dialog {
    background: #13151a;
    backdrop-filter: none;
  }
  .island-dialog {
    --line: #737b89;
    border-color: #737b89;
  }
  .island-tabs [aria-pressed='true'] {
    background: #404650;
  }
  .island-dialog::backdrop {
    background: rgb(0 0 0 / 0.25);
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .island-dialog,
  .island-capsule {
    background: #13151a;
  }
}
