/* ============================================================
   Task Manager Mini App — ніжна фіолетова тема
   ============================================================ */

:root {
  --violet-900: #2a1f52;
  --violet-700: #5b3fd4;
  --violet-600: #7c5cf6;
  --violet-500: #916bff;
  --violet-300: #c3b0ff;
  --violet-100: #ece4ff;
  --violet-050: #f6f2ff;

  --bg: #f7f4ff;
  --bg-soft: #efe9ff;
  --surface: #ffffff;
  --surface-2: #fbf9ff;

  --text: #241c46;
  --text-muted: #7b73a0;
  --text-soft: #a49dc2;

  --border: #ece7fb;
  --border-strong: #ded4fa;

  --danger: #e2547c;
  --danger-bg: #ffeaf1;
  --warn: #d98324;
  --warn-bg: #fff2e0;
  --success: #24a97f;
  --success-bg: #e2f7ef;
  --info: #6a5ae0;
  --info-bg: #ece9ff;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 10px rgba(101, 74, 190, 0.06);
  --shadow: 0 8px 26px rgba(101, 74, 190, 0.1);
  --shadow-lg: 0 -10px 40px rgba(61, 38, 130, 0.18);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 66px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171232;
    --bg-soft: #1f1943;
    --surface: #221b47;
    --surface-2: #271f52;

    --text: #f0ecff;
    --text-muted: #b0a6dd;
    --text-soft: #877dbb;

    --border: #322a5e;
    --border-strong: #40376f;

    --violet-100: #362c68;
    --violet-050: #2a2256;

    --danger-bg: #48213a;
    --warn-bg: #4a3520;
    --success-bg: #1d4438;
    --info-bg: #302a63;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

button,
.tabbar,
.segmented,
.chips,
.header,
.group__head {
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1100px 420px at 100% -10%, rgba(145, 107, 255, 0.16), transparent 60%),
    radial-gradient(900px 380px at -10% 0%, rgba(196, 176, 255, 0.22), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior-y: none;
}

.hidden { display: none !important; }

/* ------------------------------------------------------ splash / denied - */

.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  z-index: 90;
}

.splash__logo {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(140deg, var(--violet-500), var(--violet-700));
  box-shadow: var(--shadow);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.75; }
}

.splash__text { color: var(--text-muted); font-size: 14px; }

.denied {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 26px;
  gap: 10px;
}

.denied__icon {
  width: 78px; height: 78px;
  border-radius: 26px;
  display: grid; place-items: center;
  font-size: 34px;
  background: var(--violet-100);
  margin-bottom: 6px;
}

.denied__title { font-size: 21px; margin: 0; font-weight: 700; }
.denied__text { color: var(--text-muted); margin: 0; max-width: 300px; }
.denied__id { color: var(--text-soft); font-size: 13px; margin: 4px 0 14px; }

/* ------------------------------------------------------------- layout --- */

.app { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px); }

.screen { animation: fade 0.22s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.screen__body { padding: 4px 16px 20px; }

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 16px 14px;
}

.header__hint {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-500);
}

.header__title { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }

.avatar {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(140deg, var(--violet-500), var(--violet-700));
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------- segmented --- */

.segmented {
  display: flex;
  gap: 4px;
  margin: 0 16px 14px;
  padding: 4px;
  background: var(--violet-100);
  border-radius: 14px;
}

.segmented__item {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 8px;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.segmented__item.is-active {
  background: var(--surface);
  color: var(--violet-700);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------- chips --- */

.chips {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}

.chip.is-active {
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.quick-dates { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 4px; }

/* ------------------------------------------------------------ groups --- */

.group { margin-bottom: 22px; }

.group__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
}

.group__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.group__count {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--violet-100);
  color: var(--violet-700);
}

.group--danger .group__title { color: var(--danger); }
.group--danger .group__count { background: var(--danger-bg); color: var(--danger); }

.group__list { display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------- cards --- */

.card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: block;
  transition: transform 0.14s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.card:active { transform: scale(0.985); box-shadow: var(--shadow); }

.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--violet-300);
}

.card--overdue::before { background: var(--danger); }
.card--review::before { background: var(--warn); }
.card--done::before { background: var(--success); }
.card--done { opacity: 0.62; }

.card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.card__person { display: inline-flex; align-items: center; gap: 5px; }

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

/* ------------------------------------------------------------ badges --- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.badge--new { background: var(--violet-100); color: var(--violet-700); }
.badge--in_progress { background: var(--info-bg); color: var(--info); }
.badge--review { background: var(--warn-bg); color: var(--warn); }
.badge--done { background: var(--success-bg); color: var(--success); }
.badge--overdue { background: var(--danger-bg); color: var(--danger); }
.badge--soft { background: var(--bg-soft); color: var(--text-muted); }

/* ------------------------------------------------------------ states --- */

.empty {
  text-align: center;
  padding: 34px 20px;
  color: var(--text-muted);
}

.empty__icon { font-size: 34px; margin-bottom: 8px; opacity: 0.7; }
.empty__title { font-weight: 650; color: var(--text); margin: 0 0 4px; }
.empty__text { margin: 0; font-size: 14px; }

.skeleton {
  height: 78px;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--surface) 30%, var(--bg-soft) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
  margin-bottom: 10px;
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

/* ------------------------------------------------------------ tabbar --- */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  padding: 8px 6px calc(8px + var(--safe-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}

.tabbar__item {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 14px;
  cursor: pointer;
  transition: color 0.18s;
}

.tabbar__icon { font-size: 19px; line-height: 1; }
.tabbar__label { font-size: 11px; font-weight: 600; }
.tabbar__item.is-active { color: var(--violet-600); }

/* ------------------------------------------------------------ форми --- */

.form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field__label {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-muted);
  padding-left: 2px;
}

.field__label i { color: var(--danger); font-style: normal; }

.input {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.input:focus {
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(145, 107, 255, 0.15);
}

.input--area { resize: vertical; min-height: 92px; line-height: 1.5; }

.select-wrap { position: relative; }

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--violet-500);
  pointer-events: none;
  font-size: 13px;
}

.select-wrap .input { padding-right: 36px; }

.form__error {
  margin: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

/* ------------------------------------------------------------ кнопки --- */

.btn {
  border: 0;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.14s, opacity 0.18s, box-shadow 0.18s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn--block { display: block; width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 92, 246, 0.32);
}

.btn--ghost {
  background: var(--violet-100);
  color: var(--violet-700);
}

.btn--success {
  background: linear-gradient(135deg, #34c896, #17936c);
  color: #fff;
  box-shadow: 0 8px 22px rgba(36, 169, 127, 0.28);
}

.btn--danger { background: var(--danger-bg); color: var(--danger); }

.btn--sm { font-size: 13px; padding: 9px 14px; border-radius: 12px; }

/* ------------------------------------------------------- картка задачі - */

.sheet { position: fixed; inset: 0; z-index: 60; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 24, 82, 0.42);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }

.sheet__grabber {
  flex: 0 0 auto;
  padding: 10px 0 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sheet__grabber::before {
  content: '';
  width: 42px; height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}

.sheet__content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 16px calc(20px + var(--safe-bottom));
}

.detail__title {
  margin: 6px 0 12px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.detail__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.panel__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-row:last-child { border-bottom: 0; }
.info-row__label { color: var(--text-muted); }
.info-row__value { font-weight: 600; text-align: right; }
.info-row__value--danger { color: var(--danger); }

.detail__description {
  margin: 0;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.actions { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 16px; }
.actions--row { flex-direction: row; }
.actions--row .btn { flex: 1; }

/* ------------------------------------------------------- коментарі --- */

.comments { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 6px;
  padding: 11px 14px;
  box-shadow: var(--shadow-sm);
  max-width: 92%;
}

.comment--own {
  align-self: flex-end;
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  border-color: transparent;
  color: #fff;
}

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
}

.comment__author { font-weight: 700; }
.comment__time { color: var(--text-soft); }
.comment--own .comment__time { color: rgba(255, 255, 255, 0.75); }
.comment__text { margin: 0; white-space: pre-wrap; font-size: 14.5px; line-height: 1.45; }

.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form .input { flex: 1; padding: 11px 14px; min-height: 46px; }

.comment-form__send {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(124, 92, 246, 0.3);
}

.comment-form__send[disabled] { opacity: 0.5; pointer-events: none; }

/* --------------------------------------------------------- профіль --- */

.profile-card {
  background: linear-gradient(140deg, var(--violet-500), var(--violet-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 14px 32px rgba(124, 92, 246, 0.3);
  margin-bottom: 14px;
}

.profile-card__avatar {
  width: 58px; height: 58px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-card__name { margin: 0 0 3px; font-size: 20px; font-weight: 700; }
.profile-card__username { margin: 0; opacity: 0.85; font-size: 14px; }

.profile-card__role {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12.5px;
  font-weight: 650;
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.stat__value { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.stat__label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.stat--danger .stat__value { color: var(--danger); }
.stat--warn .stat__value { color: var(--warn); }
.stat--success .stat__value { color: var(--success); }

/* --------------------------------------------------------- адмінка --- */

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}

.user-row--off { opacity: 0.55; }
.user-row__body { flex: 1; min-width: 0; }
.user-row__name { font-weight: 650; font-size: 15px; }
.user-row__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.user-row__actions { display: flex; gap: 6px; flex: 0 0 auto; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0 14px;
}

/* ----------------------------------------------------------- toast --- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 100;
  max-width: 88vw;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--violet-900);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toastIn 0.24s ease;
}

.toast--error { background: var(--danger); }

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------- проєкти --- */

.card__project {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--violet-100);
  color: var(--violet-700);
  font-size: 12px;
  font-weight: 650;
}

.project-card {
  width: 100%;
  text-align: left;
  display: block;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.18s ease;
}

.project-card:active { transform: scale(0.985); box-shadow: var(--shadow); }
.project-card--off { opacity: 0.55; }

.project-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.project-card__icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(140deg, var(--violet-500), var(--violet-700));
}

.project-card__name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.project-card__desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.project-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet-600);
  cursor: pointer;
  padding: 4px 0 10px;
}

.member-role {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 650;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checklist__item:hover { background: var(--violet-050); }
.checklist__item input { width: 17px; height: 17px; accent-color: var(--violet-600); }
.checklist__empty { padding: 12px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ------------------------------------------------ редактор співробітника - */

.user-row[data-open-user] { cursor: pointer; }

.user-row__chevron {
  color: var(--violet-500);
  font-size: 13px;
  padding: 0 4px;
}

.user-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: -4px 0 12px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  animation: fade 0.2s ease;
}

.user-editor .field { gap: 6px; }
.user-editor .actions { margin: 0; }


/* ------------------------------------------------ спостерігачі задачі --- */

.field__hint {
  margin: -2px 0 0;
  padding-left: 2px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.watcher-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.watcher-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px 5px 11px;
  border-radius: 999px;
  background: var(--violet-100);
  color: var(--violet-700);
  font-size: 13px;
  font-weight: 650;
}

.watcher-chip--plain { padding-right: 11px; }

.watcher-chip__remove {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(124, 92, 246, 0.22);
  color: var(--violet-700);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.watcher-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.watcher-add .select-wrap { flex: 1; }
.watcher-add .input { padding: 10px 12px; font-size: 14px; }


/* -------------------------------------------------- учасник проєкту --- */

.member-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}

.member-block__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.member-block__controls .select-wrap { flex: 1; }
.member-block__controls .input { padding: 9px 12px; font-size: 14px; }


/* ------------------------------------------------ перенесення терміну --- */

.panel--request {
  border-color: var(--warn);
  background: var(--warn-bg);
}

.request__head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  margin: 0 0 8px;
}

.request__move {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.request__from { color: var(--text-muted); font-weight: 600; }
.request__reason { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; }
.request__author { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }

.deadline-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  animation: fade 0.2s ease;
}
