:root {
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --snow: #f6f8fb;
  --surface: #ffffff;
  --ink: #142033;
  --navy: #142743;
  --navy-raised: #1b3458;
  --frost: #b7cbea;
  --gold: #e9a21a;
  --slate: #667085;
  --muted: #8b95a5;
  --line: #dce2ea;
  --line-dark: rgba(220, 226, 234, 0.18);
  --success: #287a55;
  --danger: #b24444;
  --focus: #2e68ba;
  --rail-width: 264px;
  --topbar-height: 72px;
  background: var(--snow);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

.sign-in-page {
  min-height: 100vh;
  background: var(--snow);
}

.sign-in-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
}

.sign-in-brand {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 72px);
  color: #ffffff;
  background: var(--navy);
}

.sign-in-wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.sign-in-wordmark .brand-mark {
  width: 34px;
  height: 34px;
}

.sign-in-brand-copy {
  max-width: 400px;
}

.sign-in-brand-copy p {
  margin: 0 0 14px;
  color: var(--frost);
  font-size: 15px;
  font-weight: 600;
}

.sign-in-brand-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.sign-in-panel {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 48px;
  background: var(--surface);
}

.sign-in-content {
  width: min(100%, 420px);
}

.sign-in-content h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.sign-in-intro {
  max-width: 40ch;
  margin: 18px 0 32px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.55;
}

.sign-in-actions {
  display: grid;
  gap: 16px;
}

.sign-in-provider {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.sign-in-provider::after {
  display: none;
}

.sign-in-provider:hover {
  border-color: #b9c5d5;
  background: #fbfcfe;
}

.sign-in-provider:active {
  transform: scale(0.99);
}

.sign-in-google {
  color: #ffffff;
  border-color: var(--navy);
  background: var(--navy);
}

.sign-in-google:hover {
  border-color: var(--navy-raised);
  background: var(--navy-raised);
}

.google-mark {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: #ffffff;
}

.sign-in-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.sign-in-divider::before,
.sign-in-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.sign-in-help {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .sign-in-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .sign-in-brand {
    min-height: 288px;
    gap: 64px;
    padding: 28px;
  }

  .sign-in-brand-copy p {
    margin-bottom: 8px;
  }

  .sign-in-brand-copy h1 {
    max-width: 13ch;
    font-size: 32px;
  }

  .sign-in-panel {
    place-items: start center;
    padding: 40px 28px max(48px, env(safe-area-inset-bottom));
  }

  .sign-in-content {
    width: 100%;
    max-width: 480px;
  }

  .sign-in-content h2 {
    font-size: 34px;
  }

  .sign-in-intro {
    margin: 16px 0 28px;
    line-height: 1.5;
  }

  .sign-in-provider {
    min-height: 54px;
  }

  .sign-in-help {
    margin-top: 20px;
  }
}

@media (max-width: 430px) {
  .sign-in-brand {
    min-height: 256px;
    gap: 48px;
    padding: 24px;
  }

  .sign-in-brand-copy h1 {
    font-size: 30px;
  }

  .sign-in-panel {
    padding: 36px 24px max(40px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sign-in-provider {
    transition: none;
  }
}

.onboarding-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(183, 203, 234, 0.34), transparent 32%),
    linear-gradient(145deg, #f8fafc 0%, #eef3f9 100%);
}

.onboarding-page [hidden] {
  display: none !important;
}

.onboarding-card {
  width: min(100%, 520px);
  padding: 36px;
  border: 1px solid rgba(20, 39, 67, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 72px rgba(20, 39, 67, 0.14);
}

.onboarding-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.onboarding-card .eyebrow {
  margin: 0 0 10px;
  color: var(--focus);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.onboarding-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.onboarding-intro {
  max-width: 42ch;
  margin: 18px 0 30px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.55;
}

.onboarding-form {
  display: grid;
  gap: 18px;
}

.onboarding-primary {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.onboarding-loading {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate);
}

.onboarding-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(233, 162, 26, 0.35);
  animation: onboarding-pulse 1.4s ease-out infinite;
}

.onboarding-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.onboarding-account form {
  margin: 0;
}

@keyframes onboarding-pulse {
  70% { box-shadow: 0 0 0 12px rgba(233, 162, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 162, 26, 0); }
}

@media (max-width: 560px) {
  .onboarding-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .onboarding-brand {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-pulse {
    animation: none;
  }
}

body {
  margin: 0;
  background: var(--snow);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(46, 104, 186, 0.32);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.project-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--rail-width);
  min-height: 100vh;
  flex-direction: column;
  padding: 24px 16px 16px;
  overflow-y: auto;
  color: #f8fafc;
  background: var(--navy);
}

.brand {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(233, 162, 26, 0.12);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.project-switcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  padding: 9px 10px;
  text-align: left;
  color: inherit;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.project-switcher:hover {
  background: rgba(255, 255, 255, 0.075);
}

.project-switcher[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
}

.project-switcher[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.project-monogram {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  border-radius: 8px;
  background: var(--frost);
}

.project-switcher-copy {
  min-width: 0;
}

.project-switcher-copy strong,
.project-switcher-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-switcher-copy strong {
  font-size: 14px;
  line-height: 20px;
}

.project-switcher-copy span {
  font-size: 12px;
  line-height: 16px;
  color: rgba(248, 250, 252, 0.62);
}

.chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  opacity: 0.7;
  transition: transform 160ms ease;
}

.project-menu {
  position: fixed;
  top: 160px;
  left: 16px;
  z-index: 32;
  width: calc(var(--rail-width) - 32px);
  max-height: min(520px, calc(100vh - 176px));
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(20, 32, 51, 0.14);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(8, 20, 37, 0.28);
}

.project-menu[hidden] {
  display: none;
}

.project-menu > header {
  display: grid;
  gap: 2px;
  padding: 14px 14px 11px;
  border-bottom: 1px solid var(--line);
}

.project-menu > header span {
  font-size: 11px;
  color: var(--muted);
}

.project-menu > header strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-menu-list {
  max-height: 330px;
  overflow-y: auto;
  padding: 6px;
}

.project-menu-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.project-menu-item:hover,
.project-menu-item:focus-visible,
.project-menu-item.is-current {
  background: #edf1f6;
}

.project-menu-monogram {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #244b78;
  border-radius: 7px;
  background: #dfe9f7;
}

.project-menu-item > span:nth-child(2) {
  min-width: 0;
}

.project-menu-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-menu-item strong {
  font-size: 13px;
}

.project-menu-item > svg,
.project-menu > footer svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.project-menu-item > svg {
  color: var(--success);
}

.project-menu > footer {
  padding: 6px;
  border-top: 1px solid var(--line);
}

.project-menu > footer[hidden] {
  display: none;
}

.project-menu > footer button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.project-menu > footer button:hover {
  background: #edf1f6;
}

.primary-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.72);
  border-radius: 8px;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.is-active::before {
  position: absolute;
  inset: 10px auto 10px -16px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
  content: "";
}

.nav-count,
.nav-signal {
  font-size: 11px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.54);
}

.nav-signal {
  padding: 2px 6px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(183, 203, 234, 0.22);
}

.room-nav {
  display: grid;
  gap: 2px;
  padding: 4px 0 10px 36px;
}

.room-nav-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  overflow: hidden;
  text-align: left;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.54);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.room-nav-item:hover {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
}

.room-nav-item.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.room-nav-item > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-nav-item svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.room-nav-dot {
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-radius: 50%;
  background: currentColor;
}

.account-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  margin-top: auto;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  text-align: left;
  color: inherit;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.account-button:hover {
  background: rgba(255, 255, 255, 0.055);
}

.account-button strong,
.account-button small {
  display: block;
}

.account-button strong {
  font-size: 13px;
}

.account-button small {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.5);
}

.account-settings-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(248, 250, 252, 0.62);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #dfe7f4;
}

.avatar-navy {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  background: #31537f;
}

.avatar-blue {
  color: #183253;
  background: #c5d7f0;
}

.avatar-plum {
  color: #4c3158;
  background: #e4d4e8;
}

.avatar-small {
  width: 28px;
  height: 28px;
  border-width: 1px;
  font-size: 9px;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.participant-avatar {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.avatar-guest-mark {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  font-size: 7px;
  line-height: 1;
  font-weight: 750;
  color: #60446b;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #f0e5f2;
}

.guest-badge {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  padding: 0 6px;
  font-size: 10px;
  line-height: 15px;
  font-weight: 650;
  color: #60446b;
  border: 1px solid #decfe3;
  border-radius: 999px;
  background: #f8f2f9;
  white-space: nowrap;
}

.guest-visible-mark {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  padding: 0 6px;
  font-size: 10px;
  line-height: 15px;
  font-style: normal;
  font-weight: 650;
  color: #315985;
  border: 1px solid #c4d4e9;
  border-radius: 999px;
  background: #f1f6fc;
  white-space: nowrap;
}

.work-area {
  min-height: 100vh;
  margin-left: var(--rail-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(16px);
}

.mobile-brand {
  display: none;
}

.page-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.page-identity:hover {
  background: rgba(220, 226, 234, 0.52);
}

.page-identity > span {
  max-width: 200px;
  overflow: hidden;
  color: var(--slate);
  text-overflow: ellipsis;
}

.page-identity svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.page-identity strong {
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger {
  display: flex;
  width: min(260px, 25vw);
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: left;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.search-trigger:hover {
  border-color: #c7d0dc;
  background: var(--surface);
}

.notification-trigger {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
  color: var(--ink);
  border-color: #c7d0dc;
  background: var(--surface);
}

.notification-trigger svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid var(--snow);
  border-radius: 9px;
  background: var(--danger);
}

.notification-badge[hidden] {
  display: none;
}

.notification-panel {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  bottom: 0;
  z-index: 18;
  width: min(390px, calc(100vw - var(--rail-width)));
  color: var(--ink);
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -18px 0 50px rgba(20, 32, 51, 0.12);
}

.participant-panel {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  bottom: 0;
  z-index: 19;
  width: min(420px, calc(100vw - var(--rail-width)));
  color: var(--ink);
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -18px 0 50px rgba(20, 32, 51, 0.12);
}

.participant-panel[hidden] {
  display: none;
}

.participant-panel > header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--line);
}

.participant-panel-heading,
.participant-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-panel-heading {
  align-items: baseline;
}

.participant-panel-invite {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 12px;
  color: #ffffff;
  background: var(--navy);
}

.participant-panel h2 {
  margin: 0;
  font-size: 16px;
}

.participant-panel > header span {
  font-size: 11px;
  color: var(--muted);
}

.participant-panel-body {
  height: calc(100% - 68px);
  overflow-y: auto;
}

.participant-list {
  border-bottom: 1px solid var(--line);
}

.participant-list-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: var(--surface);
  cursor: pointer;
}

.participant-list-item:last-child {
  border-bottom: 0;
}

.participant-list-item:hover,
.participant-list-item.is-selected {
  background: #f2f6fb;
}

.participant-list-item.is-selected {
  box-shadow: inset 3px 0 var(--navy);
}

.participant-list-item > span:not(.participant-avatar),
.participant-list-item strong,
.participant-list-item small {
  display: block;
}

.participant-list-item strong {
  font-size: 13px;
}

.participant-list-item small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.participant-list-item > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.participant-detail {
  padding: 0 20px 30px;
}

.participant-detail-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.participant-detail-empty > span {
  color: var(--gold);
  font-size: 22px;
}

.participant-detail-empty strong {
  margin-top: 8px;
  font-size: 13px;
}

.participant-detail-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.participant-access > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.participant-access h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.participant-access header p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 17px;
  color: var(--muted);
}

.participant-role-choices {
  margin-top: 16px;
}

.participant-role-choices .choice-row {
  padding-inline: 2px;
}

.participant-permissions {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.participant-save {
  width: 100%;
}

.participant-danger-zone {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.participant-remove-action {
  min-height: 36px;
  padding: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--danger);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.participant-removal-confirm strong,
.participant-removal-confirm p {
  display: block;
}

.participant-removal-confirm strong {
  font-size: 13px;
}

.participant-removal-confirm p {
  margin: 5px 0 14px;
  font-size: 12px;
  line-height: 18px;
  color: var(--slate);
}

.participant-removal-confirm > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel > header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--line);
}

.notification-panel > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-panel h2 {
  margin: 0;
  font-size: 16px;
}

.notification-panel header span {
  font-size: 11px;
  color: var(--muted);
}

.notification-list {
  height: calc(100% - 68px);
  overflow-y: auto;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  width: 100%;
  gap: 11px;
  padding: 15px 18px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.notification-item:hover {
  background: #f6f8fb;
}

.notification-item.is-unread {
  background: #f2f6fb;
}

.notification-item.is-unread::before {
  position: absolute;
  top: 22px;
  left: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--focus);
  content: "";
}

.notification-item .avatar {
  width: 32px;
  height: 32px;
}

.notification-content,
.notification-action,
.notification-item small,
.notification-item time {
  display: block;
}

.notification-action {
  font-size: 12px;
}

.notification-item small {
  margin-top: 5px;
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--slate);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item time {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

.notification-item .notification-meta {
  display: flex;
  align-items: center;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

.notification-project {
  overflow: hidden;
  font-weight: 600;
  color: #526176;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-project::after {
  margin: 0 6px;
  color: #a0a9b6;
  content: "·";
}

.notification-action .guest-badge {
  margin: 0 4px;
  vertical-align: 1px;
}

.notification-item .notification-meta time {
  margin-top: 0;
}

.notification-empty {
  display: grid;
  min-height: 280px;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.notification-empty > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--success);
  border: 1px solid #c9dfd4;
  border-radius: 50%;
}

.notification-empty strong {
  margin-top: 12px;
  font-size: 13px;
}

.notification-empty p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.search-trigger svg,
.search-field svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.search-trigger span {
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

kbd {
  padding: 2px 5px;
  font: 500 11px/16px ui-sans-serif, -apple-system, sans-serif;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--snow);
  box-shadow: 0 1px 0 rgba(20, 32, 51, 0.05);
}

.people-stack {
  display: flex;
  padding-left: 8px;
}

.participant-trigger {
  min-height: 40px;
  align-items: center;
  padding: 4px 7px 4px 14px;
  color: var(--slate);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.participant-trigger:hover,
.participant-trigger[aria-expanded="true"] {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.participant-trigger-count {
  min-width: 16px;
  margin-left: 5px;
  font-size: 11px;
  font-weight: 650;
  color: currentColor;
}

.people-stack .avatar {
  margin-left: -8px;
}

.people-stack .participant-avatar {
  margin-left: -8px;
}

.people-stack .participant-avatar .avatar {
  margin-left: 0;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes control-pending-spin {
  to { transform: rotate(360deg); }
}

button.is-pending {
  cursor: wait;
}

.button.is-pending::before,
.send-button.is-pending::after,
.add-icon-button.is-pending::after,
.icon-button.is-pending::after,
.reaction-chip.is-pending::after,
.message-actions button.is-pending::after,
.task-action-menu button.is-pending::after {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: control-pending-spin 650ms linear infinite;
  content: "";
}

:is(.send-button, .add-icon-button, .icon-button, .reaction-chip, .message-actions button, .task-action-menu button).is-pending {
  position: relative;
}

:is(.send-button, .add-icon-button, .icon-button, .reaction-chip, .message-actions button, .task-action-menu button).is-pending > * {
  opacity: 0;
}

.message-actions button.is-pending {
  color: transparent;
}

.message-actions button.is-pending::after {
  color: var(--slate);
}

:is(.send-button, .add-icon-button, .icon-button, .reaction-chip, .message-actions button, .task-action-menu button).is-pending::after {
  position: absolute;
  inset: 0;
  margin: auto;
}

.button-primary {
  color: #ffffff;
  background: var(--navy);
}

.button-primary:hover {
  background: #1b355a;
}

.button-danger {
  color: #ffffff;
  background: var(--danger);
}

.button-danger:hover {
  background: #993939;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: #bdc8d7;
  background: #fbfcfe;
}

.button-quiet {
  color: var(--slate);
  background: transparent;
}

.button-quiet:hover {
  color: var(--ink);
  background: #eef2f7;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.view {
  min-height: calc(100vh - var(--topbar-height));
}

.mobile-nav {
  display: none;
}

/* Shared view structure */
.section-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 48px 48px 80px;
}

.section-shell.room-shell {
  width: min(100%, 900px);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h1 {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.section-heading p {
  max-width: 600px;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--slate);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.section-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section-meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58a77f;
}

.text-action {
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.text-action:hover {
  color: var(--ink);
  background: #edf1f6;
}

.empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  text-align: center;
  color: var(--slate);
  border: 1px dashed #cbd4e0;
  border-radius: 10px;
}

.empty-state h2 {
  margin: 12px 0 4px;
  font-size: 17px;
  color: var(--ink);
}

.empty-state p {
  max-width: 360px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 21px;
}

/* Room */
.room-view {
  display: flex;
  height: calc(100vh - var(--topbar-height));
  min-height: 520px;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.room-header {
  display: flex;
  min-height: 68px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.room-heading {
  min-width: 0;
}

.room-mobile-select {
  display: none;
}

.room-mobile-audience {
  display: none;
}

.room-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-title-line h1 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.room-audience {
  display: flex;
  align-items: center;
  min-height: 18px;
  padding-left: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  border-left: 1px solid var(--line);
}

.room-heading p {
  max-width: min(680px, 55vw);
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  color: var(--slate);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-header-people {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--slate);
}

.room-participant-summary {
  display: flex;
  align-items: center;
  gap: 7px;
}

.room-participant-summary > span + span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: #60446b;
}

.room-participant-summary > span + span::before {
  color: #a7afbb;
  content: "·";
}

.room-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
}

.room-layout.has-thread {
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 420px);
}

.room-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--surface);
}

.conversation-scroller {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.conversation {
  display: grid;
  width: min(100%, 960px);
  margin: auto;
  padding: 16px 36px 28px;
}

.room-empty {
  display: grid;
  min-height: 240px;
  place-content: center;
  text-align: center;
}

.room-empty strong {
  font-size: 15px;
}

.room-empty p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--slate);
}

.message {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  margin: 0 -10px;
  padding: 5px 10px 8px;
  border-radius: 6px;
}

.message:hover,
.message:focus-within {
  background: #f7f9fc;
}

.message.is-compact {
  padding-top: 1px;
  padding-bottom: 3px;
}

.message-avatar-cell {
  display: flex;
  min-height: 22px;
  align-items: flex-start;
  justify-content: center;
}

.message-avatar-cell > .avatar {
  width: 36px;
  height: 36px;
  border: 0;
}

.message-avatar-cell > time {
  margin-top: 2px;
  font-size: 10px;
  line-height: 18px;
  color: transparent;
}

.message:hover .message-avatar-cell > time,
.message:focus-within .message-avatar-cell > time {
  color: var(--muted);
}

.message-content {
  position: relative;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-header strong {
  font-size: 14px;
  font-weight: 680;
}

.message-header time {
  font-size: 12px;
  color: var(--muted);
}

.message-body {
  max-width: 760px;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 21px;
  color: #27364b;
  white-space: pre-wrap;
}

.message-inline-link {
  display: inline;
  padding: 0;
  font: inherit;
  color: #315985;
  text-decoration: underline;
  text-decoration-color: #aebfd5;
  text-underline-offset: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.message-inline-link:hover,
.message-inline-link:focus-visible {
  color: #1f466f;
  text-decoration-color: currentColor;
}

.message-object-references {
  display: grid;
  max-width: 560px;
  gap: 6px;
  margin-top: 9px;
}

.message-object-reference {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
}

.message-object-reference:hover,
.message-object-reference:focus-visible {
  outline: 0;
  border-color: #b7c8dc;
  background: #f4f7fb;
}

.message-reference-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #526f94;
}

.message-reference-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.message-reference-copy {
  min-width: 0;
}

.message-reference-copy > span,
.message-reference-copy > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-reference-copy > span,
.message-reference-status {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
}

.message-reference-copy > strong {
  font-size: 13px;
  line-height: 18px;
  font-weight: 620;
}

.message-reference-status {
  padding-left: 10px;
}

.is-compact .message-body {
  margin-top: 0;
}

.message-actions {
  position: absolute;
  top: -23px;
  right: 2px;
  display: flex;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(20, 32, 51, 0.1);
  opacity: 0;
  pointer-events: none;
}

.message:hover .message-actions,
.message:focus-within .message-actions {
  opacity: 1;
  pointer-events: auto;
}

.message-actions button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.message-actions button:hover {
  color: var(--ink);
  background: #edf1f6;
}

.message-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.reaction-chip {
  display: inline-flex;
  min-width: 36px;
  height: 26px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
}

.reaction-chip:hover {
  border-color: #9fb2ce;
  background: #f4f7fb;
}

.reaction-chip.is-selected {
  border-color: #8ca9cf;
  background: #eaf1fa;
}

.reaction-chip span {
  font-size: 13px;
}

.reaction-chip strong {
  font-size: 11px;
  font-weight: 650;
  color: var(--slate);
}

.thread-summary {
  display: flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 3px 8px 3px 2px;
  text-align: left;
  color: #3d6495;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.thread-summary:hover {
  background: #edf3fa;
}

.thread-summary strong {
  font-size: 12px;
  font-weight: 650;
}

.thread-summary > span:last-child {
  font-size: 11px;
  color: var(--muted);
}

.thread-avatars {
  display: flex;
  padding-left: 6px;
}

.thread-avatars .participant-avatar {
  margin-left: -6px;
}

.thread-avatars .participant-avatar .avatar {
  margin-left: 0;
}

.avatar-thread {
  width: 26px;
  height: 26px;
  margin-left: -6px;
  font-size: 8px;
  border-width: 2px;
}

.day-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 4px -16px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.day-divider::before,
.day-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.composer-wrap {
  flex: 0 0 auto;
  padding: 10px 32px 18px;
  background: var(--surface);
}

.composer {
  width: min(100%, 888px);
  margin: auto;
  overflow: hidden;
  border: 1px solid #ccd5e1;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(32, 52, 79, 0.05);
}

.composer:focus-within {
  border-color: #98acd0;
  box-shadow: 0 0 0 3px rgba(46, 104, 186, 0.09), 0 10px 30px rgba(32, 52, 79, 0.07);
}

.composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 150px;
  padding: 12px 14px 6px;
  resize: none;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.composer textarea::placeholder {
  color: #99a3b1;
}

.composer-toolbar {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 6px 12px;
  font-size: 11px;
  color: var(--muted);
}

.mention-picker {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mention-picker > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.mention-picker button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  font-size: 11px;
  color: var(--slate);
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.mention-picker .guest-badge {
  min-height: 15px;
  padding-inline: 5px;
  font-size: 9px;
  line-height: 13px;
}

.mention-picker button:hover {
  color: var(--ink);
  background: #edf1f6;
}

.mention {
  padding: 0 2px;
  color: #244f88;
  border-radius: 3px;
  background: #e8f0fb;
}

.composer-shortcut {
  margin-left: auto;
}

.send-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  cursor: pointer;
}

.send-button:hover {
  background: #1b355a;
}

.send-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.thread-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.thread-header {
  display: flex;
  min-height: 58px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.thread-header > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.thread-header h2 {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}

.thread-header span {
  font-size: 11px;
  color: var(--muted);
}

.thread-scroller {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 10px 24px;
}

.thread-panel .message {
  margin-inline: 0;
}

.thread-panel .message-body {
  max-width: none;
}

.thread-root {
  padding-bottom: 8px;
}

.thread-divider {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 8px 6px 12px;
  font-size: 11px;
  color: var(--muted);
}

.thread-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.thread-compose-wrap {
  flex: 0 0 auto;
  padding: 10px 14px 14px;
}

.composer-read-only {
  padding: 13px 15px;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.composer-read-only span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.composer-read-only p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 18px;
}

.composer-compact {
  width: 100%;
}

.composer-compact .composer-shortcut {
  display: none;
}

/* Work */
.work-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-item {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}

.summary-item:first-child {
  padding-left: 0;
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item strong,
.summary-item span {
  display: block;
}

.summary-item strong {
  margin-bottom: 2px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.summary-item span {
  font-size: 12px;
  color: var(--slate);
}

.task-groups {
  display: grid;
  gap: 28px;
}

.task-group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.task-group-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.task-group-heading span {
  font-size: 12px;
  color: var(--muted);
}

.task-list {
  border-top: 1px solid var(--line);
}

.empty-task-row {
  padding: 18px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px 92px 36px;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.task-state-control {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--slate);
  border: 1px solid #bdc7d4;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.task-state-control:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.task-state-control.is-doing {
  border-color: #7a9ac4;
  box-shadow: inset 0 0 0 5px #d9e5f4;
}

.task-state-control.is-done {
  color: #ffffff;
  border-color: var(--success);
  background: var(--success);
}

.task-state-control.is-archived {
  color: #7b8797;
  border-color: #c4ccd7;
  border-radius: 6px;
  background: #eef1f5;
  cursor: default;
}

.task-state-control.is-archived:hover {
  color: #7b8797;
  border-color: #c4ccd7;
}

.task-state-control svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.work-list-pane .task-row.is-completing {
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 36px center;
  animation: task-completion-pop 180ms cubic-bezier(0.2, 0.9, 0.3, 1.18) both;
}

.work-list-pane .task-row.is-completing .task-state-control,
.task-drag-preview.is-completing .task-state-control {
  animation: task-completion-check-pop 180ms cubic-bezier(0.2, 0.9, 0.35, 1.35) both;
}

.work-list-pane .task-row.is-completing .task-state-control::after,
.task-drag-preview.is-completing .task-state-control::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(40, 122, 85, 0.34);
  border-radius: 50%;
  content: "";
  opacity: 0;
  animation: task-completion-halo 180ms ease-out both;
}

.work-list-pane .task-row.is-completion-confirmed {
  height: var(--task-completion-height);
  min-height: 0;
  transform-origin: 36px center;
  animation: task-completion-disappear 190ms cubic-bezier(0.55, 0, 0.8, 0.2) forwards;
}

@keyframes task-completion-pop {
  0% { background: var(--surface); transform: scale(1); }
  58% { background: #f2f8f5; transform: scale(1.015); }
  100% { background: #f2f8f5; transform: scale(1); }
}

@keyframes task-completion-check-pop {
  0% { transform: scale(0.7); }
  58% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes task-completion-halo {
  0% { opacity: 0.65; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(1.45); }
}

@keyframes task-completion-disappear {
  0% {
    height: var(--task-completion-height);
    opacity: 1;
    transform: scale(1);
  }
  100% {
    height: 0;
    opacity: 0;
    transform: scale(0.94);
  }
}

.task-copy {
  min-width: 0;
}

.task-title {
  display: block;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row[data-state="Done"] .task-title {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #b6bfcb;
}

.task-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  overflow: hidden;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.blocked-flag {
  color: var(--danger);
}

.task-owner {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--slate);
}

.task-owner-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-due {
  font-size: 12px;
  color: var(--muted);
}

.task-menu {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.task-menu:hover {
  color: var(--ink);
  background: #edf1f6;
}

/* Notes */
.notes-layout {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-height));
}

.notes-index {
  padding: 36px 20px 48px 28px;
  border-right: 1px solid var(--line);
}

.notes-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 20px;
}

.notes-index-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.02em;
}

.add-icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.add-icon-button:hover {
  border-color: #bdc8d7;
}

.add-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.note-group + .note-group {
  margin-top: 28px;
}

.note-group h2 {
  margin: 0 10px 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--slate);
}

.note-index-list {
  display: grid;
  gap: 3px;
}

.note-tree {
  display: grid;
  gap: 2px;
}

.note-tree-row {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  padding-left: calc(var(--note-depth) * 16px);
}

.note-tree-row.is-dragging {
  opacity: 0.24;
}

.note-tree-row.is-note-drop-before::before,
.note-tree-row.is-note-drop-after::after {
  position: absolute;
  z-index: 2;
  right: 8px;
  left: calc(22px + var(--note-depth) * 16px);
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.86);
  content: "";
  pointer-events: none;
}

.note-tree-row.is-note-drop-before::before {
  top: -2px;
}

.note-tree-row.is-note-drop-after::after {
  bottom: -2px;
}

.note-tree-row.is-note-drop-inside .note-index-item {
  background: #e8eef7;
  box-shadow: inset 0 0 0 1px #b7cbea;
}

.note-tree-toggle,
.note-tree-spacer {
  width: 22px;
  height: 32px;
}

.note-tree-toggle {
  display: grid;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.note-tree-toggle:hover {
  color: var(--ink);
  background: #edf1f6;
}

.note-tree-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 120ms ease;
}

.note-tree-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.note-tree-item {
  padding: 8px;
}

.note-tree-item[data-note-draggable] {
  cursor: grab;
  touch-action: none;
}

.note-index-item {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.note-index-item:hover {
  background: #edf1f6;
}

.note-index-item.is-active {
  background: #e8eef7;
}

.note-index-item strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-index-item span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.note-index-item .guest-visible-mark {
  display: inline-flex;
  margin: 0 0 0 4px;
  vertical-align: 1px;
}

html.is-dragging-note,
html.is-dragging-note * {
  cursor: grabbing !important;
  user-select: none !important;
}

.note-drag-preview {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  box-sizing: border-box;
  align-items: center;
  margin: 0;
  padding-left: calc(var(--note-depth) * 16px);
  border: 1px solid #b7cbea;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 39, 67, 0.16);
  opacity: 0.98;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1.01);
  transform-origin: var(--note-drag-grab-x, 50%) var(--note-drag-grab-y, 50%);
}

.note-drag-preview .note-index-item {
  cursor: grabbing;
}

.note-reader {
  min-width: 0;
  padding: 54px clamp(32px, 7vw, 88px) 88px;
  background: var(--surface);
}

.note-document {
  max-width: 700px;
  margin: 0 auto;
}

.note-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.note-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.note-title-line h1 {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 690;
  letter-spacing: -0.03em;
}

.note-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}

.note-type::before {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--frost);
  content: "";
}

.note-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.note-editor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.result-copy .result-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
}

.result-copy .result-title .guest-badge {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 0;
}

.note-body {
  padding: 32px 0;
  font-size: 16px;
  line-height: 27px;
  color: #2c3b50;
}

.note-body p {
  margin: 0 0 18px;
}

.references {
  margin-top: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.references h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.reference-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.reference-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #2f5e9c;
  border-radius: 8px;
  background: #eaf1fb;
}

.reference-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reference-link strong,
.reference-link small {
  display: block;
}

.reference-link strong {
  font-size: 13px;
}

.reference-link small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.reference-link > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.source-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--snow);
}

.source-callout button {
  flex: 0 0 auto;
}

/* Dialogs */
.dialog {
  max-width: calc(100vw - 32px);
  padding: 0;
  color: var(--ink);
  border: 1px solid rgba(20, 32, 51, 0.12);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(20, 32, 51, 0.22);
}

.dialog::backdrop {
  background: rgba(15, 27, 45, 0.42);
  backdrop-filter: blur(2px);
}

.search-dialog {
  width: min(680px, calc(100vw - 32px));
  margin-top: min(14vh, 120px);
}

.search-form {
  min-height: 420px;
}

.search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
}

.search-field input {
  min-height: 40px;
  padding: 0;
  font-size: 16px;
  color: var(--ink);
  border: 0;
  outline: 0;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--ink);
  background: #edf1f6;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-results {
  max-height: 390px;
  overflow-y: auto;
  padding: 8px;
}

.search-empty {
  display: grid;
  min-height: 300px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.search-spark {
  font-size: 26px;
  color: var(--gold);
}

.search-empty p {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.search-empty small {
  color: var(--muted);
}

.search-result {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  background: #edf1f6;
}

.result-type {
  font-size: 11px;
  font-weight: 650;
  color: var(--slate);
}

.result-copy {
  min-width: 0;
}

.result-copy strong,
.result-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy strong {
  font-size: 13px;
}

.result-copy span {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.result-time {
  font-size: 11px;
  color: var(--muted);
}

.dialog-key-help {
  display: flex;
  gap: 16px;
  padding: 9px 14px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fafbfd;
}

.dialog-key-help span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-dialog {
  width: min(560px, calc(100vw - 32px));
}

.compact-dialog {
  width: min(520px, calc(100vw - 32px));
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.015em;
}

.dialog-header p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--slate);
}

.dialog-body {
  padding: 22px 24px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}

.field > span small {
  margin-left: 4px;
  font-weight: 400;
  color: var(--muted);
}

.field > small {
  margin-top: -2px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 450;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid #cbd4e0;
  border-radius: 7px;
  outline: 0;
  background: var(--surface);
}

.field textarea {
  line-height: 22px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #86a1c7;
  box-shadow: 0 0 0 3px rgba(46, 104, 186, 0.1);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.note-options {
  align-items: end;
}

.check-field {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.choice-group,
.permission-grid {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.choice-group legend,
.permission-grid legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
}

.choice-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

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

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-mark {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #aab5c4;
  border-radius: 50%;
}

.choice-row input:checked + .radio-mark {
  border-color: var(--navy);
}

.choice-row input:checked + .radio-mark::after {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--navy);
  content: "";
}

.choice-row input:focus-visible + .radio-mark {
  outline: 3px solid rgba(46, 104, 186, 0.25);
  outline-offset: 2px;
}

.choice-row strong,
.choice-row small {
  display: block;
}

.choice-row strong {
  font-size: 13px;
}

.choice-row small {
  margin-top: 3px;
  font-size: 12px;
  line-height: 18px;
  color: var(--slate);
}

.permission-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--snow);
}

.permission-grid:not([hidden]) {
  display: grid;
}

.permission-grid legend {
  padding: 0 6px;
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.form-error {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--danger);
}

.workspace-trial-setting {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-trial-setting[hidden] {
  display: none;
}

.workspace-trial-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(20, 39, 67, 0.12);
  border-radius: 14px;
  background: var(--snow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.workspace-trial-setting strong {
  font-size: 13px;
}

.workspace-trial-setting p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-picture-setting {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-picture-preview {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: var(--snow);
}

.avatar-profile {
  width: 88px;
  height: 88px;
  font-size: 22px;
  border-width: 3px;
  box-shadow: 0 0 0 1px rgba(20, 32, 51, 0.08);
}

.profile-picture-copy > strong {
  font-size: 13px;
}

.profile-picture-copy > p {
  max-width: 300px;
  margin: 4px 0 12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--slate);
}

.profile-picture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-picture-actions [hidden] {
  display: none;
}

.profile-picture-actions .button {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 12px;
}

.profile-picture-upload {
  position: relative;
  cursor: pointer;
}

.profile-picture-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.profile-picture-upload:focus-within {
  outline: 3px solid rgba(46, 104, 186, 0.32);
  outline-offset: 2px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(380px, calc(100vw - 48px));
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 550;
  color: #ffffff;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 12px 36px rgba(20, 32, 51, 0.2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Work detail workspace */
.work-layout {
  display: grid;
  grid-template-columns: minmax(320px, var(--work-list-width, 44%)) var(--work-pane-divider-width, 16px) minmax(420px, 1fr);
  height: calc(100vh - var(--topbar-height));
  min-height: 0;
  background: var(--surface);
}

.work-layout.is-detail-closed {
  grid-template-columns: minmax(0, 1fr);
}

.work-list-pane,
.work-detail-pane {
  min-width: 0;
  min-height: 0;
}

.work-list-pane {
  overflow-y: auto;
  background: #fbfcfd;
}

.work-pane-resizer {
  position: relative;
  z-index: 3;
  width: var(--work-pane-divider-width, 16px);
  min-height: 0;
  outline: 0;
  cursor: col-resize;
  touch-action: none;
}

.work-pane-resizer::after {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: var(--line);
  content: "";
  transform: translateX(-0.5px);
  transition: width 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.work-pane-resizer::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 32px;
  border: 1px solid #9db3cf;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(20, 39, 67, 0.12);
  content: "";
  opacity: 0.72;
  transform: translate(-50%, -50%);
  transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.work-pane-resizer:hover::after,
.work-pane-resizer:focus-visible::after,
.work-layout.is-resizing .work-pane-resizer::after {
  width: 2px;
  background: #7898c4;
  transform: translateX(-1px);
}

.work-pane-resizer:hover::before,
.work-pane-resizer:focus-visible::before,
.work-layout.is-resizing .work-pane-resizer::before {
  border-color: #6287b6;
  box-shadow: 0 2px 8px rgba(20, 39, 67, 0.18);
  opacity: 1;
}

.work-pane-resizer:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(67, 112, 168, 0.22);
}

html.is-resizing-work-panes,
html.is-resizing-work-panes * {
  cursor: col-resize !important;
  user-select: none !important;
}

.work-list-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 253, 0.94);
  backdrop-filter: blur(14px);
}

.work-list-header h1,
.work-list-header p {
  margin: 0;
}

.work-list-header h1 {
  font-size: 20px;
  line-height: 27px;
  letter-spacing: -0.025em;
}

.work-list-header p {
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}

.work-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-view-switcher {
  position: sticky;
  top: 76px;
  z-index: 2;
  display: flex;
  min-height: 43px;
  align-items: end;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 253, 0.96);
  backdrop-filter: blur(14px);
}

.task-view-switcher button {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.task-view-switcher button:hover,
.task-view-switcher button[aria-selected="true"] {
  color: var(--ink);
}

.task-view-switcher button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--navy);
  content: "";
}

.task-view-switcher span {
  min-width: 17px;
  padding: 1px 5px;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  color: var(--slate);
  border-radius: 999px;
  background: #edf1f6;
}

.task-sort-control {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 10px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.task-sort-control select {
  max-width: 88px;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.work-list-pane .task-groups {
  gap: 0;
  padding-bottom: 36px;
}

.work-list-pane .task-group {
  position: relative;
  padding: 0;
}

.work-list-pane .task-group[data-task-drop-zone] {
  transition: box-shadow 140ms ease;
}

.work-list-pane .task-group.is-drag-over {
  z-index: 1;
  box-shadow: inset 0 0 0 2px #8faed4;
}

.work-list-pane .task-group.is-drag-over .task-group-heading,
.work-list-pane .task-group.is-drag-over .empty-task-row,
.work-list-pane .task-group.is-drag-over .task-row:not(.is-selected) {
  background: #f1f6fc;
}

.work-list-pane .task-group-heading {
  min-height: 38px;
  margin: 0;
  padding: 10px 20px 6px;
  border-bottom: 1px solid var(--line);
}

.work-list-pane .task-group-heading h2 {
  font-size: 12px;
}

.work-list-pane .task-list {
  border: 0;
}

.work-list-pane .empty-task-row {
  padding: 13px 20px;
  background: var(--surface);
}

.work-list-pane .task-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 60px;
  gap: 9px;
  padding: 0 12px 0 calc(18px + var(--task-depth, 0) * 16px);
  background: var(--surface);
}

.work-list-pane .task-row[data-depth]:not([data-depth="0"])::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(9px + var(--task-depth) * 16px);
  border-left: 1px solid #d8e0ea;
  content: "";
}

.work-list-pane .task-row:hover,
.work-list-pane .task-row.is-selected {
  background: #f0f4f9;
}

.work-list-pane .task-row.is-highlighted {
  z-index: 1;
  background: #edf3fb;
  box-shadow: inset 0 0 0 1px #b7cbea;
}

.work-list-pane .task-row.is-selected {
  box-shadow: inset 3px 0 0 var(--navy);
}

.work-list-pane .task-row.is-selected.is-highlighted {
  box-shadow: inset 3px 0 0 var(--navy), inset 0 0 0 1px #b7cbea;
}

.work-list-pane .task-open[data-task-draggable] {
  cursor: grab;
  touch-action: none;
}

.work-list-pane .task-row.is-dragging {
  opacity: 0.22;
}

.work-list-pane .task-row.is-dragging .task-open {
  cursor: grabbing;
}

html.is-dragging-task,
html.is-dragging-task * {
  cursor: grabbing !important;
  user-select: none !important;
}

.task-drag-preview {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 60px;
  box-sizing: border-box;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 12px 0 calc(18px + var(--task-depth, 0) * 16px);
  border: 1px solid #b7cbea;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(20, 39, 67, 0.16);
  opacity: 0.98;
  pointer-events: none;
  transform-origin: var(--task-drag-origin-x, 50%) var(--task-drag-origin-y, 50%);
  transform: translate3d(var(--task-drag-x, 0), var(--task-drag-y, 0), 0) scale(1.01);
  will-change: transform;
}

.task-drag-preview .task-open {
  cursor: grabbing;
}

.task-drag-preview.is-completing {
  border-color: #91b8a5;
  background: #f2f8f5;
  animation: task-drag-completion-pop 220ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.task-drag-preview.is-completing::before {
  position: absolute;
  z-index: 2;
  top: calc(50% - 2px);
  left: 29px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--gold);
  box-shadow:
    -15px -10px 0 -1px #7a9ac4,
    -8px -18px 0 -1px var(--gold),
    5px -20px 0 -1px #287a55,
    16px -12px 0 -1px #7a9ac4,
    19px 3px 0 -1px var(--gold),
    -13px 8px 0 -1px #287a55;
  content: "";
  opacity: 0;
  pointer-events: none;
  animation: task-drag-completion-confetti 260ms ease-out both;
}

.task-drag-preview.is-completion-confirmed {
  animation: task-drag-completion-disappear 160ms cubic-bezier(0.55, 0, 0.8, 0.2) forwards;
}

@keyframes task-drag-completion-pop {
  0% {
    transform: translate3d(var(--task-drag-x), var(--task-drag-y), 0) scale(1.01);
  }
  58% {
    transform: translate3d(var(--task-drag-x), var(--task-drag-y), 0) scale(1.045);
  }
  100% {
    transform: translate3d(var(--task-drag-x), var(--task-drag-y), 0) scale(1.015);
  }
}

@keyframes task-drag-completion-confetti {
  0% { opacity: 0; transform: scale(0.3) rotate(-8deg); }
  38% { opacity: 1; transform: scale(1) rotate(4deg); }
  100% { opacity: 0; transform: scale(1.18) translateY(-4px) rotate(12deg); }
}

@keyframes task-drag-completion-disappear {
  0% {
    opacity: 0.98;
    transform: translate3d(var(--task-drag-x), var(--task-drag-y), 0) scale(1.015);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--task-drag-x), var(--task-drag-y), 0) scale(0.88);
  }
}

.task-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px 66px;
  min-width: 0;
  height: 100%;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.task-open:focus-visible {
  outline: 2px solid #6f91c0;
  outline-offset: -3px;
  border-radius: 5px;
}

.task-open .task-context {
  display: flex;
}

.priority-mark {
  color: var(--slate);
}

.task-type-mark {
  font-weight: 650;
  color: #526782;
}

.priority-urgent,
.priority-high {
  color: #a0463a;
}

.task-action-menu {
  position: fixed;
  z-index: 45;
  width: min(260px, calc(100vw - 16px));
  padding: 6px;
  color: var(--ink);
  border: 1px solid #cfd8e4;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(20, 32, 51, 0.18);
}

.task-action-menu button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 12px;
  padding: 7px 9px;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.task-action-menu button:hover,
.task-action-menu button:focus-visible {
  outline: 0;
  background: #edf3fb;
}

.note-action-menu .note-menu-delete {
  color: #a0463a;
}

.note-action-menu .note-menu-delete:hover,
.note-action-menu .note-menu-delete:focus-visible {
  background: #f9eeee;
}

.task-action-menu button[role="menuitemradio"] {
  grid-template-columns: 18px minmax(0, 1fr);
}

.task-action-menu kbd {
  min-width: 20px;
  padding: 1px 5px;
  font: inherit;
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
}

.task-menu-summary {
  display: grid;
  gap: 2px;
  padding: 7px 9px 8px;
  border-bottom: 1px solid var(--line);
}

.task-menu-summary strong {
  font-size: 11px;
}

.task-menu-summary span {
  overflow: hidden;
  font-size: 12px;
  color: var(--slate);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-menu-rule {
  height: 1px;
  margin: 5px 3px;
  background: var(--line);
}

.task-action-menu .task-menu-back {
  grid-template-columns: 18px minmax(0, 1fr);
}

.task-menu-heading {
  padding: 6px 9px 5px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}

.task-menu-check {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.work-detail-pane {
  background: var(--surface);
}

.task-detail {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.task-detail-toolbar {
  display: flex;
  min-height: 45px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.task-detail-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.task-parent-link {
  display: inline-flex;
  min-width: 0;
  max-width: min(260px, 32vw);
  min-height: 32px;
  align-items: center;
  gap: 5px;
  margin-left: -6px;
  padding: 0 6px;
  font: inherit;
  font-weight: 600;
  color: var(--slate);
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.task-parent-link:hover,
.task-parent-link:focus-visible {
  color: var(--ink);
  background: #edf1f6;
}

.task-parent-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-detail-breadcrumb > svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.task-detail-current {
  flex: 0 0 auto;
}

.task-detail-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: -8px;
}

.copy-link-action {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.copy-link-action:hover,
.copy-link-action:focus-visible {
  color: var(--ink);
  outline: 0;
  background: #edf1f6;
}

.copy-link-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.task-detail-close {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font: inherit;
  font-weight: 600;
  color: var(--slate);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.task-detail-close:hover,
.task-detail-close:focus-visible {
  color: var(--ink);
  background: #edf1f6;
}

.task-detail-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.task-detail-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.task-detail-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px clamp(28px, 5vw, 72px) 72px;
}

.task-archive-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 12px 14px;
  border: 1px solid #d8dee7;
  border-radius: 9px;
  background: #f7f8fa;
}

.task-archive-notice > div {
  display: grid;
  gap: 2px;
}

.task-archive-notice strong {
  font-size: 12px;
}

.task-archive-notice span {
  font-size: 11px;
  line-height: 17px;
  color: var(--slate);
}

.task-detail [disabled] {
  color: #596579;
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: #596579;
}

.task-detail .task-title-input[disabled] {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.task-title-input,
.task-description-input {
  display: block;
  width: 100%;
  padding: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.task-title-input {
  font-size: 28px;
  line-height: 36px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.content-visibility {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.content-visibility.is-shared {
  border-color: #c4d4e9;
  background: #f5f8fc;
}

.content-visibility label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.content-visibility label > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.content-visibility select {
  min-width: 0;
  padding: 5px 24px 5px 0;
  font-size: 12px;
  font-weight: 620;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.content-visibility select:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(46, 104, 186, 0.2);
  outline-offset: 2px;
}

.content-visibility-summary {
  font-size: 11px;
  line-height: 17px;
  color: var(--slate);
}

.task-description-input {
  min-height: 132px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 25px;
  color: #344156;
  resize: vertical;
}

.task-description-input::placeholder,
.task-comment-form textarea::placeholder {
  color: #a2aab6;
}

.task-properties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 10px 0 32px;
  border-top: 1px solid var(--line);
}

.task-properties label {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.task-properties label:nth-child(odd) {
  padding-right: 20px;
}

.task-properties label:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.task-properties label > span {
  font-size: 11px;
  color: var(--muted);
}

.task-properties select,
.task-properties input {
  min-width: 0;
  padding: 5px 0;
  font-size: 12px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.task-properties label.task-blocked-property {
  grid-column: 1 / -1;
  padding-left: 0;
  padding-right: 0;
  border-left: 0;
}

.task-source {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 13px 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfd;
  cursor: pointer;
}

.task-source:hover {
  border-color: #bec9d8;
}

.task-source span {
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.task-source strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-references {
  margin-top: 34px;
}

.note-body-editor + .object-references {
  margin-top: 0;
}

.object-references > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.object-references h2 {
  margin: 0;
  font-size: 14px;
}

.object-references > header span {
  font-size: 11px;
  color: var(--muted);
}

.object-reference-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.object-reference-row:hover,
.object-reference-row:focus-visible {
  outline: 0;
  background: #f8fafc;
}

.object-reference-row .avatar {
  width: 30px;
  height: 30px;
  font-size: 9px;
}

.object-reference-copy,
.object-reference-context,
.object-reference-excerpt {
  min-width: 0;
}

.object-reference-copy {
  display: grid;
  gap: 3px;
}

.object-reference-context {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.object-reference-context strong {
  overflow: hidden;
  flex: 0 1 auto;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
}

.object-reference-context > span {
  overflow: hidden;
  flex: 1 1 auto;
  font-size: 10px;
  color: var(--muted);
  text-overflow: ellipsis;
}

.object-reference-context .guest-badge {
  margin-left: 4px;
}

.object-reference-excerpt {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  color: var(--slate);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.object-reference-row > svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #8a96a8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.task-children {
  margin-top: 30px;
}

.task-children > header,
.task-children > header > div {
  display: flex;
  align-items: center;
}

.task-children > header {
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.task-children > header > div {
  gap: 8px;
}

.task-children h2 {
  margin: 0;
  font-size: 14px;
}

.task-children > header span,
.task-no-children {
  font-size: 11px;
  color: var(--muted);
}

.task-child-link {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.task-child-link:hover {
  background: #f8fafc;
}

.task-child-link > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.task-child-link strong {
  font-size: 11px;
}

.task-child-link > span:first-child span,
.task-child-link > span:last-child {
  font-size: 10px;
  color: var(--muted);
}

.task-child-link > span:nth-child(2) {
  overflow: hidden;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-no-children {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.task-activity {
  margin-top: 38px;
}

.task-activity > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.task-activity h2 {
  margin: 0;
  font-size: 14px;
}

.task-activity > header span,
.task-created-line,
.task-no-comments {
  font-size: 11px;
  color: var(--muted);
}

.task-created-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 16px 0 6px;
}

.task-created-line > span {
  width: 7px;
  height: 7px;
  margin: 5px 0 0 13px;
  border-radius: 50%;
  background: #bdc6d2;
}

.task-created-line p,
.task-no-comments {
  margin: 0;
}

.task-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.task-comment-thread {
  border-bottom: 1px solid var(--line);
}

.task-comment-thread > .task-comment,
.task-comment-replies .task-comment {
  border-bottom: 0;
}

.task-comment-replies {
  position: relative;
  margin: -5px 0 5px 43px;
  padding-left: 15px;
  border-left: 1px solid #d4dce7;
}

.task-comment.is-reply {
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 11px 0;
}

.task-comment.is-reply .avatar {
  width: 28px;
  height: 28px;
}

.task-comment .avatar,
.task-comment-form > .avatar {
  width: 32px;
  height: 32px;
}

.task-comment header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-owner .guest-badge {
  margin-left: 2px;
}

.task-created-line .guest-badge {
  margin: 0 5px;
  vertical-align: 1px;
}

.task-comment header strong {
  font-size: 12px;
}

.task-comment header time {
  font-size: 10px;
  color: var(--muted);
}

.task-comment p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: #354258;
}

.comment-reply-action {
  margin-top: 7px;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.comment-reply-action:hover {
  color: var(--ink);
}

.task-no-comments {
  padding: 18px 0;
}

.task-comment-form {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.task-comment-editor {
  border: 1px solid #cbd4e0;
  border-radius: 8px;
  background: var(--surface);
}

.task-comment-form.is-reply-form {
  margin: 4px 0 14px 43px;
  padding-left: 15px;
}

.task-comment-form textarea {
  display: block;
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  resize: vertical;
}

.task-comment-editor footer {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 3px 7px 7px 10px;
}

.task-comment-editor .button {
  min-height: 32px;
  margin-left: auto;
  padding-inline: 11px;
  font-size: 12px;
}

/* Inline Notes editor */
.notes-layout {
  height: calc(100vh - var(--topbar-height));
  min-height: 0;
}

.notes-index,
.note-reader {
  min-height: 0;
  overflow-y: auto;
}

.notes-index {
  padding-top: 28px;
  background: #fbfcfd;
}

.note-reader {
  padding-top: 50px;
}

.note-header {
  padding-bottom: 20px;
}

.note-title-input {
  display: block;
  width: 100%;
  padding: 0;
  font-size: 36px;
  line-height: 45px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  border: 0;
  outline: 0;
  background: transparent;
}

.note-title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 18px;
}

.note-title-row .note-title-input {
  min-width: 0;
}

.note-title-row .copy-link-action {
  margin-top: 0;
}

.note-title-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
}

.note-header-action,
.note-parent-link {
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.note-header-action {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
}

.note-header-action:hover,
.note-header-action:focus-visible {
  color: var(--ink);
  background: #edf1f6;
}

.note-header-action.is-danger:hover,
.note-header-action.is-danger:focus-visible {
  color: var(--danger);
  background: #fbefef;
}

.note-parent-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px -4px;
  padding: 4px;
  font-size: 12px;
  border-radius: 6px;
}

.note-parent-link:hover {
  color: var(--ink);
  background: #edf1f6;
}

.note-parent-link svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.note-parent-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-title-input::placeholder {
  color: #aeb6c1;
}

.note-title-input[disabled] {
  color: var(--ink);
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}

.note-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.note-header > .content-visibility {
  margin-top: 18px;
}

.note-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}

.note-controls select {
  padding: 4px 20px 4px 0;
  color: var(--slate);
  border: 0;
  outline: 0;
  background: transparent;
}

.note-pin {
  cursor: pointer;
}

.note-pin input {
  accent-color: var(--navy);
}

.note-editor-shell {
  position: relative;
  min-width: 0;
}

.note-editor-controls {
  position: relative;
  z-index: 8;
  margin-top: 14px;
  color: var(--slate);
}

.note-editor-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  transition: opacity 120ms ease;
}

.note-editor-controls.has-context-tools .note-editor-add-row {
  opacity: 0;
  pointer-events: none;
}

.note-add-block,
.note-markdown-action {
  min-height: 32px;
  padding: 5px 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.note-add-block {
  margin-left: -7px;
}

.note-add-block span {
  margin-right: 3px;
  font-size: 15px;
  font-weight: 400;
}

.note-markdown-action {
  margin-left: auto;
}

.note-add-block:hover,
.note-add-block:focus-visible,
.note-markdown-action:hover,
.note-markdown-action:focus-visible {
  color: var(--ink);
  background: #eef3f9;
}

.note-add-block:focus-visible,
.note-markdown-action:focus-visible {
  box-shadow: 0 0 0 2px rgba(46, 104, 186, 0.18);
}

.note-selection-tools,
.note-table-tools {
  position: absolute;
  z-index: 30;
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 9px;
  box-shadow: 0 12px 32px rgba(20, 39, 67, 0.18);
}

.note-selection-tools {
  color: #f8fafc;
  background: var(--navy);
}

.note-selection-tools[hidden],
.note-table-tools[hidden] {
  display: none;
}

.note-selection-tools button,
.note-table-tools button {
  flex: 0 0 auto;
  min-width: 32px;
  min-height: 30px;
  padding: 5px 8px;
  color: inherit;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}

.note-selection-tools button:hover,
.note-selection-tools button:focus-visible,
.note-selection-tools button.is-active {
  background: rgba(255, 255, 255, 0.14);
}

.note-selection-tools button:focus-visible,
.note-table-tools button:focus-visible {
  box-shadow: 0 0 0 2px rgba(183, 203, 234, 0.5);
}

.note-toolbar-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.note-table-tools {
  top: 0;
  left: 0;
  overflow-x: auto;
  font-size: 11px;
  color: var(--slate);
  border: 1px solid rgba(20, 32, 51, 0.12);
  background: var(--surface);
  scrollbar-width: none;
}

.note-table-tools::-webkit-scrollbar {
  display: none;
}

.note-table-tools button:hover,
.note-table-tools button:focus-visible {
  color: var(--ink);
  background: #eef3f9;
}

.note-table-tools button:last-child {
  color: var(--danger);
}

.note-body-editor {
  min-height: 350px;
  padding: 18px 0 64px;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3b50;
  outline: 0;
}

.note-prose {
  min-height: 350px;
  outline: 0;
  caret-color: var(--focus);
}

.note-prose > :first-child {
  margin-top: 0;
}

.note-prose p,
.note-prose ul,
.note-prose ol,
.note-prose blockquote,
.note-prose pre,
.note-prose .tableWrapper {
  margin: 0 0 18px;
}

.note-prose h1,
.note-prose h2,
.note-prose h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.note-prose h1 {
  font-size: 28px;
}

.note-prose h2 {
  font-size: 22px;
}

.note-prose h3 {
  font-size: 18px;
}

.note-prose ul,
.note-prose ol {
  padding-left: 26px;
}

.note-prose li > p {
  margin: 0;
}

.note-prose ul[data-type="taskList"] {
  padding: 0;
  list-style: none;
}

.note-prose ul[data-type="taskList"] li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 6px 0;
}

.note-prose ul[data-type="taskList"] li > label {
  padding-top: 2px;
}

.note-prose ul[data-type="taskList"] li > label input {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

.note-prose ul[data-type="taskList"] li > div {
  flex: 1;
}

.note-prose blockquote {
  padding-left: 18px;
  color: #526176;
  border-left: 3px solid #b7c8dc;
}

.note-prose code,
.note-prose pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.note-prose code {
  padding: 2px 5px;
  font-size: 0.88em;
  border-radius: 5px;
  background: #eef2f6;
}

.note-prose pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #edf3fb;
  border-radius: 10px;
  background: #17283f;
}

.note-prose pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.note-prose hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.note-prose .tableWrapper {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.note-prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  table-layout: fixed;
}

.note-prose th,
.note-prose td {
  position: relative;
  min-width: 120px;
  padding: 9px 11px;
  vertical-align: top;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-prose th {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  background: #f5f7fa;
}

.note-prose tr:last-child > * {
  border-bottom: 0;
}

.note-prose tr > *:last-child {
  border-right: 0;
}

.note-prose .selectedCell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: rgba(75, 129, 194, 0.12);
}

.note-prose a {
  position: relative;
  color: #245a98;
  text-decoration: underline;
  text-decoration-color: #a8bfdc;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.note-body-editor a {
  position: relative;
  color: #245a98;
  text-decoration: underline;
  text-decoration-color: #a8bfdc;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.note-body-editor a:hover,
.note-body-editor a:focus-visible {
  color: #163f70;
  text-decoration-color: currentColor;
}

.note-body-editor a:hover::after,
.note-body-editor a:focus-visible::after {
  position: absolute;
  z-index: 18;
  bottom: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: min(420px, calc(100vw - 48px));
  padding: 7px 9px;
  overflow: hidden;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  color: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  content: attr(href);
  border-radius: 6px;
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(20, 39, 67, 0.18);
}

.note-prose[data-empty="true"] p:first-child::before {
  float: left;
  color: #a2aab6;
  content: "Start writing, or type “/” for commands…";
  pointer-events: none;
}

.note-prose[contenteditable="false"] {
  cursor: default;
}

.note-slash-menu {
  position: absolute;
  z-index: 40;
  width: min(280px, calc(100% - 16px));
  max-height: 320px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(20, 32, 51, 0.14);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(20, 32, 51, 0.18);
}

.note-slash-menu[hidden] {
  display: none;
}

.note-slash-menu button {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 9px 10px;
  color: var(--slate);
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.note-slash-menu button:hover,
.note-slash-menu button[aria-selected="true"] {
  color: var(--ink);
  background: #edf3fa;
}

.note-slash-menu strong {
  font-size: 13px;
}

.note-slash-menu span {
  font-size: 11px;
  color: var(--muted);
}

.note-link-popover {
  position: fixed;
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(20, 32, 51, 0.14);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(20, 32, 51, 0.2);
}

.note-link-popover[hidden] {
  display: none;
}

.note-link-popover header,
.note-link-popover footer {
  display: flex;
  align-items: center;
}

.note-link-popover header {
  min-height: 36px;
  justify-content: space-between;
}

.note-link-popover header label {
  font-size: 13px;
  font-weight: 650;
}

.note-link-popover input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid #cbd4df;
  border-radius: 7px;
  outline: 0;
}

.note-link-popover input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(46, 104, 186, 0.14);
}

.note-link-popover .form-error {
  min-height: 16px;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 16px;
}

.note-link-popover footer {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.note-link-popover footer .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.note-link-popover #remove-note-link {
  margin-right: auto;
  color: var(--danger);
}

.note-link-popover #remove-note-link[hidden] {
  display: none;
}

.visibility-impact {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #344156;
}

@media (max-width: 980px) {
  :root {
    --rail-width: 224px;
  }

  .project-rail {
    padding-inline: 12px;
  }

  .topbar {
    padding-inline: 24px;
  }

  .search-trigger {
    width: 44px;
    justify-content: center;
  }

  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .people-stack {
    display: none;
  }

  .participant-trigger {
    display: flex;
  }

  .participant-trigger .participant-avatar:nth-of-type(n + 3) {
    display: none;
  }

  .section-shell {
    padding-inline: 32px;
  }

  .work-layout {
    grid-template-columns: minmax(280px, var(--work-list-width, 42%)) 8px minmax(360px, 1fr);
  }

  .task-open {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .task-open .task-owner-name,
  .task-open .task-owner > .guest-badge,
  .task-open .task-due {
    display: none;
  }

  .task-detail-main {
    padding-inline: 28px;
  }

  .task-row {
    grid-template-columns: auto minmax(0, 1fr) 42px;
  }

  .task-owner {
    justify-self: end;
  }

  .task-owner-name,
  .task-owner > .guest-badge,
  .task-due {
    display: none;
  }

  .notes-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .notes-index {
    padding-left: 20px;
  }

  .note-reader {
    padding-inline: 36px;
  }
}

@media (max-width: 900px) {
  .work-layout {
    display: block;
    height: auto;
  }

  .work-list-pane {
    max-height: 42vh;
    border-bottom: 1px solid var(--line);
  }

  .work-pane-resizer {
    display: none;
  }

  .work-detail-pane,
  .task-detail {
    min-height: 58vh;
  }

  .room-layout.has-thread {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-layout.has-thread .room-main {
    display: none;
  }

  .thread-panel {
    border-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --topbar-height: 60px;
  }

  html,
  body,
  .app-shell {
    height: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .project-rail {
    display: none;
  }

  .work-area {
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin-left: 0;
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    grid-template-rows: var(--topbar-height) minmax(0, 1fr);
    overflow: hidden;
  }

  .topbar {
    position: relative;
    width: 100%;
    height: var(--topbar-height);
    min-width: 0;
    gap: 10px;
    padding: 0 14px;
  }

  .view {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .mobile-brand {
    display: block;
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .page-identity {
    flex: 1;
    justify-content: flex-start;
    overflow: hidden;
  }

  .page-identity > span {
    display: block;
    max-width: min(42vw, 210px);
    font-weight: 650;
    color: var(--ink);
  }

  .page-identity > svg {
    display: block;
    flex: 0 0 auto;
    transform: rotate(90deg);
  }

  .page-identity > strong {
    display: none;
  }

  .project-menu {
    top: 56px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: min(520px, calc(100vh - 128px));
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .notification-panel {
    top: var(--topbar-height);
    bottom: 60px;
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }

  .participant-panel {
    top: var(--topbar-height);
    bottom: 60px;
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }

  .participant-trigger {
    padding-inline: 10px 7px;
  }

  .participant-trigger .participant-avatar:nth-of-type(n + 2) {
    display: none;
  }

  .topbar .button-primary {
    display: none;
  }

  .search-trigger {
    width: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 60px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    position: relative;
    display: grid;
    min-height: 60px;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }

  .mobile-nav-item.is-active {
    color: var(--ink);
  }

  .mobile-nav-item.is-active::before {
    position: absolute;
    top: 0;
    left: calc(50% - 13px);
    width: 26px;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: var(--gold);
    content: "";
  }

  .section-shell,
  .section-shell.room-shell {
    padding: 30px 18px 40px;
  }

  .section-header {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .section-heading h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .section-heading p,
  .section-meta {
    display: none;
  }

  .room-header {
    min-height: 58px;
    padding-inline: 16px;
  }

  .room-view {
    height: 100%;
    min-height: 0;
  }

  .room-mobile-select {
    display: inline-block;
  }

  .room-mobile-select select {
    max-width: 58vw;
    min-height: 36px;
    padding: 0 30px 0 0;
    font-size: 15px;
    font-weight: 650;
    color: var(--ink);
    border: 0;
    outline: 0;
    background: transparent;
  }

  .room-title-line {
    display: none;
  }

  .room-mobile-audience {
    display: inline-block;
    margin-left: 8px;
    padding-left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate);
    border-left: 1px solid var(--line);
  }

  .room-heading p,
  .room-header-people > span {
    display: none;
  }

  .conversation {
    padding: 12px 14px 20px;
  }

  .message {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    margin-inline: -6px;
    padding-inline: 6px;
  }

  .message-avatar-cell > .avatar {
    width: 32px;
    height: 32px;
  }

  .message-actions {
    position: static;
    width: fit-content;
    margin-top: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
  }

  .composer-wrap {
    padding: 8px 12px 12px;
  }

  .composer-shortcut {
    display: none;
  }

  .composer-toolbar {
    gap: 6px;
  }

  .mention-picker {
    min-width: 0;
    overflow-x: auto;
  }

  .thread-compose-wrap {
    padding: 8px 10px 12px;
  }

  .work-summary {
    margin-inline: -18px;
    padding-inline: 18px;
    overflow-x: auto;
  }

  .work-layout {
    display: block;
    height: 100%;
    min-height: 100%;
  }

  .work-list-pane {
    height: 100%;
    max-height: none;
    border-bottom: 0;
  }

  .work-layout.has-detail .work-list-pane {
    display: none;
  }

  .task-sort-control > span {
    display: none;
  }

  .task-child-link {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .task-child-link > span:last-child {
    display: none;
  }

  .work-detail-pane {
    height: 100%;
    min-height: 0;
  }

  .task-detail {
    min-height: 0;
  }

  .task-detail-main {
    padding: 30px 20px 64px;
  }

  .task-title-input {
    font-size: 24px;
    line-height: 32px;
  }

  .task-properties {
    grid-template-columns: 1fr;
  }

  .content-visibility {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .task-comment-form.is-reply-form,
  .task-comment-replies {
    margin-left: 22px;
  }

  .task-properties label,
  .task-properties label:nth-child(odd),
  .task-properties label:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }

  .task-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-item {
    min-width: 120px;
  }

  .task-row {
    grid-template-columns: auto minmax(0, 1fr) 32px;
    gap: 10px;
  }

  .task-owner {
    display: none;
  }

  .notes-layout {
    display: block;
    height: auto;
  }

  .notes-index {
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notes-index-header {
    margin-bottom: 12px;
  }

  .notes-index .note-group:first-of-type:not(:last-child) {
    display: none;
  }

  .note-group h2 {
    display: none;
  }

  .note-tree {
    grid-auto-columns: minmax(190px, 72vw);
    grid-auto-flow: column;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .note-tree::-webkit-scrollbar {
    display: none;
  }

  .note-tree-branch,
  .note-tree-children {
    display: contents;
  }

  .note-tree-row {
    display: block;
    padding: 0;
    scroll-snap-align: start;
  }

  .note-tree-toggle,
  .note-tree-spacer {
    display: none;
  }

  .note-tree-item {
    min-height: 62px;
    padding: 10px 12px;
    background: #f7f9fc;
  }

  .note-tree-item[data-note-draggable] {
    touch-action: pan-x;
  }

  .note-reader {
    padding: 36px 20px 64px;
    overflow: visible;
  }

  .note-title-row {
    flex-direction: column;
    gap: 8px;
  }

  .note-title-actions {
    margin-top: 0;
  }

  .note-controls {
    flex-wrap: wrap;
  }

  .note-title-input {
    font-size: 29px;
    line-height: 38px;
  }

  .note-title-line h1 {
    font-size: 27px;
    line-height: 35px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .profile-picture-setting {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

  .profile-picture-preview {
    width: 72px;
    height: 72px;
  }

  .avatar-profile {
    width: 66px;
    height: 66px;
    font-size: 17px;
  }

  .dialog-key-help {
    display: none;
  }

  .search-dialog {
    margin-top: 24px;
  }
}

@media (max-width: 360px) {
  .participant-trigger {
    width: 40px;
    justify-content: center;
    padding: 4px 6px;
  }

  .participant-trigger-count {
    display: none;
  }

  .task-detail-toolbar-actions > [data-task-save-status],
  .copy-link-action > span,
  .task-detail-close > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
