/* Shared task controls. Existing D colors, fonts and frozen design assets stay authoritative. */
:root {
  --control-main: 48px;
  --control-regular: 44px;
  --control-compact: 40px;
}
.toast-stack {
  position: fixed;
  inset: 96px 24px auto auto;
  margin: 0;
  padding: 0;
  border: 0;
  width: min(380px, calc(100vw - 32px));
  overflow: visible;
  background: transparent;
  color: var(--ink);
  z-index: 100;
  pointer-events: none;
}
.toast-stack:popover-open {
  display: grid;
  gap: 10px;
}
.toast-stack .toast {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 14px 12px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font: 400 14px/1.65 var(--body);
  transform: none;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  animation: toast-enter 180ms var(--ease) both;
}
.toast-stack .toast > span:first-child {
  flex: 1;
  overflow-wrap: anywhere;
}
.toast-stack .toast.is-leaving {
  animation: toast-leave 180ms ease-out both;
}
.toast-stack .toast-error > span:first-child {
  color: var(--error);
}
.toast-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
}
.toast-close:hover {
  background: var(--soft);
  color: var(--ink);
}
.toast-close svg {
  width: 16px;
  height: 16px;
}
.toast-countdown {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--primary);
  transform-origin: left;
  transition: transform 100ms linear;
}
@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toast-leave {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.form-input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--error);
}
.field-error:not(:empty) {
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
}
.inbox-conversation-head > .inbox-more {
  margin-left: auto;
}
.inbox-more > .conversation-menu {
  width: 224px;
}
.conversation-menu > a,
.conversation-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.conversation-menu > a:hover,
.conversation-switch-row:hover {
  background: var(--soft);
}
.conversation-switch-row {
  cursor: pointer;
}
.conversation-menu .preference-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  min-width: 38px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--control-border);
  position: relative;
  flex: none;
  cursor: pointer;
  transition: background 180ms;
}
.conversation-menu .preference-switch::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: 2px;
  top: 2px;
  background: var(--surface);
  transition: transform 180ms;
}
.conversation-menu .preference-switch:checked {
  background: var(--primary);
}
.conversation-menu .preference-switch:checked::before {
  background: var(--on-primary);
  transform: translateX(16px);
}
.conversation-menu .preference-switch:disabled {
  cursor: wait;
}
.report-return {
  margin-bottom: 20px;
}
.report-target-selection {
  margin-bottom: 28px;
}
.report-target-selection fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.report-target-selection legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.report-target-selection input[type="radio"] {
  accent-color: var(--primary);
}
.report-target-selection fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
.report-message-options {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  margin: 12px 0;
}
.report-message-options > label {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.report-message-options > label.selected {
  border-color: var(--primary);
  background: var(--selected);
}
.report-message-options > label > span {
  display: block;
  min-width: 0;
  flex: 1;
}
.report-message-options > label > span > span:last-child {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.report-message-options input {
  margin-top: 6px;
}
.report-message-options .content-time {
  margin-left: 12px;
}
:root :is(.member-work-nav, .developer-work-nav) a {
  min-height: var(--control-regular);
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.75;
  border-radius: 8px;
}
:root :is(.member-work-nav, .developer-work-nav) a svg {
  width: 16px;
  height: 16px;
}
:root :is(.member-work-layout, .developer-work-layout) .status-filter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--control-regular);
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 12px;
}
.member-section-tabs {
  gap: 20px;
}
.member-section-tabs a {
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}
.member-section-tabs a[aria-current="page"] {
  background: transparent;
  border-bottom-color: var(--primary);
}
.console-toolbar :is(.primary, .secondary) {
  min-height: var(--control-compact);
}
.global-search-footer {
  padding-top: 12px;
}
@media (min-width: 1000px) {
  :root :is(.member-work-layout, .developer-work-layout) {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .toast-stack {
    inset: 88px 16px auto;
    width: auto;
  }
  .inbox-more > .conversation-menu {
    width: 208px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast-stack .toast,
  .toast-stack .toast.is-leaving {
    animation: none;
  }
  .toast-countdown,
  .conversation-menu .preference-switch,
  .conversation-menu .preference-switch::before {
    transition: none;
  }
}

/* Preserve existing control tokens for the notification selector. */
.notice-pane-tools .notice-read-filter {
  flex: 0 0 auto;
  width: auto;
  min-width: 104px;
  height: var(--control-regular);
  min-height: var(--control-regular);
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 14px/1.5 var(--body);
}
