/* Shared controls for the application, guided forms, and the interactive preview. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
:where(.panel, .work, .demo-workspace) :is(form, .field, .card), .picker, .picker-anchor { min-width: 0; }
:is(.panel, .work, .demo-workspace) form:not(.button_to, .queue-filter, .prospect-list) {
  display: flex; flex-direction: column; align-items: stretch; gap: 16px;
}
:is(.panel, .work, .demo-workspace) form > :is(.field, .actions, .choices, .choice, p, dl, pre) { margin-block: 0; }
:is(.panel, .work, .demo-workspace) form > :is(.btn, .choice, .link) { align-self: flex-start; }
.field { display: grid; align-content: start; gap: 6px; }
.field input, .field textarea, .wide { max-width: 100%; }
.field input[type=file]::file-selector-button {
  margin-inline-end: 12px; padding: 7px 12px; background: #f1f4fa; border: 1px solid #d6ddeb;
  color: #25334e; border-radius: 8px; font: inherit; cursor: pointer;
}
:is(.platform-app, .panel, .demo-workspace) :is(a, button, input, summary, textarea, select):focus-visible {
  outline: 2px solid #2453ff; outline-offset: 3px;
}
.platform-app .btn, .panel .btn, .demo-workspace .btn { max-width: 100%; min-width: 0; white-space: normal; text-align: center; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions > .button_to, .work .actions > form, .panel .actions > form { margin: 0; }
.actions > *, .row > *, .card > * { min-width: 0; }
.platform-app main .card { padding: clamp(18px, 2.5vw, 28px); }
:is(.work, .panel, .demo-workspace) details:not(.long-value) > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none;
  min-height: 44px; padding: 4px 0; font-weight: 650;
}
:is(.work, .panel, .demo-workspace) details:not(.long-value) > summary::-webkit-details-marker { display: none; }
:is(.work, .panel, .demo-workspace) details:not(.long-value) > summary::after, .picker-trigger::after {
  content: ""; width: 7px; height: 7px; flex: none; border: solid #58677f; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg); margin: -4px 3px 0;
}
:is(.work, .panel, .demo-workspace) details:not(.long-value)[open] > summary::after, .picker-trigger[aria-expanded=true]::after {
  transform: rotate(225deg); margin-block: 4px 0;
}
.picker-anchor { position: relative; }
.picker-trigger, .picker-anchor > select {
  color: #182031; border: 1px solid #bfc9da; background-color: #fff; border-radius: 10px;
  width: 100%; min-height: 46px; font: inherit; font-weight: 500; text-align: start;
}
.picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; overflow-wrap: anywhere; }
.picker-trigger:hover, .utility-button:hover { border-color: #8797b3; background-color: #f8faff; }
.picker-trigger[aria-expanded=true] { border-color: #2453ff; box-shadow: 0 0 0 3px #2453ff14; }
.picker-menu {
  position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 5px); max-height: min(260px, 40dvh);
  overflow-y: auto; overscroll-behavior: contain; padding: 5px;
  background: white; border: 1px solid #d9e0ec; border-radius: 12px; box-shadow: 0 10px 32px #25355824;
}
.picker-menu.opens-up { top: auto; bottom: calc(100% + 5px); }
.picker-menu [role=option] {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px;
  padding: 7px 10px; border-radius: 7px; font-size: .91rem; line-height: 1.4; color: #26334b; cursor: pointer; overflow-wrap: anywhere;
}
.picker-menu [role=option]:hover, .picker-menu .highlighted { background: #eff3ff; }
.picker-menu [aria-selected=true] { color: #1843d7; font-weight: 650; }
.picker-menu [aria-selected=true]::after { content: "✓"; font-weight: 700; }
.picker-compact .picker-trigger { width: auto; min-width: 60px; min-height: 38px; padding: 7px 10px; font-size: .8rem; gap: 7px; border-radius: 100px; }
.picker-compact .picker-menu { inset-inline: auto 0; width: 146px; }
.picker-compact .picker-anchor > select { width: 85px; }
.locale .picker { margin: 0; }
.utility-button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 36px; padding: 6px 14px;
  border: 1px solid #cbd4e4; border-radius: 100px; background: white; color: #253654; font-weight: 600; font-size: .83rem;
}
.back-link { display: inline-flex; align-items: center; min-height: 38px; font-size: .87rem; font-weight: 550; text-decoration: none; color: #3c5276; }
.back-link:hover, .prospect-name a:hover { text-decoration: underline; }
.page-heading { margin: 12px 0 24px; }
.page-heading .eyebrow { margin: 0 0 8px; }
.platform-app .page-heading :is(h1,h2) { margin: 0; }
.platform-app .inquiry-detail, .platform-app .services-page { max-width: 1120px; }
.detail-layout, .admin-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.section-stack { display: grid; gap: 18px; min-width: 0; }
.section-stack > .card, .detail-layout > .card, .admin-columns > .card, .intake-tools > .card { margin: 0; }
.detail-card h3, .detail-card h4 { margin: 0; letter-spacing: -.025em; }
.detail-card h4 { margin-top: 24px; font-size: .96rem; }
.detail-card .actions:last-child { margin-bottom: 0; }
.customer-message { margin: 13px 0 22px; line-height: 1.65; white-space: pre-line; color: #243144; max-width: 65ch; }
.info-list { margin: 16px 0 0; }
.info-list > div { display: grid; grid-template-columns: minmax(6rem, .7fr) minmax(0, 1.5fr); gap: 12px; padding: 9px 0; border-top: 1px solid #e8ecf3; align-items: baseline; }
.info-list :is(dt, dd) { margin: 0; }
.info-list dt { font-size: .85rem; color: #59667c; }
.info-list dd { font-size: .94rem; overflow-wrap: anywhere; }
.file-list, .timeline, .item-list, .incident-list, .check-results { padding: 0; list-style: none; }
.file-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #dfe5ef; border-radius: 10px; color: #23429b; text-decoration: none; }
.file-type, .record-type { flex: none; padding: 3px 8px; background: #edf2ff; color: #254ab0; font-size: .7rem; font-weight: 700; border-radius: 5px; }
.file-arrow { margin-inline-start: auto; }
.file-list a:hover { background: #f5f7ff; }
.follow-up form { padding-bottom: 22px; border-bottom: 1px solid #e4e9f1; }
.timeline { margin-bottom: 0; }
.timeline li { position: relative; padding: 0 0 16px 18px; margin-inline-start: 3px; border-inline-start: 1px solid #cdd8ef; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; border-radius: 100%; background: #6686db; }
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline time, .prospect-name small { display: block; font-size: .8rem; color: #5b687d; margin-top: 3px; }
.copy-row, .record-heading, .prospect-row, .prospect-name { display: flex; align-items: center; gap: 12px; }
.dns-record, .copy-row { border: 1px solid #dce3ee; border-radius: 12px; background: #fff; padding: 14px 16px; margin: 10px 0; }
.dns-record code, .record-excerpt { font: .85rem/1.6 ui-monospace, monospace; color: #344461; overflow-wrap: anywhere; }
.dns-record > code, .long-value[open] code { display: block; margin-top: 8px; user-select: all; }
.record-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; }
.record-heading strong { font-size: .92rem; overflow-wrap: anywhere; }
.record-meta, .copy-feedback, .muted-note { font-size: .84rem; color: #58677b; }
.copy-feedback:not(:empty) { display: block; margin-top: 6px; color: #254ab0; }
.long-value summary { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; list-style: none; }
.long-value summary::-webkit-details-marker { display: none; }
.long-value summary > span:last-child { color: #224cd6; text-decoration: underline; font-size: .83rem; }
.long-value[open] .record-excerpt { display: none; }
.long-value:not([open]) .when-open, .long-value[open] .when-closed { display: none; }
.inventory-list { list-style: none; margin: 0; padding: 0; }
.inventory-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 0; border-block-start: 1px solid var(--line); font-size: .9rem; }
.inventory-list li > *, .inventory-example { min-width: 0; overflow-wrap: anywhere; }
.route-arrow { color: #5271ac; }
.copy-row { flex-wrap: wrap; }
.copy-row .utility-button, .prospect-row .badge { margin-inline-start: auto; }
.check-results li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e1e6ef; font-size: .87rem; }
.check-state { color: #81501d; }
.check-state[data-ready=true] { color: #216644; }
.service-actions { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.intake-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; }
.platform-app .queue-filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 22px 0; }
.platform-app .queue-filter > .btn { align-self: flex-end; min-height: 46px; padding-block: 10px; }
.queue-filter .picker { flex: 0 1 340px; margin: 0; }
.admin-columns .detail-card h2 { margin: 0 0 16px; font-size: 1.35rem; }
.prospect-row, .item-list li, .incident-list li { padding: 14px 0; border-top: 1px solid #e5eaf3; }
.prospect-row input { width: 18px; height: 18px; flex: none; }
.prospect-name { min-width: 0; }
.prospect-name a { font-weight: 650; text-decoration: none; }
.incident-list li > a { display: block; margin-top: 7px; font-size: .94rem; }
.prospect-list { margin-bottom: 0; }
.badge-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.language-tab { min-height: 40px; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .9rem; }
.language-tab[aria-current=page] { color: #214bcc; background: #e9efff; }
.admin-site .operator-actions { margin-bottom: 24px; }
.admin-site .decision-form { border-top: 1px solid #e2e7ef; padding-top: 18px; }
.admin-site .decision-form h4 { margin: 0; }
.admin-site .high-impact { border-inline-start: 3px solid #ac574b; }
.activity-list { padding: 0; list-style: none; }
.activity-list li { padding: 12px 0; border-bottom: 1px solid #e3e8f1; }
.activity-list small { display: block; color: #5e6b80; }
.overview-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 14px 18px; margin-bottom: 22px; background: #edf2fb; border-radius: 12px; }
.overview-strip a { font-weight: 550; font-size: .91rem; }
.request-list:not(:has(.empty)) { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 0 18px; }
.request-list .request-row:last-child { border-bottom: 0; }
.dispatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px,100%), 1fr)); gap: 18px; }
.work.incident-page { max-width: 860px; }
.incident-page > h1 { font-size: clamp(1.7rem, 3.8vw, 2.65rem); }
.account-sections { display: grid; gap: 16px; }
.account-sections > section { margin: 0; }
.account-sections h3 { margin: 0 0 12px; }
@media (max-width: 760px) {
  .detail-layout, .admin-columns, .intake-tools { grid-template-columns: minmax(0, 1fr); }
  .mast .navline { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
  .mast .navline nav { flex-wrap: wrap; gap: 6px 12px; }
  .platform-app .tabs { gap: 0 14px; }
  .platform-app .tabs a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
  .record-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .record-heading .record-type { justify-self: start; }
  .record-heading strong { grid-row: 2; grid-column: 1/-1; }
  .record-heading .utility-button { grid-row: 1; grid-column: 2; min-height: 44px; }
  .picker-menu [role=option], .picker-compact .picker-trigger { min-height: 44px; }
  .picker-compact .picker-trigger { min-width: 52px; padding-inline: 8px; }
  .detail-layout, .section-stack { gap: 12px; }
  .info-list > div { grid-template-columns: minmax(76px, .62fr) minmax(0, 1.38fr); }
  .queue-filter .picker { flex: 1 1 190px; }
  .queue-filter > .btn { min-height: 46px; }
}
@media (forced-colors: active) {
  .picker-menu .highlighted { outline: 2px solid Highlight; outline-offset: -2px; }
}
