.studio-post-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(620px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  background: #1f1f1f;
  color: #f5f5f5;
  border: 1px solid #424242;
  border-radius: 14px;
  box-shadow: 0 24px 90px #000a;
  color-scheme: dark;
}

.studio-post-dialog::backdrop { background: #000b; }
body:has(.studio-post-dialog[open]) { overflow: hidden; }

.studio-post-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid #424242;
}

.studio-post-dialog-header h2 { margin: 0; font-size: 18px; }

.studio-post-dialog-header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}

.studio-post-dialog-header button:hover { background: #333; }

.studio-post-dialog iframe {
  display: block;
  width: 100%;
  height: 350px;
  min-height: 120px;
  max-height: calc(100dvh - 80px);
  border: 0;
}

.studio-post-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #3a3a3a;
  border-radius: 7px;
  background: #242424;
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.studio-post-action:hover { background: #303030; }
.studio-post-action:focus-visible {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}
.studio-post-action .material-icons { font-size: 17px; }
.studio-post-action[hidden] { display: none; }
.studio-post-section { margin-top: 10px; }
