/* Authoring is confined to the signed-in ALDHub website. */
.ce-edit-button { margin-top: 18px; }
.ce-dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; color: var(--ink, #1c2228); background: var(--surface, #f8f9fa); border: 1px solid var(--rule, #cdd2d9); border-radius: 22px; box-shadow: 0 24px 100px #14202a40; }
.ce-dialog::backdrop { background: #14202a99; backdrop-filter: blur(3px); }
.ce-dialog form { padding: 28px; }
.ce-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ce-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 8px 0; }
.ce-head .kicker { margin: 0; }
.ce-head .btn { flex: 0 0 auto; font-size: 24px; padding: 3px 14px; }
.ce-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ce-dialog section { margin-top: 26px; }
.ce-dialog h3 { font-size: 20px; margin: 0 0 10px; }
.ce-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.ce-dialog label { display: block; font-weight: 600; margin: 12px 0 7px; }
.ce-dialog input[type="text"], .ce-dialog textarea { display: block; box-sizing: border-box; width: 100%; border: 1px solid var(--rule, #cdd2d9); border-radius: 10px; padding: 11px 12px; font: inherit; color: inherit; background: var(--gas, #fff); }
.ce-dialog input[type="file"] { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; font: inherit; }
.ce-dialog textarea { resize: vertical; min-height: 80px; }
.ce-dialog input:focus-visible, .ce-dialog textarea:focus-visible { outline: 2px solid var(--db-ink, #71469a); outline-offset: 2px; }
.ce-dialog input[aria-invalid="true"], .ce-dialog textarea[aria-invalid="true"] { border-color: #ac3342; }
.ce-dialog small, .ce-dialog .panel-note { display: block; color: var(--ink-2, #58636d); line-height: 1.55; margin-top: 6px; }
.ce-dialog small { font-size: 12px; }
.ce-dialog #ce-xyz { font: 13px/1.6 'JetBrains Mono', monospace; min-height: 190px; }
.ce-status { padding: 12px 14px; border-radius: 10px; line-height: 1.55; background: #eee8f5; color: #5b387c; overflow-wrap: anywhere; }
.ce-error { background: #fbecef; color: #8b2030; }
.ce-review { border-top: 1px solid var(--rule, #cdd2d9); padding-top: 24px; }
.ce-review table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ce-review th, .ce-review td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--rule, #cdd2d9); overflow-wrap: anywhere; white-space: pre-wrap; }
.ce-review th { font-weight: 600; }
.ce-review pre { max-height: 180px; overflow: auto; font-size: 11px; }
.ce-warning { color: var(--ps-ink, #8a5600); white-space: pre-wrap; line-height: 1.55; }
.ce-dialog .ce-ack { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.ce-ack input { flex: 0 0 auto; margin-top: 4px; }
.ce-dialog [hidden] { display: none !important; }
.ce-viewer { height: 300px; position: relative; isolation: isolate; border: 1px solid var(--rule, #cdd2d9); border-radius: 12px; overflow: hidden; }
.ce-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 26px; border-top: 1px solid var(--rule, #cdd2d9); padding-top: 18px; }
.ce-dialog fieldset:disabled { opacity: .65; }
.ce-dialog button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 600px) {
  .ce-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .ce-dialog form { padding: 18px; }
  .ce-grid { grid-template-columns: 1fr; gap: 10px; }
  .ce-actions .btn { flex: 1 1 auto; }
  .ce-review th, .ce-review td { padding: 8px 5px; font-size: 13px; }
}
