/* VoicePa Request Terminal 3.4.1-rc.1
 * The terminal owns a fully scoped presentation boundary. No global element,
 * utility-class or :root rule is intentionally emitted from this stylesheet.
 */
.vpmrt,
.vpmrt *,
.vpmrt *::before,
.vpmrt *::after {
  box-sizing: border-box;
}

.vpmrt {
  --vpmrt-bg: #f4f3ef;
  --vpmrt-surface: #ffffff;
  --vpmrt-surface-soft: #f8f7f3;
  --vpmrt-text: #242522;
  --vpmrt-muted: #64675f;
  --vpmrt-border: #d8d8d0;
  --vpmrt-border-strong: #b8bab0;
  --vpmrt-brand: #8d3338;
  --vpmrt-brand-hover: #72282d;
  --vpmrt-brand-soft: #faeeee;
  --vpmrt-focus: #1d63a8;
  --vpmrt-success: #24623b;
  --vpmrt-success-soft: #edf7f0;
  --vpmrt-warning: #76520b;
  --vpmrt-warning-soft: #fff7df;
  --vpmrt-danger: #9b2828;
  --vpmrt-danger-soft: #fff0f0;
  --vpmrt-info: #205b7a;
  --vpmrt-info-soft: #edf7fc;
  --vpmrt-shadow: 0 10px 32px rgba(31, 33, 29, 0.08);
  --vpmrt-radius-sm: 8px;
  --vpmrt-radius: 14px;
  --vpmrt-radius-lg: 22px;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 32px);
  color: var(--vpmrt-text);
  background: var(--vpmrt-bg);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius-lg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  isolation: isolate;
}

.vpmrt[hidden],
.vpmrt [hidden] {
  display: none !important;
}

.vpmrt :where(h1, h2, h3, h4, p, ul, ol, dl, dt, dd, fieldset, legend) {
  min-width: 0;
  margin-top: 0;
}

/* Theme-boundary reset. The host theme contains broad element selectors,
 * including !important declarations, so only the terminal's own subtree uses
 * narrowly scoped overrides to preserve a predictable, non-overflowing form. */
.vpmrt :where(form, fieldset, article) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
}

.vpmrt :where(a, button, input, textarea, select) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.vpmrt :where(input, textarea, select, button) {
  max-width: 100% !important;
}

.vpmrt :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px !important;
  color: var(--vpmrt-text);
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border-strong);
  border-radius: var(--vpmrt-radius-sm);
  box-shadow: none;
  appearance: auto;
}

.vpmrt textarea {
  min-height: 112px;
  resize: vertical;
}

.vpmrt :where(input, textarea, select):disabled {
  color: #73766f;
  background: #ecece8;
  cursor: not-allowed;
  opacity: 1;
}

.vpmrt :where(input, textarea, select):invalid:not(:placeholder-shown) {
  border-color: var(--vpmrt-danger);
}

.vpmrt :where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--vpmrt-focus) 70%, transparent);
  outline-offset: 2px;
}

.vpmrt__hero {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 4vw, 44px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #2d302c 0%, #3f403b 56%, #65383b 100%);
  border-radius: var(--vpmrt-radius-lg);
  box-shadow: var(--vpmrt-shadow);
}

.vpmrt__hero::after {
  position: absolute;
  right: -60px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  content: "";
  border: 46px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.vpmrt__eyebrow,
.vpmrt__kicker {
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.vpmrt__eyebrow { color: #f2c7ca; }
.vpmrt__kicker { color: var(--vpmrt-brand); }

.vpmrt__title {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: inherit;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.2;
}

.vpmrt__lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 18px;
  color: #f4f2ec;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.vpmrt__principles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vpmrt__principles span,
.vpmrt__badge,
.vpmrt .voicepa-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.vpmrt__principles span {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.vpmrt__nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 6px;
  margin: 16px 0;
  padding: 6px;
  overflow-x: visible;
  background: rgba(244, 243, 239, 0.94);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius-md);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}

.vpmrt__nav a {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 40px;
  text-align: center;
  padding: 8px 15px;
  color: var(--vpmrt-text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}

.vpmrt__nav a:hover,
.vpmrt__nav a[aria-current="true"] {
  color: #fff;
  background: var(--vpmrt-brand);
}

.vpmrt__panel {
  min-width: 0;
  margin-top: 16px;
  padding: clamp(16px, 3vw, 28px);
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius-lg);
  box-shadow: var(--vpmrt-shadow);
}

.vpmrt__panel--login {
  text-align: center;
}

.vpmrt__section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vpmrt-border);
}

.vpmrt__section-head h2 {
  margin-bottom: 0;
  color: var(--vpmrt-text);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.3;
}

.vpmrt__section-head > p {
  margin-bottom: 0;
  color: var(--vpmrt-muted);
}

.vpmrt__form,
.vpmrt__compact-form {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.vpmrt__fieldset,
.vpmrt .voicepa-change-fields {
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 2.4vw, 22px);
  background: var(--vpmrt-surface-soft);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius);
}

.vpmrt__legend,
.vpmrt .voicepa-change-fields > legend {
  max-width: 100%;
  padding: 0 8px;
  color: var(--vpmrt-text);
  font-weight: 800;
  font-size: 1rem;
}

.vpmrt__choice-grid,
.vpmrt__grid,
.vpmrt__cards,
.vpmrt .voicepa-order-list,
.vpmrt .voicepa-order-meta,
.vpmrt .voicepa-action-list,
.vpmrt .voicepa-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 12px;
}

.vpmrt__choice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vpmrt__choice-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  align-content: start;
  gap: 6px;
  padding: 16px;
  color: var(--vpmrt-text);
  background: var(--vpmrt-surface);
  border: 2px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius);
  cursor: pointer;
}

.vpmrt__choice-card:hover {
  border-color: var(--vpmrt-border-strong);
  box-shadow: 0 8px 20px rgba(31, 33, 29, 0.07);
}

.vpmrt__choice-card:has(input:checked) {
  background: var(--vpmrt-brand-soft);
  border-color: var(--vpmrt-brand);
}

.vpmrt__choice-card input[type="radio"] {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--vpmrt-brand);
}

.vpmrt__choice-card:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.vpmrt__choice-title {
  padding-right: 28px;
  font-size: 1.04rem;
  font-weight: 800;
}

.vpmrt__choice-card > span:last-child {
  color: var(--vpmrt-muted);
  font-size: 0.9rem;
}

.vpmrt__field,
.vpmrt .voicepa-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  margin: 0;
}

.vpmrt__field--wide,
.vpmrt .voicepa-field--wide {
  grid-column: 1 / -1;
}

.vpmrt__label,
.vpmrt__field > legend,
.vpmrt .voicepa-field > span:first-child {
  display: block;
  color: var(--vpmrt-text);
  font-weight: 750;
  line-height: 1.45;
}

.vpmrt__label b {
  color: var(--vpmrt-danger);
  font-size: 0.72rem;
}

.vpmrt__field small,
.vpmrt__hint,
.vpmrt .voicepa-field small,
.vpmrt .voicepa-message small {
  color: var(--vpmrt-muted);
  font-size: 0.81rem;
  line-height: 1.55;
}

.vpmrt__suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
}

.vpmrt__suffix > input {
  border-radius: var(--vpmrt-radius-sm) 0 0 var(--vpmrt-radius-sm) !important;
}

.vpmrt__suffix > span {
  display: inline-flex;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--vpmrt-muted);
  background: #ecece7;
  border: 1px solid var(--vpmrt-border-strong);
  border-left: 0;
  border-radius: 0 var(--vpmrt-radius-sm) var(--vpmrt-radius-sm) 0;
  font-weight: 700;
}

.vpmrt__check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  align-items: start;
  gap: 9px;
  margin: 0;
  padding: 8px 0;
  cursor: pointer;
}

.vpmrt__check input[type="checkbox"],
.vpmrt__chips input[type="checkbox"],
.vpmrt__metric-grid input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--vpmrt-brand);
}

.vpmrt__consent-panel {
  min-width: 0;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--vpmrt-border-strong);
  border-radius: var(--vpmrt-radius-sm);
  background: #fffdf7;
  overflow-wrap: anywhere;
}

.vpmrt__consent-panel[hidden] { display: none !important; }

.vpmrt__consent-panel .vpmrt__check + .vpmrt__check {
  border-top: 1px dashed var(--vpmrt-border);
}

.vpmrt__consent-panel .vpmrt__actions {
  margin-top: 10px;
}

.vpmrt__chips {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
}

.vpmrt__chips label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.vpmrt__chips label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vpmrt__chips label > span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border-strong);
  border-radius: 999px;
  font-size: 0.86rem;
}

.vpmrt__chips label > input:checked + span {
  color: #fff;
  background: var(--vpmrt-brand);
  border-color: var(--vpmrt-brand);
}

.vpmrt__chips label > input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--vpmrt-focus) 70%, transparent);
  outline-offset: 2px;
}

.vpmrt__conditional {
  min-width: 0;
}

.vpmrt__metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 10px;
}

.vpmrt__metric-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius);
}

.vpmrt__metric-grid label > input[type="number"] {
  grid-column: 1 / -1;
}

.vpmrt__script-search,
.vpmrt__filters,
.vpmrt__inline-actions,
.vpmrt__actions,
.vpmrt .voicepa-actions,
.vpmrt .voicepa-message-form {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.vpmrt__script-search label,
.vpmrt__filters label,
.vpmrt__inline-actions label {
  flex: 1 1 240px;
  min-width: 0;
}

.vpmrt__script-results {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin-top: 8px;
}

.vpmrt__script-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius-sm);
}

.vpmrt__selected {
  margin-top: 8px;
  padding: 12px;
  background: var(--vpmrt-success-soft);
  border: 1px solid color-mix(in srgb, var(--vpmrt-success) 35%, var(--vpmrt-border));
  border-radius: var(--vpmrt-radius-sm);
}

.vpmrt__button,
.vpmrt .voicepa-button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 9px 16px !important;
  color: var(--vpmrt-text);
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border-strong);
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

.vpmrt__button:hover,
.vpmrt .voicepa-button:hover {
  background: #f0efe9;
  text-decoration: none;
}

.vpmrt__button--primary,
.vpmrt .voicepa-button--primary {
  color: #fff;
  background: var(--vpmrt-brand);
  border-color: var(--vpmrt-brand);
}

.vpmrt__button--primary:hover,
.vpmrt .voicepa-button--primary:hover {
  color: #fff;
  background: var(--vpmrt-brand-hover);
}

.vpmrt__button:disabled,
.vpmrt .voicepa-button:disabled {
  color: #73766f;
  background: #deded9;
  border-color: #cecec8;
  cursor: not-allowed;
  opacity: 1;
}

.vpmrt__link-button {
  min-height: 40px;
  padding: 6px 8px !important;
  color: var(--vpmrt-brand);
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.vpmrt__actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.vpmrt__summary {
  min-width: 0;
  padding: 14px;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius);
}

.vpmrt__summary dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.vpmrt__summary :where(dt, dd) { margin: 0; }
.vpmrt__summary dd { text-align: right; font-weight: 700; }
.vpmrt__summary-total { padding-top: 8px; border-top: 1px solid var(--vpmrt-border); font-size: 1.05rem; }

.vpmrt__consents {
  display: grid;
  min-width: 0;
  gap: 4px;
  margin-top: 12px;
}

.vpmrt__alert,
.vpmrt__status,
.vpmrt .voicepa-form-status,
.vpmrt .voicepa-error-box {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius-sm);
}

.vpmrt__alert--warning { color: var(--vpmrt-warning); background: var(--vpmrt-warning-soft); border-color: #e6cc83; }
.vpmrt__alert--info { color: var(--vpmrt-info); background: var(--vpmrt-info-soft); border-color: #a8d0e2; }
.vpmrt__alert--success { color: var(--vpmrt-success); background: var(--vpmrt-success-soft); border-color: #abd0b8; }
.vpmrt__alert--danger,
.vpmrt__status.is-error,
.vpmrt .voicepa-form-status.is-error,
.vpmrt .voicepa-error-box { color: var(--vpmrt-danger); background: var(--vpmrt-danger-soft); border-color: #e5abab; }

.vpmrt__status:empty,
.vpmrt .voicepa-form-status:empty { display: none; }

.vpmrt__filters {
  margin-bottom: 14px;
}

.vpmrt__cards,
.vpmrt .voicepa-order-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.vpmrt__card,
.vpmrt .voicepa-order-card,
.vpmrt .voicepa-order-detail,
.vpmrt .voicepa-message {
  min-width: 0;
  padding: 16px;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius);
}

.vpmrt__card h3,
.vpmrt .voicepa-order-card h3,
.vpmrt .voicepa-order-detail h2,
.vpmrt .voicepa-order-detail h3 {
  margin-bottom: 8px;
  color: var(--vpmrt-text);
  line-height: 1.35;
}

.vpmrt__card-meta,
.vpmrt .voicepa-order-meta {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 12px 0;
}

.vpmrt__card-meta > div,
.vpmrt .voicepa-order-meta > div {
  min-width: 0;
  padding: 9px;
  background: var(--vpmrt-surface-soft);
  border-radius: var(--vpmrt-radius-sm);
}

.vpmrt__card-meta span,
.vpmrt .voicepa-order-meta span {
  display: block;
  color: var(--vpmrt-muted);
  font-size: 0.75rem;
}

.vpmrt__card-meta strong,
.vpmrt .voicepa-order-meta strong {
  display: block;
  margin-top: 2px;
}

.vpmrt .voicepa-order-detail {
  padding: 0;
  border: 0;
}

.vpmrt .voicepa-order-detail > section,
.vpmrt .voicepa-order-detail > form {
  min-width: 0;
  margin-top: 16px;
  padding: 16px;
  background: var(--vpmrt-surface-soft);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius);
}

.vpmrt .voicepa-action-panel,
.vpmrt .voicepa-message-form {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin-top: 12px;
}

.vpmrt .voicepa-timeline {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.vpmrt .voicepa-message p { margin-bottom: 0; white-space: pre-wrap; }

.vpmrt__progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  background: #e5e5df;
  border-radius: 999px;
}

.vpmrt__progress > span {
  display: block;
  height: 100%;
  max-width: 100%;
  background: var(--vpmrt-brand);
}

.vpmrt__publication-registration {
  display: grid;
  min-width: 0;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border-strong);
  border-radius: var(--vpmrt-radius);
}

.vpmrt__publication-registration-title {
  margin: 0;
  color: var(--vpmrt-text);
  font-size: 1rem;
  line-height: 1.45;
}

.vpmrt__publication-registration .vpmrt__field,
.vpmrt__publication-registration .vpmrt__check {
  min-width: 0;
  margin: 0;
}

.vpmrt__publication-registration input[type="number"] {
  width: 100%;
  min-width: 0;
  max-width: 24rem;
}

.vpmrt__dialog {
  width: min(92vw, 820px);
  max-height: 86vh;
  padding: 0;
  color: var(--vpmrt-text);
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius-lg);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.25);
}

.vpmrt__dialog::backdrop { background: rgba(20, 22, 20, 0.62); }

.vpmrt__dialog-head {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--vpmrt-surface);
  border-bottom: 1px solid var(--vpmrt-border);
}

.vpmrt__dialog-head h2 { margin: 0; font-size: 1.18rem; }
.vpmrt__dialog-head button { width: 42px; height: 42px; padding: 0 !important; background: transparent; border: 0; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.vpmrt__dialog-body { min-width: 0; max-height: calc(86vh - 72px); padding: 18px; overflow: auto; }
.vpmrt__dialog-body img,
.vpmrt__dialog-body audio,
.vpmrt__dialog-body video { max-width: 100%; }

.vpmrt__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 820px) {
  .vpmrt__choice-grid--three,
  .vpmrt__metric-grid {
    grid-template-columns: 1fr;
  }

  .vpmrt__section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .vpmrt {
    padding: 10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .vpmrt__hero,
  .vpmrt__panel {
    border-radius: var(--vpmrt-radius);
  }

  .vpmrt__choice-grid,
  .vpmrt__grid,
  .vpmrt .voicepa-order-meta,
  .vpmrt .voicepa-action-list,
  .vpmrt .voicepa-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vpmrt__field--wide,
  .vpmrt .voicepa-field--wide {
    grid-column: auto;
  }

  .vpmrt__actions,
  .vpmrt__script-search,
  .vpmrt__filters,
  .vpmrt__inline-actions,
  .vpmrt .voicepa-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .vpmrt__actions > *,
  .vpmrt__script-search > *,
  .vpmrt__filters > *,
  .vpmrt__inline-actions > *,
  .vpmrt .voicepa-actions > * {
    width: 100%;
    flex-basis: auto;
  }

  /* The desktop label rule carries element-level specificity. Override the
   * complete flex shorthand on narrow screens so a search label never keeps
   * a 240px flex basis and creates an empty vertical block. */
  .vpmrt__script-search > label,
  .vpmrt__filters > label,
  .vpmrt__inline-actions > label {
    flex: 0 1 auto;
  }
}

@media (max-width: 380px) {
  .vpmrt { font-size: 15px; }
  .vpmrt__hero,
  .vpmrt__panel,
  .vpmrt__fieldset,
  .vpmrt .voicepa-change-fields { padding: 12px; }
  .vpmrt__choice-card { min-height: 0; padding: 14px; }
  .vpmrt__nav a { padding-right: 12px; padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .vpmrt *,
  .vpmrt *::before,
  .vpmrt *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .vpmrt__choice-card:has(input:checked),
  .vpmrt__chips label > input:checked + span,
  .vpmrt__button--primary,
  .vpmrt .voicepa-button--primary {
    border: 2px solid ButtonText;
  }
}


/* -------------------------------------------------------------------------
 * 3.3 portal layout
 * The terminal opens as an operations hub. Transaction lists are primary;
 * creating or discovering work is always an explicit secondary destination.
 * ---------------------------------------------------------------------- */
.vpmrt--portal {
  max-width: 1180px;
  padding: clamp(10px, 2vw, 24px);
}

.vpmrt__portal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.12), transparent 31%),
    linear-gradient(145deg, #2e302d 0%, #3c3d38 62%, #60383b 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--vpmrt-radius-lg);
  box-shadow: var(--vpmrt-shadow);
}

.vpmrt__portal-head--order { grid-template-columns: minmax(0, 1fr) auto; }
.vpmrt__portal-title { min-width: 0; }
.vpmrt__portal-head .vpmrt__eyebrow { color: rgba(255, 255, 255, 0.73); }
.vpmrt__portal-head .vpmrt__title { margin-bottom: 8px; color: #fff; }
.vpmrt__portal-head .vpmrt__lead { max-width: 720px; margin-bottom: 0; color: rgba(255, 255, 255, 0.86); }

.vpmrt__quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.vpmrt__quick-action {
  display: grid;
  min-width: 0;
  min-height: 104px;
  align-content: center;
  gap: 2px;
  padding: 14px;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.vpmrt__quick-action:hover,
.vpmrt__quick-action:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.vpmrt__quick-action > span { font-size: 1.15rem; line-height: 1; }
.vpmrt__quick-action > strong { font-size: 0.9rem; line-height: 1.35; }
.vpmrt__quick-action > small { color: rgba(255, 255, 255, 0.73); font-size: 0.7rem; line-height: 1.35; }

.vpmrt__overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 14px 0;
}

.vpmrt__overview-card {
  display: grid;
  min-width: 0;
  min-height: 104px;
  align-content: center;
  gap: 3px;
  padding: 14px 16px;
  color: var(--vpmrt-text) !important;
  text-decoration: none !important;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: 13px;
  box-shadow: 0 4px 16px rgba(31, 33, 29, 0.045);
}

.vpmrt__overview-card:hover,
.vpmrt__overview-card:focus-visible {
  color: var(--vpmrt-text) !important;
  border-color: var(--vpmrt-brand);
  box-shadow: 0 7px 20px rgba(141, 51, 56, 0.09);
}

.vpmrt__overview-count {
  color: var(--vpmrt-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1;
}

.vpmrt__overview-card > strong { font-size: 0.9rem; }
.vpmrt__overview-card > small { color: var(--vpmrt-muted); font-size: 0.73rem; line-height: 1.35; }

.vpmrt__workspace {
  display: grid;
  grid-template-columns: minmax(190px, 228px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.vpmrt__portal-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--vpmrt-border);
  border-radius: var(--vpmrt-radius);
  box-shadow: 0 8px 24px rgba(31, 33, 29, 0.055);
  backdrop-filter: blur(12px);
}

.vpmrt__portal-nav a {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 11px 12px;
  color: var(--vpmrt-text) !important;
  white-space: normal;
  text-align: left;
  text-decoration: none !important;
  border: 1px solid transparent;
  border-radius: 10px;
}

.vpmrt__portal-nav a:hover,
.vpmrt__portal-nav a:focus-visible {
  color: var(--vpmrt-text) !important;
  background: var(--vpmrt-surface-soft);
  border-color: var(--vpmrt-border);
}

.vpmrt__portal-nav a[aria-current="page"],
.vpmrt__portal-nav a.is-active {
  color: #fff !important;
  background: var(--vpmrt-brand);
  border-color: var(--vpmrt-brand);
  box-shadow: 0 5px 14px rgba(141, 51, 56, 0.2);
}

.vpmrt__portal-nav strong { min-width: 0; font-size: 0.9rem; line-height: 1.35; }
.vpmrt__portal-nav small { min-width: 0; color: var(--vpmrt-muted); font-size: 0.7rem; line-height: 1.35; }
.vpmrt__portal-nav a[aria-current="page"] small,
.vpmrt__portal-nav a.is-active small { color: rgba(255, 255, 255, 0.82); }

.vpmrt__portal-main { min-width: 0; }
.vpmrt__panel--portal { min-width: 0; margin: 0; padding: clamp(14px, 2.4vw, 24px); }
.vpmrt__panel--create { border-color: color-mix(in srgb, var(--vpmrt-brand) 22%, var(--vpmrt-border)); }
.vpmrt__back-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin: 0 0 14px;
  padding: 6px 10px !important;
  color: var(--vpmrt-brand);
  background: transparent;
  border: 0;
  font-weight: 760;
  cursor: pointer;
}

.vpmrt__list-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.4fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  margin-bottom: 12px;
  padding: 10px;
  background: var(--vpmrt-surface-soft);
  border: 1px solid var(--vpmrt-border);
  border-radius: 12px;
}

.vpmrt__list-toolbar label { display: grid; min-width: 0; gap: 4px; }
.vpmrt__list-toolbar .vpmrt__button { min-height: 44px; }
.vpmrt__transaction-list { display: grid; min-width: 0; gap: 9px; }

.vpmrt__application-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.vpmrt__application-columns > section {
  min-width: 0;
  padding: 12px;
  background: var(--vpmrt-surface-soft);
  border: 1px solid var(--vpmrt-border);
  border-radius: 13px;
}

.vpmrt__application-columns h3 { margin-bottom: 10px; font-size: 0.98rem; }
.vpmrt__order-row {
  display: grid;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  float: none !important;
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(31, 33, 29, 0.045);
}

.vpmrt__order-row.is-action-required {
  background: linear-gradient(90deg, var(--vpmrt-brand-soft), #fff 32%);
  border-color: color-mix(in srgb, var(--vpmrt-brand) 38%, var(--vpmrt-border));
  box-shadow: inset 4px 0 0 var(--vpmrt-brand), 0 4px 14px rgba(141, 51, 56, 0.07);
}

.vpmrt__order-row.is-terminal { opacity: 0.84; }
.vpmrt__order-row-main { display: grid; min-width: 0; gap: 6px; }
.vpmrt__order-row-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.vpmrt__order-row-heading h3 { min-width: 0; margin: 0; color: var(--vpmrt-text); font-size: 1rem; line-height: 1.35; }
.vpmrt__order-scope,
.vpmrt__attention-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}
.vpmrt__order-scope { color: var(--vpmrt-info); background: var(--vpmrt-info-soft); }
.vpmrt__attention-badge { color: #fff; background: var(--vpmrt-brand); }
.vpmrt__order-next { margin: 0; color: var(--vpmrt-muted); font-size: 0.86rem; font-weight: 650; }
.vpmrt__order-next.is-action-required { color: var(--vpmrt-brand); }
.vpmrt__order-row-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; min-width: 0; margin: 0; }
.vpmrt__order-row-meta > div { display: inline-flex; min-width: 0; gap: 4px; align-items: baseline; }
.vpmrt__order-row-meta dt { color: var(--vpmrt-muted); font-size: 0.72rem; }
.vpmrt__order-row-meta dd { min-width: 0; margin: 0; color: var(--vpmrt-text); font-size: 0.78rem; font-weight: 700; overflow-wrap: anywhere; }
.vpmrt__order-row-side { display: grid; justify-items: end; gap: 7px; min-width: max-content; }
.vpmrt__application-row .vpmrt__order-row-side { max-width: 320px; }
.vpmrt__application-brief { margin: 0; font-size: 0.86rem; }

.vpmrt__empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: clamp(28px, 6vw, 58px) 18px;
  text-align: center;
  background: var(--vpmrt-surface-soft);
  border: 1px dashed var(--vpmrt-border-strong);
  border-radius: var(--vpmrt-radius);
}
.vpmrt__empty-state h3,
.vpmrt__empty-state p { margin-bottom: 0; }

@media (max-width: 980px) {
  .vpmrt__portal-head { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__quick-actions { max-width: 680px; }
  .vpmrt__workspace { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__portal-nav {
    position: sticky;
    top: 0;
    display: flex;
    max-width: 100%;
    gap: 6px;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .vpmrt__portal-nav a { flex: 0 0 auto; min-width: 132px; padding: 9px 11px; }
  .vpmrt__portal-nav small { display: none; }
}

@media (max-width: 720px) {
  .vpmrt__overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpmrt__application-columns { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__list-toolbar { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__list-toolbar .vpmrt__button { width: 100%; }
}

@media (max-width: 560px) {
  .vpmrt--portal { padding: 8px; }
  .vpmrt__portal-head { padding: 16px 14px; border-radius: var(--vpmrt-radius); }
  .vpmrt__portal-head--order { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__portal-head .vpmrt__title { font-size: clamp(1.75rem, 9vw, 2.15rem); }
  .vpmrt__portal-head .vpmrt__lead { font-size: 0.88rem; line-height: 1.65; }
  /* Creation is deliberately secondary on phones: compact launch buttons keep
   * the active transaction list above the fold instead of turning the portal
   * into a three-card landing page. */
  .vpmrt__quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .vpmrt__quick-action { min-height: 62px; gap: 1px; padding: 8px 6px; text-align: center; }
  .vpmrt__quick-action > span { font-size: 0.95rem; }
  .vpmrt__quick-action > strong { font-size: 0.74rem; }
  .vpmrt__quick-action > small { display: none; }
  .vpmrt__overview-card { min-height: 72px; padding: 10px; }
  .vpmrt__overview-count { font-size: 1.45rem; }
  .vpmrt__order-row { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .vpmrt__order-row-side { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; min-width: 0; }
  .vpmrt__order-row-side .vpmrt__button { width: 100%; }
  .vpmrt__application-row .vpmrt__order-row-side { max-width: none; }
  .vpmrt__order-row-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpmrt__order-row-meta > div { display: grid; gap: 0; }
}

@media (max-width: 380px) {
  .vpmrt__overview { gap: 7px; }
  .vpmrt__overview-card { padding: 10px; }
  .vpmrt__order-row-meta { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__portal-nav a { min-width: 116px; }
}

/* Portal identity and application rows. */
.vpmrt__order-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vpmrt__order-avatar {
  flex: 0 0 auto;
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  object-fit: cover;
  border: 1px solid var(--vpmrt-border);
  border-radius: 50%;
  background: var(--vpmrt-surface-soft);
}

.vpmrt__order-identity-text { min-width: 0; }
.vpmrt__order-counterparty,
.vpmrt__application-counterparty,
.vpmrt__application-message {
  min-width: 0;
  margin: 2px 0 0;
  color: var(--vpmrt-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.vpmrt__application-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: var(--vpmrt-surface);
  border: 1px solid var(--vpmrt-border);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(31, 33, 29, 0.04);
}

.vpmrt__application-row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.vpmrt__application-row-side {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.vpmrt__application-row-side > .vpmrt__consent-panel {
  flex: 1 0 100%;
  min-width: 0;
  margin-top: 2px;
}

.vpmrt__application-brief,
.vpmrt__application-message {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vpmrt__application-message {
  padding: 8px 10px;
  color: var(--vpmrt-text);
  background: var(--vpmrt-surface-soft);
  border-radius: 9px;
}

@media (max-width: 560px) {
  .vpmrt__application-row-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .vpmrt__application-row-side > .vpmrt__button { width: 100%; }
}

/* ========================================================================
   Request Terminal 3.4 realignment
   - restores the compact pink mailbox character of the early terminal
   - keeps the modern order/state/payment backend
   - central inbox first; no creation dashboard and no arbitrary user lookup
   ======================================================================== */
.vpmrt.vprt-terminal--hub,
.vpmrt.vpmrt--order {
  --vprt-pink: #f6a6bf;
  --vprt-pink-strong: #ee789d;
  --vprt-pink-deep: #a83a5d;
  --vprt-blue: #2597c7;
  --vprt-blue-soft: #eef8fd;
  --vprt-ink: #332a2d;
  --vprt-muted: #817177;
  --vprt-soft: #fff7fb;
  --vprt-line: #f0d8e1;
  --vprt-line-strong: #e5bccb;
  --vprt-shadow: 0 14px 36px rgba(164, 63, 96, .09);
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 10px;
  color: var(--vprt-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: none;
}
.vpmrt.vprt-terminal--hub :where(h1, h2, h3, p),
.vpmrt.vpmrt--order :where(h1, h2, h3, p) { margin: 0; }
.vpmrt.vprt-terminal--hub :where(a, button),
.vpmrt.vpmrt--order :where(a, button) { -webkit-tap-highlight-color: transparent; }

.vprt-terminal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: 0 0 10px;
  padding: 12px 13px;
  border: 1px solid var(--vprt-line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, var(--vprt-soft) 66%, #eef8fd 100%);
  box-shadow: 0 10px 28px rgba(164, 63, 96, .08);
}
.vprt-terminal__brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vprt-terminal__brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--vprt-line);
  border-radius: 14px;
  background: #fff;
  color: var(--vprt-pink-strong);
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.vprt-terminal__eyebrow {
  margin: 0 0 1px !important;
  color: var(--vprt-pink-deep);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.vprt-terminal__brand h1 {
  overflow-wrap: anywhere;
  color: var(--vprt-ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}
.vprt-terminal__brand p:last-child {
  margin-top: 3px;
  color: var(--vprt-muted);
  font-size: 11px;
  line-height: 1.45;
}
.vprt-terminal__head-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.vprt-terminal__head-actions a,
.vprt-terminal__back,
.vprt-terminal__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--vprt-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--vprt-pink-deep) !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none !important;
  box-shadow: 0 5px 14px rgba(164, 63, 96, .07);
  cursor: pointer;
}
.vprt-terminal__head-actions a:first-child,
.vprt-terminal__primary {
  border-color: #ef9db7;
  background: linear-gradient(135deg, #fff0f6, #ffe8f1);
}
.vprt-terminal__head-actions a:hover,
.vprt-terminal__head-actions a:focus-visible,
.vprt-terminal__back:hover,
.vprt-terminal__back:focus-visible,
.vprt-terminal__primary:hover,
.vprt-terminal__primary:focus-visible {
  border-color: var(--vprt-pink-strong);
  background: #fff;
  color: #8f294d !important;
}

.vprt-terminal__notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 9px;
  padding: 8px 11px;
  border: 1px solid #ead9af;
  border-radius: 12px;
  background: #fffaf0;
  color: #71582f;
  font-size: 11px;
}
.vprt-terminal__notice strong { font-weight: 900; }

.vprt-terminal__tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
  margin: 0 0 9px;
  padding: 2px 1px 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ecc1d0 transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.vprt-terminal__tabs a {
  flex: 0 0 auto;
  min-height: 33px;
  padding: 7px 11px;
  border: 1px solid var(--vprt-line);
  border-radius: 999px;
  background: #fff;
  color: #7d6870 !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none !important;
}
.vprt-terminal__tabs a:hover,
.vprt-terminal__tabs a:focus-visible,
.vprt-terminal__tabs a.is-active,
.vprt-terminal__tabs a[aria-current="page"] {
  border-color: #f2a8c0;
  background: linear-gradient(135deg, #fff0f6, #ffe8f1);
  color: #a22f56 !important;
  box-shadow: 0 7px 17px rgba(238, 120, 157, .12);
}

.vprt-terminal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 222px;
  align-items: start;
  gap: 10px;
  min-width: 0;
}
.vprt-terminal__mailbox,
.vpmrt--order > .vprt-terminal__mailbox {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--vprt-line);
  border-radius: 19px;
  background: linear-gradient(180deg, #fff, #fffdfd);
  box-shadow: var(--vprt-shadow);
  overflow: hidden;
}
.vprt-terminal__panel { min-width: 0; }
.vprt-terminal__panel[hidden] { display: none !important; }
.vprt-terminal__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin: 0 0 9px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid #f3e3e9;
}
.vprt-terminal__section-head > div { min-width: 0; }
.vprt-terminal__section-head span {
  display: block;
  color: #bc5b7a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.vprt-terminal__section-head h2 {
  margin-top: 1px;
  color: var(--vprt-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}
.vprt-terminal__section-head > button {
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid var(--vprt-line);
  border-radius: 999px;
  background: #fff7fa;
  color: #9d4562;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.vprt-terminal__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 7px;
  margin: 0 0 8px;
}
.vprt-terminal__toolbar label { min-width: 0; }
.vprt-terminal__toolbar input[type="search"],
.vprt-terminal__toolbar select,
.vprt-directory__filters input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 39px;
  padding: 7px 11px !important;
  border: 1px solid var(--vprt-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--vprt-ink);
  font-size: 12px !important;
  box-shadow: 0 6px 18px rgba(164, 63, 96, .05);
}
.vprt-terminal__toolbar input[type="search"]:focus,
.vprt-terminal__toolbar select:focus,
.vprt-directory__filters input[type="search"]:focus {
  border-color: #f09bb6;
  outline: 3px solid rgba(246,166,191,.19);
  outline-offset: 0;
}

.vprt-terminal__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.vpmrt__order-row,
.vpmrt__application-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--vprt-line);
  border-radius: 15px;
  background: #fff;
  color: var(--vprt-ink);
  box-shadow: 0 7px 20px rgba(164, 63, 96, .055);
}
.vpmrt__order-row:hover,
.vpmrt__order-row:focus-within,
.vpmrt__application-row:hover,
.vpmrt__application-row:focus-within {
  border-color: #f1adc3;
  box-shadow: 0 11px 26px rgba(164, 63, 96, .09);
}
.vpmrt__order-row.is-action-required {
  border-color: #ee9ab5;
  background: linear-gradient(135deg, #fff, #fff6f9);
}
.vpmrt__order-row.is-terminal { opacity: .84; }
.vpmrt__order-row-main,
.vpmrt__application-row-main { display: grid; gap: 5px; min-width: 0; }
.vpmrt__order-identity { gap: 8px; }
.vpmrt__order-avatar {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  border: 2px solid #f3d6df;
  box-shadow: 0 3px 10px rgba(164,63,96,.08);
}
.vpmrt__order-row-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.vpmrt__order-row-heading h3 {
  color: var(--vprt-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}
.vpmrt__order-counterparty,
.vpmrt__application-counterparty {
  margin-top: 1px;
  color: var(--vprt-muted);
  font-size: 10px;
}
.vpmrt__order-scope,
.vpmrt__badge,
.vpmrt__attention-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
}
.vpmrt__order-scope { background: #eef8fd; color: #337394; }
.vpmrt__badge { background: #f7f0f3; color: #7b5a66; }
.vpmrt__attention-badge { background: #fff0f5; color: #b6335d; }
.vpmrt__order-next {
  margin: 0 !important;
  color: #6f6066;
  font-size: 10px;
}
.vpmrt__order-next.is-action-required { color: #b1345c; font-weight: 900; }
.vpmrt__order-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin: 0;
}
.vpmrt__order-row-meta > div {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
  margin: 0;
}
.vpmrt__order-row-meta dt,
.vpmrt__order-row-meta dd {
  margin: 0;
  color: #817177;
  font-size: 9px;
  line-height: 1.35;
}
.vpmrt__order-row-meta dd { color: #4c3d43; font-weight: 800; }
.vpmrt__order-row-side,
.vpmrt__application-row-side {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 92px;
}
.vpmrt__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 9px !important;
  border: 1px solid var(--vprt-line-strong) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #99506a !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.vpmrt__button--primary {
  border-color: #e88eaa !important;
  background: linear-gradient(135deg, #fff0f6, #ffe8f1) !important;
  color: #a12f56 !important;
}

.vprt-terminal__empty,
.vpmrt__empty-state,
.vpmrt__alert {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px dashed #e7c7d2;
  border-radius: 14px;
  background: #fffafb;
  color: #77656c;
  font-size: 11px;
}
.vprt-terminal__empty strong,
.vpmrt__empty-state strong { color: #4b3940; font-size: 13px; }

.vprt-terminal__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.vprt-terminal__split > section {
  min-width: 0;
  padding: 9px;
  border: 1px solid #f0e0e6;
  border-radius: 14px;
  background: #fffdfd;
}
.vprt-terminal__split h3 { margin: 0 0 7px; color: #755060; font-size: 12px; font-weight: 900; }

.vprt-directory__lead {
  margin: -2px 2px 9px !important;
  color: var(--vprt-muted);
  font-size: 11px;
}
.vprt-directory__filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0 0 9px;
  padding: 8px;
  border: 1px solid #f0e0e6;
  border-radius: 14px;
  background: #fffafb;
}
.vprt-directory__scope-tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
}
.vprt-directory__scope-tabs button,
.vprt-directory__filters > button,
.vprt-directory__pagination button,
.vprt-directory__back {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--vprt-line);
  border-radius: 999px;
  background: #fff;
  color: #806a72;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.vprt-directory__scope-tabs button[aria-pressed="true"],
.vprt-directory__filters > button {
  border-color: #ef9fba;
  background: #fff0f6;
  color: #a43158;
}
.vprt-directory__body,
.vprt-directory__list { min-width: 0; }
.vprt-directory__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vprt-directory-card { min-width: 0; margin: 0; }
.vprt-directory-card__main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--vprt-line);
  border-radius: 15px;
  background: #fff;
  color: var(--vprt-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 7px 20px rgba(164,63,96,.05);
}
.vprt-directory-card__main:hover,
.vprt-directory-card__main:focus-visible {
  border-color: #f1adc3;
  box-shadow: 0 11px 26px rgba(164,63,96,.09);
}
.vprt-directory-card__main > img {
  display: block;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  border: 2px solid #f3d5df;
  border-radius: 999px;
  object-fit: cover;
  background: #f8eef2;
}
.vprt-directory-card__content { display: grid; gap: 3px; min-width: 0; }
.vprt-directory-card__top { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; }
.vprt-directory-card__top strong {
  min-width: 0;
  overflow: hidden;
  color: #3d3035;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vprt-directory-card__brief {
  display: -webkit-box;
  overflow: hidden;
  color: #66565c;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.vprt-directory-card__meta { color: #a14d69; font-size: 9px; font-weight: 800; }
.vprt-directory-card__arrow { color: #d27694; font-size: 23px; line-height: 1; }
.vprt-scope-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}
.vprt-scope-tag--personal { background: #eef8fd; color: #34779a; }
.vprt-scope-tag--publication { background: #fff0f6; color: #a63358; }
.vprt-directory__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
  color: #846d76;
  font-size: 10px;
}
.vprt-directory__detail {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--vprt-line);
  border-radius: 15px;
  background: #fff;
}
.vprt-directory-detail__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 8px;
}
.vprt-directory-detail__head img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  border: 2px solid #f1ceda;
  border-radius: 999px;
  object-fit: cover;
}
.vprt-directory-detail__head h3 { margin-top: 4px; color: #3f3036; font-size: 16px; }
.vprt-directory-detail__head p { margin-top: 4px; color: #6e5c63; font-size: 11px; line-height: 1.55; }
.vprt-directory-detail__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  margin: 10px 0;
  padding: 9px;
  border-radius: 12px;
  background: #fff7fa;
}
.vprt-directory-detail__facts dt,
.vprt-directory-detail__facts dd { margin: 0; font-size: 10px; }
.vprt-directory-detail__facts dt { color: #9b5c72; font-weight: 900; }
.vprt-directory-detail__facts dd { color: #4d3c43; }
.vprt-directory-detail__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.vprt-directory-detail__actions a:not(.vprt-terminal__primary) {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--vprt-line);
  border-radius: 999px;
  color: #7a5f69;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}
.vprt-directory__detail audio { width: 100%; max-width: 100%; margin-top: 4px; }

.vprt-terminal__side {
  display: grid;
  gap: 8px;
  min-width: 0;
  position: sticky;
  top: 10px;
}
.vprt-terminal__side section {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--vprt-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fffafb);
  box-shadow: 0 7px 20px rgba(164,63,96,.045);
}
.vprt-terminal__side h2 { color: #6c4151; font-size: 11px; font-weight: 900; }
.vprt-terminal__side p { margin-top: 5px; color: #77666c; font-size: 9px; line-height: 1.55; }
.vprt-terminal__side a {
  display: inline-flex;
  margin-top: 7px;
  color: #a03358 !important;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.vpmrt__settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: #fffafb;
}
.vpmrt__settings-form > p,
.vpmrt__settings-form > button,
.vpmrt__settings-form > [role="status"],
.vprt-terminal__scope-switches { grid-column: 1 / -1; }
.vpmrt__settings-form label { display: grid; gap: 4px; min-width: 0; color: #6d5360; font-size: 10px; font-weight: 900; }
.vpmrt__settings-form :where(input, select) { min-height: 38px !important; padding: 7px 9px !important; border-radius: 10px !important; font-size: 11px !important; }
.vprt-terminal__scope-switches { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.vprt-terminal__scope-switches label { display: inline-flex; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 6px; }

.vpmrt--order .vprt-terminal__head { margin-bottom: 9px; }
.vpmrt--order .vprt-terminal__mailbox { max-width: 860px; margin: 0 auto; }

@media (max-width: 760px) {
  .vpmrt.vprt-terminal--hub,
  .vpmrt.vpmrt--order { padding: 7px; }
  .vprt-terminal__head { align-items: flex-start; }
  .vprt-terminal__head-actions { display: none; }
  .vprt-terminal__layout { grid-template-columns: minmax(0, 1fr); }
  .vprt-terminal__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vprt-terminal__toolbar { grid-template-columns: minmax(0, 1fr) 112px; }
  .vprt-directory__filters { grid-template-columns: minmax(0, 1fr) auto; }
  .vprt-directory__scope-tabs { grid-column: 1 / -1; grid-row: 2; }
  .vprt-directory__filters > button { grid-column: 2; grid-row: 1; }
}

@media (max-width: 520px) {
  .vpmrt.vprt-terminal--hub,
  .vpmrt.vpmrt--order { padding: 3px; }
  .vprt-terminal__head { padding: 10px; border-radius: 15px; }
  .vprt-terminal__brand { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .vprt-terminal__brand-icon { width: 36px; height: 36px; border-radius: 12px; font-size: 19px; }
  .vprt-terminal__brand h1 { font-size: 16px; }
  .vprt-terminal__brand p:last-child { font-size: 10px; }
  .vprt-terminal__mailbox { padding: 8px; border-radius: 16px; }
  .vprt-terminal__toolbar { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__order-row,
  .vpmrt__application-row { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .vpmrt__order-row-side,
  .vpmrt__application-row-side { display: flex; align-items: center; justify-content: space-between; min-width: 0; }
  .vpmrt__button { margin-left: auto; }
  .vpmrt__order-row-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 7px; }
  .vpmrt__order-row-meta > div { display: grid; gap: 0; }
  .vprt-terminal__split { grid-template-columns: minmax(0, 1fr); }
  .vprt-directory__filters { grid-template-columns: minmax(0, 1fr) auto; }
  .vprt-directory-card__main { grid-template-columns: 43px minmax(0, 1fr) auto; gap: 7px; padding: 8px; }
  .vprt-directory-card__main > img { width: 43px !important; height: 43px !important; max-width: 43px !important; }
  .vprt-terminal__side { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__settings-form { grid-template-columns: minmax(0, 1fr); }
  .vpmrt__settings-form > * { grid-column: auto; }
}

@media (max-width: 360px) {
  .vprt-terminal__tabs a { padding-inline: 9px; }
  .vprt-directory__filters { grid-template-columns: minmax(0, 1fr); }
  .vprt-directory__filters > button,
  .vprt-directory__scope-tabs { grid-column: 1; grid-row: auto; }
  .vprt-directory__filters > button { width: 100%; }
  .vpmrt__order-row-meta { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .vpmrt.vprt-terminal--hub *,
  .vpmrt.vpmrt--order * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Request Terminal 3.5 — unread conversation marker. */
.vpmrt__message-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: .15rem .55rem;
  border: 1px solid #cbdcf4;
  border-radius: 999px;
  background: #edf5ff;
  color: #285f9b;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.vpmrt__order-row:has(.vpmrt__message-badge) {
  box-shadow: inset 3px 0 0 #8eb8e8;
}
@supports not selector(:has(*)) {
  .vpmrt__message-badge { margin-inline-start: .25rem; }
}
