:root {
  /* Palette (Figma) */
  --c-white:        #FFFFFF;
  --c-black:        #000000;
  --c-neutral-50:   #FAFAFA;
  --c-neutral-200:  #E5E5E5;
  --c-neutral-500:  #737373;
  --c-neutral-900:  #171717;
  --c-neutral-950:  #0A0A0A;
  --c-slate-100:    #F1F5F9;
  --c-slate-300:    #CCD8E8;
  --c-sky-100:      #E0F2FE;
  --c-sky-300-50:   rgba(125, 211, 252, 0.5);
  --c-sky-500:      #0EA5E9;
  --c-sky-950:      #082F49;
  --c-blue-600:     #2673DD;

  /* Semantic tokens */
  --bg:            var(--c-neutral-50);
  --card:          var(--c-white);
  --border:        var(--c-neutral-200);
  --border-strong: var(--c-slate-300);
  --text:          var(--c-neutral-950);
  --heading:       var(--c-neutral-900);
  --muted:         var(--c-neutral-500);
  --placeholder:   var(--c-neutral-500);
  --field-bg:      var(--c-slate-100);
  --primary:       var(--c-sky-500);
  --primary-hover: var(--c-sky-950);
  --primary-soft:  var(--c-sky-100);
  --link:          var(--c-blue-600);
  --focus-ring:    var(--c-sky-300-50);

  --radius: 6px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.04);

  /* Typography */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
}

html, body { font-family: var(--font-sans); }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}

.page__header {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.page__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  margin: 0;
}

/* User pill — в стиле основной .card */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  min-width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.user-pill__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-sky-100), var(--primary-soft)) center/cover no-repeat;
  color: var(--primary-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  flex: 0 0 40px;
  overflow: hidden;
  outline: 1px solid var(--border);
}

.user-pill__meta { line-height: 1.25; min-width: 0; }
.user-pill__caption {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1px;
}
.user-pill__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.user-pill__pos {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 28px;
}

.divider {
  background: var(--border);
  width: 1px;
}

.col { min-width: 0; }

/* Section title */
.section-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--heading);
}
.section-title.no-margin { margin: 0; }

/* Field */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

input[type="text"],
textarea,
.select input {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .15s, background .15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

input[type="text"]:focus,
textarea:focus,
.select input:focus {
  border-color: var(--primary);
  background: var(--c-white);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

textarea { resize: vertical; min-height: 70px; }

/* Select */
.select { position: relative; }
.select input { padding-right: 28px; cursor: pointer; }
.select__chev {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

.select.with-action input { padding-right: 60px; }
.select.with-action .select__chev { right: 38px; }

.icon-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }

.icon-btn--standalone {
  position: static;
  transform: none;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--c-sky-100);
  border-color: var(--c-sky-100);
  color: var(--primary);
}
.icon-btn--standalone:hover {
  background: var(--c-sky-100);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dashed var(--link);
}
.link:hover { color: var(--primary-hover); border-color: var(--primary-hover); }

/* Rows */
.row { display: flex; gap: 12px; }
.row.two > * { flex: 1; min-width: 0; }
.row.tight { gap: 8px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.center { align-items: center; }

/* Input with icon */
.input.with-icon {
  position: relative;
}
.input.with-icon input { padding-right: 30px; }
.input.with-icon .ico {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: inline-flex;
}

/* Hint */
.hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.hint.right { text-align: right; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
}
.btn--primary:hover { background: var(--primary-hover); }

.actions { display: flex; gap: 8px; }

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 14px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.submit-row { margin-top: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .divider { display: none; }
}
