.app-shell .drawer__header-actions > .icon-button,
.app-shell .modal__header > .icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.app-shell .editor-tools .icon-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.app-shell .editor-tools .icon-button:last-child,
.app-shell .editor-tools .icon-button:last-child:hover {
  border-color: transparent;
  color: #ff8b76;
  background: transparent;
  opacity: 1;
}

.app-shell .editor-tools .icon-button:last-child:hover {
  opacity: 0.7;
}

.widget-upload-control {
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #101011;
}

.widget-upload-control__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #98989b;
  background: #1b1b1c;
}

.widget-upload-control__icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.widget-upload-control > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.widget-upload-control small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-upload-control .widget-upload-control__recommendation {
  overflow: visible;
  color: #929295;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.widget-upload-control__button {
  min-height: 36px;
  padding-inline: 11px;
  font-size: 11px;
}

.video-format-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.video-format-picker legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-format-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.video-format-picker button {
  min-width: 0;
  min-height: 68px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #cdcdcd;
  text-align: left;
  cursor: pointer;
  background: #1d1d1e;
  transition: color 150ms, border-color 150ms, background 150ms;
}

.video-format-picker button:hover {
  color: var(--text);
  background: #181819;
  border-color: rgba(255, 255, 255, 0.16);
}

.video-format-picker button.is-active {
  color: var(--text);
  background: rgba(244, 122, 56, 0.08);
  border-color: rgba(244, 122, 56, 0.48);
}

.video-format-picker button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.video-format-picker button strong {
  font-size: 12px;
  font-weight: 600;
}

.video-format-picker button small {
  color: #c1c1c1;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.video-format-picker__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.video-format-picker__shape {
  flex: none;
  display: block;
  border: 1.5px solid;
  border-radius: 4px;
}

.video-format-picker__shape--vertical {
  width: 18px;
  height: 30px;
}

.video-format-picker__shape--horizontal {
  width: 32px;
  height: 19px;
}

.widget-editor-preview {
  --preview-border-width: 4px;
}

.widget-editor-preview--horizontal {
  width: calc(100% - 28px);
  max-width: 480px;
  aspect-ratio: 16 / 9;
}

.widget-editor-preview--vertical {
  width: min(82%, 280px);
  aspect-ratio: 280 / 500;
}

.widget-editor-preview.has-border {
  box-shadow: none;
}

.widget-editor-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 30;
  border: var(--preview-border-width) solid transparent;
  border-radius: inherit;
  pointer-events: none;
}

.widget-editor-preview.has-border::after {
  border-color: var(--preview-border);
}
