:root {
  color-scheme: light;
  --jb-background: #fff;
  --jb-foreground: #111;
  --jb-muted: #777;
  --jb-border: #e5e5e5;
  --jb-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--jb-font-family);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--jb-background); color: var(--jb-foreground); }
button, input, textarea { font: inherit; }

.jules-form-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(760px, 66vw);
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 1px solid var(--jb-border);
  border-radius: 16px;
  background: var(--jb-background);
  color: var(--jb-foreground);
  box-shadow: 0 16px 56px #0002;
  overscroll-behavior: contain;
}
.jules-form-dialog::backdrop {
  background: #1113;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body:has(.jules-form-dialog[open]) { overflow: hidden; }
.jules-form-dialog-content { padding: clamp(18px, 4vw, 36px); }
.jules-file-choice { display: flex; align-items: center; gap: 8px; }
.jules-file-choice [data-file-selection] { min-width: 0; overflow-wrap: anywhere; }
.jules-file-add {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
}
.jules-file-add:focus-within { outline: 2px solid currentColor; }
.jules-file-add input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
@media (max-width: 700px) {
  .jules-form-dialog { width: calc(100% - 32px); max-height: calc(100dvh - 48px); }
}
