/* Relay application styling, matched to relay-website/affiliate-tracking/reports.html.
   This layer changes presentation only; layout grids and application behavior stay in their original files. */
:root {
  --ink:#172b35; --muted:#61737b; --blue:#2c51e9; --deep:#2345b8;
  --mint:#e8f5ef; --ice:#edf3ff; --peach:#fff1e6; --line:#e2e8e9;
  --paper:#fff; --canvas:#f5f7fb; --purple:var(--blue); --soft:var(--ice);
  --border:var(--line); --radius:8px;
  font-family:Inter,'Segoe UI',Arial,sans-serif; color:var(--ink); background:var(--canvas);
}
body {background:var(--canvas);color:var(--ink);font-family:Inter,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}
a {color:var(--blue)}
h1,h2,h3 {color:var(--ink);font-weight:650;letter-spacing:-.035em}
h1 {letter-spacing:-.045em}
strong {font-weight:600}
small,.muted,.hint,.user-label small,.loading {color:var(--muted)}
button,input,select,textarea {font-family:inherit}
button:disabled {cursor:not-allowed}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--blue);outline-offset:4px;
}
input:focus-visible,select:focus-visible,textarea:focus-visible {outline:2px solid var(--blue);outline-offset:3px}
.brand {display:inline-flex;align-items:center;gap:9px;color:var(--ink);font-size:30px;font-weight:750;letter-spacing:-1.4px;line-height:1.2}
.brand::before {content:'';display:inline-block;flex:none;width:34px;height:34px;background:url('/relay-mark.svg') center/contain no-repeat}
.brand sup {display:none}
.brand span {color:var(--muted);font-family:inherit;font-size:13px;font-weight:450;letter-spacing:0}
.sidebar {border-color:var(--line);background:var(--paper)}
.workspace-select {border-color:var(--line);background:#f8fafb;color:var(--ink);border-radius:6px;font-weight:500}
.nav button {color:var(--muted);border-radius:6px;transition:background .16s,color .16s}
.nav button:hover {background:#f2f5f8;color:var(--ink)}
.nav button.active {background:var(--ice);color:var(--blue);font-weight:600;box-shadow:inset 3px 0 0 var(--blue)}
.sidebar-bottom {border-color:var(--line)}
.user-label {color:var(--ink)}
.topbar {background:#ffffffed;border-color:var(--line);color:var(--muted)}
.pill,.tag,.badge {background:#f1f4f5;border-color:var(--line);color:#526a75;border-radius:5px;font-weight:500}
.pill {border:1px solid var(--line)}
.eyebrow {color:var(--blue);font-weight:650;letter-spacing:.12em}
.page-head h1 {color:var(--ink);font-weight:650;letter-spacing:-.045em}
.page-head p,.card-head small,.metric-label,.metric small,.axis,.legend,.source-row,.foot {color:var(--muted)}
.card,.panel {border-color:var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:0 6px 24px #16284004}
.card-head,.section-heading,.team-row,.key-value,.source-row,.foot {border-color:var(--line)}
.metric-number,.source-big,.number {color:var(--ink);font-weight:600;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.metric-label {font-weight:500}
.metric-symbol {color:var(--blue)}
.button {color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:6px;font-weight:600;box-shadow:0 1px 2px #172b3503;transition:background .16s,border-color .16s,box-shadow .16s,color .16s}
.button:hover {background:#f4f7fc;border-color:#c7d2db;color:var(--ink)}
.button.primary {color:white;background:var(--blue);border-color:var(--blue);box-shadow:0 4px 8px #2448dc12}
.button.primary:hover {color:white;background:var(--deep);border-color:var(--deep);box-shadow:0 6px 14px #2448dc26}
.button.ghost {background:transparent;color:var(--muted);border-color:transparent;box-shadow:none}
.button.ghost:hover {background:var(--ice);color:var(--blue)}
.button.danger {color:#a92f43;border-color:#ebcfd5;background:#fff8f9}
.button.danger:hover {background:#fbe9ed;border-color:#dba7b3}
.button:disabled {box-shadow:none;opacity:.5}
.filters {border-color:var(--line)}
.filters input,.filters select {color:var(--ink);border-color:var(--line);border-radius:6px;background:white}
.filters label {color:var(--muted)}
th {background:#f5f7fb;color:#58707c;font-weight:600;border-color:var(--line);letter-spacing:.065em}
td {color:#405863;border-color:#edf1f3}
tbody tr:hover {background:#f7faff}
.lead-name {color:var(--ink);font-weight:600}
.lead-name:hover {color:var(--blue)}
.subtext {color:var(--muted);line-height:1.5}
.tag {background:#edf3ff;color:#3f5a94}
.tag.green {background:var(--mint);color:#2c674e}
.tag.amber {background:var(--peach);color:#895b2b}
.tag.red {background:#fff0f2;color:#a63449}
.bar,.legend span::before {background:var(--blue)}
.bar.call,.legend span:last-child::before {background:#83bda9}
.plot {border-color:var(--line);background-image:linear-gradient(to top,#eaf0f2 1px,transparent 1px)}
.notice {border-color:#dce5fc;background:#f0f4ff;color:#3e578b;border-radius:8px}
.notice.warning {background:#fff9ef;border-color:#ebdfc8;color:#84602e}
.notice.error,.form-error {background:#fff1f3;border-color:#edcfd6;color:#a12d43;border-radius:8px}
.empty-symbol {color:var(--blue)}
.empty p,.item p,.dialog-body p,.privacy p,.privacy ul {color:var(--muted)}
.field label,label {color:var(--ink)}
.field input,.field select,.field textarea,input,select,textarea {color:var(--ink);border-color:#d7e0e5;border-radius:6px;background:white}
input::placeholder,textarea::placeholder {color:#72848d;opacity:1}
.field small,.check {color:var(--muted)}
.check input,input[type=checkbox] {accent-color:var(--blue)}
.field input:disabled,.field select:disabled,.field textarea:disabled {background:#f5f7f9;color:#6a7c86}
dialog {border-color:var(--line);border-radius:12px;background:var(--paper);box-shadow:0 24px 80px #172b3526}
dialog::backdrop {background:#172b355c;backdrop-filter:blur(3px)}
.dialog-head {border-color:var(--line)}
.dialog-head .button.ghost {color:var(--muted)}
.key-value span {color:var(--muted)}
.key-value strong,.answer-row strong {color:var(--ink)}
.message,.code,.builder-preview {background:#f5f7fb;border-color:var(--line);color:#405863;border-radius:8px}
.builder-field,.activity-item {border-color:var(--line);border-radius:8px;background:white}
.builder-add select,.permission-set {border-color:var(--line);border-radius:8px}
.builder-preview .field input:disabled,.builder-preview .field select:disabled,.builder-preview .field textarea:disabled {background:white;color:var(--muted)}
.role-grid p {color:var(--muted)}
.role-grid article>div .tag {background:var(--mint);color:#2c674e}
.permission-set legend {color:var(--ink)}
.member-actions>.tag {background:var(--ice);color:#3f5a94}
.member-actions>.tag:nth-child(2) {background:#f1f4f5;color:#526a75}
.auth-copy h1 {color:var(--ink);font-weight:650;letter-spacing:-.055em}
.auth-copy p,.auth-list,.legal,.auth-footer {color:var(--muted)}
.auth-list span {line-height:1.7}
.auth-card {border-radius:10px;box-shadow:0 15px 40px #16284008}
.auth-links button,.legal a {color:var(--blue)}
#toast {background:var(--ink);color:white;border-radius:8px;box-shadow:0 8px 24px #172b3520}
.skip-link {color:var(--blue);border:1px solid var(--line);border-radius:6px}
.admin-nav .active,.email-choice.selected {background:var(--ice);color:var(--blue)}
.email-choice {border-radius:6px}
.email-choice:hover {background:#f4f7fc}
.email-choice small {color:var(--muted)}
.email-variables {background:#f5f7fb;border-radius:8px}
.email-variables code,.email-preview {border-color:var(--line)}
.provider-icon {background:var(--ice);color:var(--blue);border-radius:8px}
.panel ul {color:#405863}
.wrap button:not(.button) {background:var(--blue);border-radius:6px;font-family:inherit;box-shadow:0 4px 8px #2448dc12}
.wrap button:not(.button):hover {background:var(--deep)}
.back {color:var(--blue)}
/* Use the reference site's simple line icons without changing navigation markup. */
.nav-icon {width:18px;height:18px;flex:none;font-size:0;background:currentColor;mask:var(--nav-icon) center/18px 18px no-repeat}
@media(max-width:740px) {
  .sidebar.open {box-shadow:12px 0 40px #172b3526}
  .brand {font-size:28px}
  .brand::before {width:31px;height:31px}
  .topbar .pill {font-size:9px}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important;animation:none!important}}

.nav [data-page="overview"] .nav-icon {--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E")}

.nav [data-page="activity"] .nav-icon {--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012h4l3-8%204%2016%203-8h4%22%2F%3E%3C%2Fsvg%3E")}

.nav [data-page="forms"] .nav-icon {--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%2214%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%208h6M9%2012h6M9%2016h3%22%2F%3E%3C%2Fsvg%3E")}

.nav [data-page="numbers"] .nav-icon {--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h4l2%205-3%202a15%2015%200%200%200%206%206l2-3%205%202v4a2%202%200%200%201-2%202C9%2021%203%2015%203%205a2%202%200%200%201%202-2Z%22%2F%3E%3C%2Fsvg%3E")}

.nav [data-page="team"] .nav-icon {--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2021v-3a6%206%200%200%201%2012%200v3m1-16a3%203%200%200%201%200%206m2%204a5%205%200%200%201%203%204v2%22%2F%3E%3C%2Fsvg%3E")}

.nav [data-page="settings"] .nav-icon {--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22m9%203-1%203-3%201%201%203-2%202%202%202-1%203%203%201%201%203h6l1-3%203-1-1-3%202-2-2-2%201-3-3-1-1-3Z%22%2F%3E%3C%2Fsvg%3E")}
/* Shared dropdown treatment. Keep native select semantics and keyboard behavior.
   Customizable pickers progressively enhance browsers that support base-select:
   https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Customizable_select */
:root select:not([multiple]):not([size]) {
  appearance:none;
  -webkit-appearance:none;
  background-color:var(--paper);
  background-image:url('/chevron-down.svg');
  background-position:right 12px center;
  background-size:14px 14px;
  background-repeat:no-repeat;
  border:1px solid #d7e0e5;
  border-radius:6px;
  padding-inline:12px 36px;
  min-height:38px;
  line-height:1.4;
  color:var(--ink);
  cursor:pointer;
  transition:border-color .15s,box-shadow .15s,background-color .15s;
}
:root select:not([multiple]):not([size]):hover:not(:disabled) {
  border-color:#b4c3ce;
  background-color:#fbfcfe;
}
:root select:not([multiple]):not([size]):focus {
  outline:none;
  border-color:#8a9ee8;
  box-shadow:0 0 0 3px #2c51e90d;
}
:root select:not([multiple]):not([size]):focus-visible {
  outline:2px solid #6882ed;
  outline-offset:-1px;
  box-shadow:none;
}
:root select:not([multiple]):not([size]):disabled {
  cursor:not-allowed;
  background-color:#f5f7f9;
  color:#72848d;
  border-color:var(--line);
  box-shadow:none;
}
.filters input {min-height:38px}
/* Preserve the system picker on touch devices and in unsupported browsers. */
@supports (appearance:base-select) {
  @media (hover:hover) and (pointer:fine) {
    :root select:not([multiple]):not([size]),
    :root select:not([multiple]):not([size])::picker(select) {appearance:base-select}
    :root select:not([multiple]):not([size]) {
      background-image:none;
      padding-inline-end:12px;
      gap:18px;
      align-items:center;
    }
    select::picker-icon {
      content:'';
      width:7px;
      height:7px;
      border-right:1.5px solid #61737b;
      border-bottom:1.5px solid #61737b;
      rotate:45deg;
      margin-inline-start:auto;
      margin-block-start:-3px;
      flex:none;
    }
    select:open::picker-icon {rotate:225deg;margin-block-start:3px}
    select::picker(select) {
      background:var(--paper);
      color:var(--ink);
      border:1px solid var(--line);
      border-radius:8px;
      padding:5px;
      margin-block:6px;
      box-shadow:0 8px 28px #172b351a,0 2px 6px #172b3508;
      font-family:inherit;
      font-size:13px;
      min-inline-size:anchor-size(self-inline);
      max-inline-size:min(30rem,calc(100vw - 32px));
      max-block-size:min(320px,50dvh);
      overflow:auto;
    }
    select option {
      padding:9px 11px;
      min-height:36px;
      border:0;
      border-radius:5px;
      background:white;
      color:var(--ink);
      font-weight:400;
      line-height:1.4;
      gap:14px;
      white-space:normal;
      overflow-wrap:anywhere;
      cursor:pointer;
    }
    select option:checked {background:var(--ice);color:var(--deep);font-weight:600}
    select option:hover:not(:disabled),select option:focus-visible {
      background:#edf3ff;
      outline:none;
      box-shadow:inset 0 0 0 1px #d4dffa;
    }
    select option::checkmark {color:var(--blue);order:1;margin-inline-start:auto}
    select option:disabled {color:#8a98a1;cursor:not-allowed;background:#f7f9fa}
    select optgroup {color:var(--muted);font-size:12px;font-weight:600}
  }
}
@media (forced-colors:active) {
  :root select:not([multiple]):not([size]):focus-visible {outline:2px solid Highlight;outline-offset:1px}
}
@media (prefers-reduced-motion:reduce) {
  :root select:not([multiple]):not([size]) {transition:none}
}

/* Text, numeric and date fields share the dropdowns' border and focus treatment.
   Native date editing, calendar selection, search clearing and number steppers remain available. */
:root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image])) {
  box-sizing:border-box;
  border:1px solid #d7e0e5;
  border-radius:6px;
  background-color:var(--paper);
  color:var(--ink);
  padding:10px 12px;
  min-height:42px;
  font-family:inherit;
  font-size:13px;
  line-height:1.45;
  caret-color:var(--blue);
  color-scheme:light;
  transition:border-color .15s,box-shadow .15s,background-color .15s;
}
:root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image])):hover:not(:disabled):not([readonly]) {border-color:#b4c3ce}
:root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image])):focus {
  outline:none;
  border-color:#8a9ee8;
  box-shadow:0 0 0 3px #2c51e90d;
}
:root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image])):focus-visible {
  outline:2px solid #6882ed;
  outline-offset:-1px;
  box-shadow:none;
}
:root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image])):disabled {
  background-color:#f5f7f9;
  color:#72848d;
  border-color:var(--line);
  cursor:not-allowed;
  box-shadow:none;
}
:root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image]))[readonly] {background-color:#f8fafb;color:#526a75}
:root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image])):is([aria-invalid=true],:user-invalid):not(:disabled):not([readonly]) {
  border-color:#bc4c60;
  outline-color:#bc4c60;
}
:root input::placeholder,:root textarea::placeholder {color:#72848d;opacity:1}
:root textarea {resize:vertical}
:root .filters :is(input,select) {min-height:38px;font-size:12px}
:root .filters input {padding:8px 10px}
:root input:is([type=date],[type=time],[type=datetime-local],[type=month],[type=week]) {
  font-variant-numeric:tabular-nums;
  min-width:0;
}
:root .filters input[type=date] {min-width:140px}
input::-webkit-datetime-edit,input::-webkit-datetime-edit-fields-wrapper {padding:0}
input::-webkit-calendar-picker-indicator {
  width:16px;
  height:16px;
  padding:3px;
  margin:0 0 0 8px;
  border-radius:4px;
  cursor:pointer;
  opacity:.85;
}
input:is([type=date],[type=datetime-local],[type=month],[type=week])::-webkit-calendar-picker-indicator {
  background:url('/calendar.svg') center/16px 16px no-repeat;
}
input::-webkit-calendar-picker-indicator:hover {background-color:var(--ice);opacity:1}
input:disabled::-webkit-calendar-picker-indicator,input[readonly]::-webkit-calendar-picker-indicator {cursor:default;opacity:.4}
input::-webkit-datetime-edit-day-field:focus,
input::-webkit-datetime-edit-month-field:focus,
input::-webkit-datetime-edit-year-field:focus,
input::-webkit-datetime-edit-hour-field:focus,
input::-webkit-datetime-edit-minute-field:focus,
input::-webkit-datetime-edit-ampm-field:focus {
  background:var(--ice);
  color:var(--deep);
  border-radius:2px;
}
@media(forced-colors:active) {
  :root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image])):focus-visible {outline:2px solid Highlight;outline-offset:1px}
  input:is([type=date],[type=datetime-local],[type=month],[type=week])::-webkit-calendar-picker-indicator {background:revert}
}
@media(prefers-reduced-motion:reduce) {
  :root :is(input,textarea):where(:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color],[type=hidden],[type=button],[type=submit],[type=reset],[type=image])) {transition:none}
}
/* Inquiry details: a focused, scrollable dialog with a stable header and footer. */
dialog.inquiry-dialog {width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0}
.inquiry-dialog .dialog-head {position:sticky;top:0;z-index:2;background:var(--paper);padding:18px 24px;border-bottom:1px solid var(--line)}
.inquiry-dialog .dialog-head h2 {font-size:16px;margin:0}
.inquiry-dialog .dialog-body {padding:0}
.inquiry-summary {padding:24px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line)}
.inquiry-contact {display:flex;align-items:center;gap:14px;min-width:0}
.inquiry-contact>div {min-width:0}
.inquiry-contact h3 {font-size:23px;margin:0;line-height:1.3;overflow-wrap:anywhere}
.inquiry-type-icon {width:42px;height:42px;flex:none;display:grid;place-items:center;background:var(--ice);color:var(--blue);border-radius:9px;font-size:20px}
.inquiry-contact-lines {display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:7px;font-size:13px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.inquiry-summary>.tag {flex:none;margin-top:4px}
.inquiry-demo-note {margin:20px 24px 0;padding:12px 14px;background:var(--ice);border-radius:6px;color:#3f5a94;font-size:12px;line-height:1.65}
.inquiry-facts {display:grid;grid-template-columns:1fr 1fr;gap:20px 28px;margin:0;padding:24px}
.inquiry-facts>div {min-width:0}
.inquiry-facts dt {font-size:11px;color:var(--muted);margin-bottom:6px}
.inquiry-facts dd {margin:0;color:var(--ink);font-size:13px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.inquiry-section {margin:0 24px 20px;padding:18px 20px;border:1px solid var(--line);border-radius:8px;background:white}
.inquiry-section-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
.inquiry-section h3 {margin:0;font-size:14px;letter-spacing:-.015em}
.inquiry-description,.inquiry-empty {font-size:12px;line-height:1.65;margin:10px 0 0;color:var(--muted)}
.inquiry-answers {margin:14px 0 0}
.inquiry-answers>div {padding:13px 0;border-top:1px solid #edf1f3}
.inquiry-answers>div:last-child {padding-bottom:0}
.inquiry-answers dt {font-size:12px;font-weight:600;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.inquiry-answers dd {margin:6px 0 0;font-size:14px;line-height:1.65;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.inquiry-notifications {list-style:none;padding:0;margin:12px 0 0}
.inquiry-notifications li {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #edf1f3;font-size:12px}
.inquiry-notifications li:last-child {padding-bottom:0}
.inquiry-notifications li>span:first-child {min-width:0;overflow-wrap:anywhere;color:#405863}
.inquiry-notifications .tag {flex:none}
.inquiry-recording {margin-top:16px;border-radius:8px;background:#f5f7fb;padding:14px}
.inquiry-recording-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:10px}
.inquiry-recording-heading strong {color:var(--ink)}
.inquiry-audio {display:block;width:100%;height:42px;border-radius:6px;color-scheme:light}
.inquiry-audio-error {color:#a12d43!important;font-size:12px;line-height:1.6;margin:10px 0 0}
.inquiry-recording-actions {display:flex;justify-content:flex-end;margin-top:8px}
.inquiry-footer {position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:14px 24px;display:flex;justify-content:space-between;gap:12px;z-index:1}
@media(max-width:540px) {
  dialog.inquiry-dialog {width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
  .inquiry-dialog .dialog-head {padding:14px 18px}
  .inquiry-summary {padding:18px;flex-wrap:wrap}
  .inquiry-contact h3 {font-size:20px}
  .inquiry-facts {padding:20px 18px;gap:16px;grid-template-columns:1fr}
  .inquiry-section {margin:0 18px 16px;padding:16px}
  .inquiry-demo-note {margin:16px 18px 0}
  .inquiry-footer {padding:12px 18px}
  .inquiry-notifications li {flex-wrap:wrap}
}

/* Keep table semantics and the contact button for keyboard users. */
.inquiry-row {cursor:pointer}
.inquiry-row:hover,.inquiry-row:focus-within {background:var(--ice)}

/* Form sharing and unsaved-edit confirmation. */
.share-actions {display:flex;justify-content:flex-end;margin-top:10px}
.discard-dialog {max-width:460px}
.discard-dialog .toolbar {margin-top:22px;flex-wrap:wrap}
.tracking-health p:last-child {margin-bottom:0}
