.inbox { background: #f3f6fa; }
.inbox main { max-width: 1136px; padding-top: clamp(28px, 5vw, 54px); }
.inbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.inbox-heading h1 { margin: 0 0 8px; }
.inbox-heading p { margin: 0; color: var(--muted); }
.inbox-notice { padding: 12px 16px; border-radius: 8px; background: #e8f0fb; }
.inbox-notice:empty, .row-status:empty, #copy-status:empty { display: none; }
.request-page { position: relative; flex-shrink: 0; }
.request-page summary, .follow-up-editor summary {
  cursor: pointer;
  color: #144b89;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}
.request-page summary { border: 1px solid #bccbdd; border-radius: 8px; background: #fff; }
.request-menu {
  position: absolute;
  right: 0;
  z-index: 2;
  width: min(240px, 85vw);
  margin-top: 6px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px #122b4220;
}
.request-menu a, .request-menu button { display: block; margin: 0 0 8px; }
#copy-status { font-size: 13px; overflow-wrap: anywhere; }
.inbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.view-switch { display: flex; gap: 3px; padding: 3px; background: #e6edf6; border-radius: 9px; }
.view-switch button {
  min-height: 37px;
  padding: 5px 12px;
  border-color: transparent;
  background: transparent;
  color: #3e526a;
  font-size: 14px;
}
.view-switch button[aria-pressed="true"] { color: #164d8d; background: #fff; box-shadow: 0 1px 3px #19375326; }
.inbox-account, .inbox-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.inbox-account { justify-content: flex-end; }
.inbox-tools { margin-inline-start: auto; }
.inbox-account button, .inbox-tools button, .inbox-tools a {
  min-height: 37px;
  padding: 5px 11px;
  font-size: 14px;
}
.inbox-tools a:not([hidden]) {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9cce5;
  border-radius: 8px;
  background: #fff;
  color: #124d91;
  font-weight: 700;
  text-decoration: none;
}
.inbox-tools a:hover { background: #eef4fd; }
#list { display: grid; gap: 12px; }
.inquiry, .empty-state { margin: 0; max-width: none; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.inquiry-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.inquiry-contact { min-width: 0; overflow-wrap: anywhere; }
.inquiry-contact h2 { font-size: clamp(19px, 3vw, 24px); line-height: 1.2; margin: 7px 0 4px; }
.inquiry-contact a { font-size: 14px; }
.inquiry-state { display: inline-block; padding: 2px 9px; border-radius: 20px; background: #e8f0fe; color: #174a85; font-size: 12px; font-weight: 700; }
.inquiry-state.is-sales { background: #e6f4eb; color: #215a3a; }
.sales-link { display: inline-block; padding: 8px 12px; border: 1px solid #bfd3ee; border-radius: 7px; background: #edf4ff; color: #124780; font-size: 14px; font-weight: 700; text-decoration: none; }
.sales-link:hover { background: #e0ecfc; text-decoration: underline; }
.inquiry-message { margin: 14px 0; }
.inquiry-message h3, .follow-up dt { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.inquiry-message p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.follow-up {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(160px, 1fr) minmax(0, 2fr);
  gap: 12px;
  margin: 12px 0 6px;
  padding: 10px 12px;
  background: #f4f7fb;
  border-radius: 8px;
}
.follow-up dd { margin: 2px 0 0; font-weight: 550; overflow-wrap: anywhere; }
.follow-up-editor summary { padding-left: 0; }
.follow-up-editor form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 8px 0 12px; }
.follow-up-editor label { margin: 0; }
.follow-up-editor .wide { grid-column: 1 / -1; }
.follow-up-editor button { justify-self: start; }
.handoff-action { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 5px; }
.handoff-action small { color: var(--muted); }
.handoff-action button, #more { font-size: 14px; }
.row-status { margin: 8px 0 0; font-size: 14px; }
#more { margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .inbox main { padding-inline: 16px; }
  .inbox-heading { flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
  .request-menu { left: 0; right: auto; }
  .inquiry { padding: 14px; }
  .follow-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .follow-up > div:last-child, .follow-up-editor .wide { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .follow-up-editor form { grid-template-columns: 1fr; }
}

.attention-label {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  background: #fff0d8;
  color: #704200;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 480px) {
  .inbox-toolbar, .view-switch { flex-wrap: wrap; }
}

.resolution-editor { margin-top: 5px; border-top: 1px solid var(--line); }
.resolution-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.resolution-form textarea { min-height: 70px; }

.report-panel { margin-bottom: 16px; }
.report-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.report-heading h2 { margin: 0; }
.report-heading select { margin: 4px 0 0; }
.report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.report-metrics div { background: #f2f6fb; padding: 12px; border-radius: 8px; }
.report-metrics dd { margin: 3px 0 0; font-size: 1.4rem; font-weight: 700; }
#report-attention { padding-inline-start: 20px; }
#report-attention li + li { margin-top: 8px; }
