:root {
  --ink: #12213b;
  --muted: #66758d;
  --line: #dbe3ee;
  --surface: #fff;
  --subtle: #f5f8fc;
  --blue: #155fc4;
  --blue-dark: #173b73;
  --green: #17734b;
  --red: #a43434;
  --shadow: 0 18px 50px rgba(25, 47, 78, 0.12);
}
[hidden] {
  display: none !important;
}
.brand,
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img,
.public-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f0f4f9;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  font-size: 15px;
}
.sr-only {
  position: absolute;
  left: -10000px;
}
.topbar {
  height: 68px;
  background: var(--blue-dark);
  color: #fff;
  display: grid;
  grid-template-columns: auto minmax(220px, 680px) auto;
  gap: 28px;
  align-items: center;
  padding: 0 28px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
}
.search input::placeholder {
  color: #dce7f8;
}
.account {
  font-weight: 700;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.review-topbar {
  grid-template-columns: 1fr auto 1fr;
}
.review-topbar h1 {
  margin: 0;
  font-size: 18px;
}
.review-workspace {
  min-height: calc(100vh - 68px);
}
.review-intro,
.review-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 0 auto 20px;
  padding: 24px;
  width: min(100%, 1120px);
}
.review-intro h2,
.review-heading h2 {
  margin: 0 0 8px;
}
.review-intro p,
.review-heading p {
  color: var(--muted);
  margin: 0;
}
.review-heading,
.review-card,
.review-card-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.review-rows {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.review-card h3 {
  margin: 0 0 10px;
}
.review-facts,
.review-facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
}
.review-facts dt {
  color: var(--muted);
}
.review-facts dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .review-topbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 0 14px;
  }
  .review-topbar h1 {
    display: none;
  }
  .review-workspace {
    padding: 16px 12px;
  }
  .review-intro,
  .review-panel {
    padding: 18px 14px;
  }
  .review-card,
  .review-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .review-card-actions > button {
    flex: 1;
  }
}
.workspace {
  max-width: none;
  width: 100%;
  padding: 24px;
}
.status-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow: auto;
}
.tab {
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tab.active {
  color: var(--blue);
  border-color: var(--blue);
}
.tab span {
  display: inline-block;
  background: #dce9fb;
  border-radius: 99px;
  padding: 1px 7px;
  margin-left: 4px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 18px;
  align-items: start;
}
.request-list,
.detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.request-list {
  overflow-x: auto;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
}
.section-heading h1 {
  font-size: 25px;
  margin: 0 0 4px;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
}
.button {
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 10px 15px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.button.primary {
  background: var(--blue);
  color: #fff;
}
.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.button.danger {
  background: #fff;
  color: var(--red);
  border-color: #e4caca;
}
.button.wide {
  width: 100%;
  padding: 13px;
}
.list-header,
.request-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 135px minmax(220px, 1.4fr) 115px;
  gap: 16px;
  align-items: center;
  min-width: 708px;
}
.list-header {
  padding: 10px 20px;
  background: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.request-row {
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 15px 20px;
  color: var(--ink);
  cursor: pointer;
}
.request-row:hover,
.request-row.selected {
  background: #edf4ff;
}
.row-person {
  font-weight: 800;
}
.row-person small,
.row-subject small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}
.row-time {
  color: var(--muted);
  font-size: 13px;
}
.status-badge {
  display: inline-block;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #e8f1ff;
  color: var(--blue);
}
.status-badge.contacted {
  background: #e7f5ee;
  color: var(--green);
}
.status-badge.closed {
  background: #edf0f4;
  color: #5b6574;
}
.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.detail {
  position: sticky;
  top: 20px;
  min-height: 520px;
  padding: 24px;
}
.detail-close {
  display: none;
  float: right;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.detail-empty {
  padding: 90px 16px;
  text-align: center;
  color: var(--muted);
}
.detail-empty h2 {
  color: var(--ink);
}
.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.detail-title .status-badge {
  align-self: flex-start;
}
.detail-title h2 {
  font-size: 26px;
  margin: 0 0 4px;
}
.detail-title p {
  margin: 0;
  color: var(--muted);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
}
.facts {
  margin: 0;
}
.facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.mail-context {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 16px;
}
.mail-context h3 {
  font-size: 15px;
}
.mail-context p {
  color: #3e4d63;
  line-height: 1.65;
}
.text-link {
  color: var(--blue);
  font-weight: 750;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.public-page {
  background: #fff;
}
.public-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
}
.public-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 0 22px;
}
.public-brand {
  font-size: 26px;
  font-weight: 850;
}
.secure-label {
  color: var(--green);
  font-weight: 750;
}
.public-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 64px;
  padding: 42px 0;
}
.email-context {
  min-width: 0;
  overflow-wrap: anywhere;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}
.eyebrow {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
}
.email-context h1,
.success h1 {
  font-size: 30px;
}
.context-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.context-facts dt {
  color: var(--muted);
}
.context-facts dd {
  min-width: 0;
  margin: 0;
}
.excerpt {
  font-size: 16px;
  line-height: 1.7;
  padding-top: 12px;
}
.locked-note,
.privacy-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.identity-form-wrap h2 {
  font-size: 28px;
  margin: 0 0 6px;
}
.identity-form-wrap > p {
  color: var(--muted);
  margin-bottom: 24px;
}
.identity-form-wrap label,
.addin-shell label {
  display: block;
  font-weight: 750;
  margin-bottom: 14px;
}
.identity-form-wrap label span {
  color: var(--red);
}
.identity-form-wrap input,
.addin-shell input {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #bfcbd9;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
}
.form-errors,
.error-panel {
  background: #fff0f0;
  color: #8c2f2f;
  border: 1px solid #efc5c5;
  border-radius: 9px;
  padding: 12px;
  margin: 12px 0;
}
.success {
  max-width: 700px;
  margin: 80px auto;
  text-align: center;
}
.addin-page {
  background: #fff;
}
.addin-shell {
  max-width: 420px;
  padding: 24px;
}
.addin-shell h1 {
  font-size: 24px;
  margin-top: 0;
}
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 16px;
  }
  .search {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .workspace {
    padding: 12px;
  }
  .content-grid {
    display: block;
  }
  .list-header {
    display: none;
  }
  .request-row {
    grid-template-columns: 1fr auto;
    min-width: 0;
  }
  .row-subject {
    grid-column: 1/-1;
  }
  .row-time {
    text-align: right;
  }
  .detail {
    position: fixed;
    inset: 0;
    z-index: 5;
    border-radius: 0;
    overflow: auto;
    transform: translateX(105%);
    transition: 0.22s;
  }
  .detail.open {
    transform: none;
  }
  .detail-close {
    display: block;
  }
  .public-shell {
    padding: 20px;
  }
  .public-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 24px;
  }
  .email-context {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 22px;
  }
  .facts div {
    grid-template-columns: 105px 1fr;
  }
}
@media (max-width: 520px) {
  .topbar {
    gap: 12px;
  }
  .brand {
    font-size: 20px;
  }
  .account {
    font-size: 13px;
  }
  .workspace {
    padding: 0;
  }
  .status-tabs {
    padding: 0 10px;
    margin: 0;
  }
  .request-list {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .section-heading {
    padding: 18px;
  }
  .section-heading .button {
    display: none;
  }
  .request-row {
    padding: 14px 18px;
  }
  .detail-actions .button {
    flex: 1 1 45%;
  }
  .public-shell {
    padding: 16px;
  }
  .public-header {
    padding-bottom: 16px;
  }
  .public-brand {
    font-size: 22px;
  }
  .email-context h1,
  .identity-form-wrap h2 {
    font-size: 24px;
  }
  .context-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
