dialog[open] {
  display: flex;
  top: 50%;
  bottom: auto;
  height: min(680px, calc(100vh - 48px));
  transform: translateY(-50%);
}

dialog {
  width: min(920px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid #242424;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
}

#create-form,
.popup-sheet {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dialog-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: visible;
}

.dialog-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.dialog-head,
.dialog-main > .create {
  flex: none;
}

.dialog-main > .create {
  margin-top: 16px;
}

.dialog-body [data-side-view="tasks"]:not([hidden]) {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tasks-field {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.tasks-field textarea {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 14px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  font: inherit;
  line-height: 1.5;
  resize: none;
}

.tasks-field textarea:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.popup-side {
  width: 220px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-left: 1px solid #1a1a1a;
  background: #000000;
}

.side-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9a9a9a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.side-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-tab svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.side-tab:hover,
.side-tab:focus-visible {
  color: #ffcc00;
}

.side-tab.is-active {
  background: #111111;
  color: #ffffff;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.dialog-head h2 {
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
}

.close:hover,
.close:focus-visible {
  color: #ffcc00;
}

.close svg {
  width: 18px;
  height: 18px;
}

dialog label {
  display: block;
  margin-bottom: 16px;
}

dialog label span {
  display: block;
  margin-bottom: 8px;
  color: #bdbdbd;
  font-size: 14px;
  font-weight: 650;
}

