* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-family: var(--ui-font-family-primary, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  background: #fff;
  overflow: visible;
}

.widget {
  width: 100%;
  max-width: none;
  padding: 20px 24px 24px;
  overflow: visible;
}

.telemost-disabled {
  padding: 16px 18px;
  border-radius: 8px;
  background: #f5f7fa;
  border: 1px solid #dfe3e8;
}

.telemost-disabled__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.telemost-disabled__text {
  margin: 0;
  font-size: 13px;
  color: #525c69;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  color: #525c69;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c6cdd3;
  border-radius: 2px;
  font: inherit;
  color: #333;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2fc6f6;
}

textarea {
  resize: vertical;
  min-height: 72px;
}

.participants-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.participants-row input {
  flex: 1;
}

.search-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border: 1px solid #e6e9ec;
  border-radius: 2px;
  max-height: 140px;
  overflow: auto;
}

.search-results li {
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f4;
}

.search-results li:hover {
  background: #f0f9ff;
}

.search-results li:last-child {
  border-bottom: none;
}

.participants-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.participants-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 4px;
  background: #f5f7f8;
  border-radius: 2px;
  font-size: 13px;
}

.participants-list button {
  border: none;
  background: transparent;
  color: #a8adb4;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
}

.participants-list button:hover {
  color: #ff5752;
}

.organizer-current {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7fb;
  border: 1px solid #dfe5ee;
  font-size: 14px;
  font-weight: 600;
  color: #2c3137;
}

.organizer-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #9a6b00;
}

.organizer-selected {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #2c3137;
}

.organizer-selected:empty {
  display: none;
}

.task-option {
  margin-bottom: 18px;
}

.task-option__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  background: #f6f9fb;
  cursor: pointer;
}

.task-option__label:hover {
  border-color: #c3d4df;
}

.task-option__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #525c69;
}

.task-option__text strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #2c3137;
}

.task-option__text small {
  font-size: 12px;
  line-height: 1.35;
  color: #7d8791;
}

.task-option__switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
}

.task-option__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.task-option__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c6cdd3;
  transition: background 0.2s ease;
}

.task-option__slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.task-option__checkbox:checked + .task-option__slider {
  background: #3bc8f5;
}

.task-option__checkbox:checked + .task-option__slider::before {
  transform: translateX(18px);
}

.task-option__checkbox:focus-visible + .task-option__slider {
  box-shadow: 0 0 0 2px rgba(59, 200, 245, 0.35);
}

.checklist-builder {
  margin-top: -6px;
  margin-bottom: 18px;
  padding: 10px 12px 12px;
  border: 1px solid #e3e7ea;
  border-radius: 8px;
  background: #fff;
}

.checklist-builder__title {
  margin-bottom: 8px;
  font-size: 13px;
  color: #525c69;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.checklist-item input[type="text"] {
  flex: 1;
}

.checklist-item__remove {
  width: 28px;
  height: 28px;
  border: 1px solid #d7dde2;
  border-radius: 4px;
  background: #fff;
  color: #8b949e;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.checklist-item__remove:hover {
  border-color: #ffb3b0;
  color: #ff5752;
}

.checklist-builder__add {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 2px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.primary {
  width: 100%;
  background: #3bc8f5;
  color: #fff;
}

.primary:hover:not(:disabled) {
  background: #2fc6f6;
}

.secondary {
  background: #fff;
  color: #333;
  border: 1px solid #c6cdd3;
  font-weight: 500;
}

.secondary:hover:not(:disabled) {
  border-color: #2fc6f6;
}

.error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 2px;
  background: #ffe8e8;
  color: #c21f1f;
  font-size: 13px;
}

.success-panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 2px;
  background: #e8f7ed;
  border: 1px solid #b8e6c8;
}

.success-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1e8e3e;
}

.success-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #525c69;
}

.is-hidden {
  display: none !important;
}

.log-panel {
  margin-top: 16px;
  border-top: 1px solid #e6e9ec;
  padding-top: 10px;
}

.log-panel summary {
  cursor: pointer;
  font-size: 12px;
  color: #828b95;
  margin-bottom: 6px;
}

#logOutput {
  margin: 0;
  max-height: 160px;
  overflow: auto;
  background: #f5f7f8;
  border: 1px solid #e6e9ec;
  border-radius: 2px;
  padding: 8px;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
