@font-face {
  font-family: Manrope;
  src: url("./manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  color: #123e50;
  background: #e9f3f4;
  font-synthesis: none;
  --teal: #1b6d74;
  --teal-dark: #0f4e54;
  --rule: #cedfe1;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  min-width: 320px;
}
body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  font-size: 15px;
  line-height: 1.55;
  scrollbar-color: #a7c9cc transparent;
}
::selection {
  background: #cbe6e9;
  color: #0f4e54;
}
button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  border-radius: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  font-weight: 650;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
/* This heading receives navigation focus but is not an interactive control. */
#inquiries-title:focus {
  outline: none;
}
.primary-button {
  background: var(--teal);
  color: white;
}
.primary-button:hover:not(:disabled) {
  background: var(--teal-dark);
}
.quiet-button {
  background: transparent;
  color: var(--teal-dark);
}
.quiet-button:hover:not(:disabled) {
  background: #e9f3f4;
}
.host-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 24px;
  min-height: 64px;
  background: white;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.host-logo {
  width: 150px;
  height: 44px;
  object-fit: contain;
}
.host-header nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.account {
  position: relative;
  min-width: 0;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #123e50;
  padding: 2px 6px;
  min-width: 44px;
  max-width: 260px;
  text-align: left;
}
.account-button:hover {
  background: #f0f8f8;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e0eeee;
  color: var(--teal-dark);
  font-size: 13px;
}
.account-label {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-label strong {
  font-size: 13px;
}
.account-label small {
  font-size: 11px;
  color: #527184;
}
.account-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 24px));
  overflow-wrap: anywhere;
  padding: 12px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.account-panel p {
  display: grid;
  padding: 0 12px 10px;
  margin: 0;
  font-size: 14px;
}
.account-panel p span {
  color: #527184;
  font-size: 12px;
}
.account-panel button {
  width: 100%;
  text-align: left;
}
.host-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #faf8f4;
  padding: 8px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  flex-shrink: 0;
}
.host-notice p {
  margin: 0;
  max-width: 85ch;
}
.host-notice button {
  white-space: nowrap;
}
.host-workspace {
  flex: 1;
  min-height: 0;
  position: relative;
}
.host-workspace > main {
  height: 100%;
  overflow: auto;
}
.inquiry-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  background: #e9f3f4;
  color: var(--teal-dark);
  text-align: center;
}
.inquiry-loading p {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
}
.inquiry-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--rule);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: inquiry-spin 900ms linear infinite;
}
@keyframes inquiry-spin {
  to {
    transform: rotate(360deg);
  }
}
.bridge-stage {
  height: 100%;
  position: relative;
}
.bridge-stage iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
h1,
h2 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}
.inquiries-panel {
  width: min(940px, 100%);
  padding: clamp(28px, 5vw, 56px) 24px;
  margin: 0 auto;
}
.list-intro {
  margin: 12px 0 6px;
}
.session-note {
  color: #527184;
  margin: 0 0 28px;
  font-size: 13px;
}
.inquiries-content {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.inquiries-message {
  margin: 0;
  padding: 24px;
  max-width: 65ch;
}
.inquiry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inquiry-list li {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}
.inquiry-list li + li {
  border-top: 1px solid var(--rule);
}
.inquiry-list li > div {
  min-width: 0;
}
.inquiry-list h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.inquiry-meta {
  margin: 0;
  color: #527184;
  font-size: 13px;
}
.inquiry-meta time {
  display: block;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.inquiry-status {
  color: #3c5966;
  font-weight: 650;
}
.inquiry-action {
  border-color: #a7c9cc;
  flex-shrink: 0;
}
.inquiry-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inquiry-deletion-note {
  margin: 8px 0 0;
  color: #527184;
  font-size: 13px;
  line-height: 1.45;
}
.inquiry-delete {
  color: #8a2b2b;
}
.inquiry-delete:hover:not(:disabled) {
  background: #fbeeee;
}
.danger-button {
  background: #9b2c2c;
  color: white;
}
.danger-button:hover:not(:disabled) {
  background: #7d2020;
}
/* Completed details: a light document matching the embed's review page. */
.brief-panel {
  position: relative;
  margin: 28px auto;
  width: min(920px, calc(100% - 32px));
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #dde9ea;
  border-radius: 22px;
  background: white;
  color: #123e50;
  box-shadow:
    0 2px 6px rgb(15 62 72 / 5%),
    0 28px 70px -24px rgb(15 62 72 / 28%);
}
.brief-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--teal), #c4a77d);
}
.brief-panel > h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.brief-panel > h1::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 22px no-repeat,
    #e7f6f0;
  box-shadow: 0 0 0 6px rgb(5 150 105 / 8%);
}
.brief-panel > h1:focus {
  outline: none;
}
.brief-panel > h1:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.brief-panel > p {
  margin: 12px 0 0;
  max-width: 62ch;
  color: #527184;
}
.brief-summary {
  display: grid;
  gap: 0;
  margin-top: 28px;
}
.brief-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: baseline;
  gap: 6px 20px;
  padding: 14px 0;
  border-top: 1px solid #e6eff0;
}
.brief-label {
  color: #527184;
  font-size: 13px;
  font-weight: 600;
}
.brief-value {
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.brief-status {
  justify-self: end;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #0f4e54;
  background: #e9f3f4;
}
.brief-status[data-state="confirmed"] {
  color: #047857;
  background: #e7f6f0;
}
.brief-status[data-state="reference"] {
  color: #0f4e54;
  background: #e2f0f1;
}
.brief-status:is([data-state="flexible"], [data-state="recommendation"]) {
  color: #7a5a2c;
  background: #f7efe2;
}
.brief-status[data-state="deferred"] {
  color: #527184;
  background: #eef3f5;
}
.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.brief-meta > .brief-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
  padding: 12px 16px;
  border: 1px solid #e3eeef;
  border-radius: 14px;
  background: #f5fafa;
}
.brief-meta .brief-label {
  font-size: 12px;
}
.brief-tally {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}
.brief-tally li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 12px;
  border: 1px solid #e3eeef;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #3c5966;
}
.brief-tally b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e9f3f4;
  color: #0f4e54;
  font-size: 12px;
}
.brief-tally li[data-state="confirmed"] b {
  background: #e7f6f0;
  color: #047857;
}
.brief-section {
  margin-top: 28px;
}
.brief-section > h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.brief-note .brief-value {
  grid-column: 2 / -1;
}
.brief-note .brief-value {
  font-weight: 500;
  white-space: pre-wrap;
}
.brief-summary > .brief-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e3eeef;
  border-radius: 14px;
  background: #f5fafa;
}
dialog {
  max-width: min(450px, calc(100vw - 32px));
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  color: #123e50;
  background: white;
}
dialog::backdrop {
  background: rgb(15 45 50 / 38%);
}
dialog h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
dialog p {
  margin: 0 0 24px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .host-header {
    padding: 6px 10px;
    gap: 8px;
    min-height: 58px;
  }
  .host-logo {
    width: 82px;
    height: 40px;
  }
  .host-header nav {
    gap: 2px;
  }
  .host-header nav button {
    font-size: 12px;
    padding-inline: 8px;
  }
  .account-button {
    padding: 2px;
  }
  .account-label,
  .account-button svg {
    display: none;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .inquiries-panel {
    padding: 28px 18px;
  }
  .inquiry-list li {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }
  .inquiries-message {
    padding: 20px;
  }
  .inquiry-list h2 {
    font-size: 17px;
  }
  .inquiry-action {
    align-self: flex-start;
    font-size: 14px;
  }
  .inquiry-actions {
    align-self: flex-start;
  }
  .inquiry-delete {
    font-size: 14px;
  }
  .host-notice {
    align-items: flex-start;
    padding: 8px 12px;
    gap: 4px;
  }
  .brief-panel {
    margin: 12px auto;
    width: calc(100% - 24px);
    border-radius: 18px;
  }
  .brief-panel::before {
    border-radius: 18px 18px 0 0;
  }
  .brief-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .brief-row .brief-label {
    grid-column: 1;
  }
  .brief-row .brief-value {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .brief-row .brief-status {
    grid-column: 2;
    grid-row: 1;
  }
  .brief-meta > .brief-row {
    flex: 1 1 140px;
    min-width: 0;
  }
}
@media (max-width: 359px) {
  .host-logo {
    width: 62px;
  }
  .host-header {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inquiry-spinner {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* The same shell serves beta sign-in, a concealed session check and local testing. */
a.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}
.signed-out-main {
  overflow: auto;
}
.session-panel {
  width: min(560px, calc(100% - 36px));
  margin: clamp(36px, 10vh, 100px) auto;
  padding: clamp(24px, 5vw, 40px);
  background: white;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.session-panel p {
  margin: 18px 0 24px;
}
body[data-session-checking] .host-workspace,
body[data-session-checking] .host-header nav,
body[data-session-checking] .account {
  visibility: hidden;
}
body[data-session-checking] > .session-panel {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
}
.inquiry-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.inquiry-pagination span {
  color: #527184;
  font-size: 13px;
}
#recover-inquiries {
  margin-top: 12px;
}

.brief-photos { display: grid; gap: 1rem; }
.brief-photo { margin: 0; }
.brief-photo img { display: block; max-width: 100%; width: 20rem; max-height: 24rem; object-fit: contain; }
