.pmt-dialog { width: min(690px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
.pmt-header { position: sticky; inset-block-start: 0; z-index: 1; background: var(--paper); }
.pmt-header h2 { overflow-wrap: anywhere; }
.pmt-header .icon-button { flex: 0 0 auto; font-size: 25px; line-height: 1; }
.pmt-dialog .dialog-footer { position: sticky; inset-block-end: 0; }
.pmt-dialog .inline-error, .pmt-dialog .field-note { margin: 0; }
.pmt-dialog textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 7px 9px;
  border: 1px solid #bac9da;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.42;
  resize: vertical;
}
.pmt-dialog input[type="file"] { max-width: 100%; font: inherit; font-size: 14px; }
.pmt-dialog .pmt-kind { grid-template-columns: minmax(118px, .7fr) minmax(0, 1.3fr); }
.pmt-options:has([data-pmt="milestone-field"][hidden]) { grid-template-columns: minmax(0, 1fr); }
.pmt-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .8fr));
  gap: 10px;
}
.pmt-optional { color: var(--muted); font-size: 12px; font-weight: 550; }
.pmt-participants { min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line); }
.pmt-participants legend { padding: 0 4px; font-size: 13px; font-weight: 700; }
.pmt-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; max-height: 172px; overflow: auto; }
.pmt-choices:empty { display: none; }
.pmt-choices label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 8px;
  background: #f4f7fb;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.pmt-choices label:hover { background: #edf3fa; }
.pmt-choices input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--steel); }
.pmt-agenda summary, .pmt-field-head h3, .pmt-block h3 { font-size: 14px; font-weight: 720; }
.pmt-agenda { border: 1px solid var(--line); }
.pmt-agenda summary { padding: 9px 10px; color: var(--navy); cursor: pointer; }
.pmt-agenda summary:hover { background: #f4f7fb; }
.pmt-agenda > .field { padding: 7px 10px 10px; border-top: 1px solid var(--line); }

.pmt-detail { gap: 12px; }
.pmt-meeting-info {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-orange);
  background: #f5f8fc;
}
.pmt-meeting-info dl { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.pmt-meeting-info dl div { min-width: 0; }
.pmt-meeting-info dt { color: var(--muted); font-size: 12px; }
.pmt-meeting-info dd { margin: 1px 0 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.pmt-block { display: grid; gap: 6px; min-width: 0; padding: 11px 0 1px; border-top: 1px solid var(--line); }
.pmt-block h3 { margin: 0; }
.pmt-block p { font-size: 14px; }
.pmt-block .field-note, .pmt-block .inline-error { font-size: 13px; }
.pmt-rich { white-space: pre-wrap; }
.pmt-start { justify-self: start; }
.pmt-field-head, .pmt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.pmt-field-head { justify-content: space-between; }
.pmt-field-head .button { min-height: 36px; padding: 5px 8px; font-size: 13px; }
.pmt-upload { display: grid; gap: 6px; margin-top: 6px; }
.pmt-upload label { font-size: 13px; font-weight: 700; }

.pmt-writing-dialog { width: min(980px, calc(100% - 24px)); }
.pmt-writing-dialog textarea { height: clamp(220px, 55dvh, 580px); }

@media (max-width: 430px) {
  .pmt-dialog .dialog-head, .pmt-dialog .dialog-body, .pmt-dialog .dialog-footer { padding-inline: 11px; }
  .pmt-dialog .pmt-kind, .pmt-options, .pmt-choices { grid-template-columns: minmax(0, 1fr); }
  .pmt-time-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmt-time-fields > :first-child { grid-column: 1 / -1; }
  .pmt-detail .button { white-space: normal; }
}
