:root {
  --ink: #17211c;
  --ink-soft: #4f5c54;
  --paper: #f3f6f1;
  --surface: #ffffff;
  --line: #dce4dd;
  --line-strong: #c8d2ca;
  --pine: #176246;
  --pine-soft: #dceee5;
  --blue: #2f6395;
  --blue-soft: #e4eef8;
  --amber: #a86d14;
  --amber-soft: #f8eedb;
  --brick: #a64335;
  --brick-soft: #f6e7e3;
  --shadow: 0 14px 38px rgba(26, 48, 36, 0.08);
  --sidebar-width: 224px;
  --dock-height: 106px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 1100px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.ph-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 99, 149, 0.25);
  outline-offset: 2px;
}

.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;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 18px;
  color: #edf4ef;
  background: #13231b;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-block strong {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.brand-mark--icon {
  display: grid;
  place-items: center;
  color: #a2dfb9;
  border-radius: 9px;
}

.brand-mark--icon .ph-icon {
  width: 21px;
  height: 21px;
}

.brand-mark span {
  position: absolute;
  background: #72d19a;
  border-radius: 50%;
}

.brand-mark span:first-child {
  width: 8px;
  height: 8px;
  left: 8px;
  top: 16px;
}

.brand-mark span:last-child {
  width: 12px;
  height: 12px;
  right: 6px;
  top: 7px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #7e8d84;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #83a18f;
}

.main-nav {
  display: grid;
  gap: 5px;
  padding-top: 22px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #a9bbb0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: #fff;
  background: #245c43;
  box-shadow: inset 3px 0 #86d6a5;
}

.nav-icon {
  display: grid;
  place-items: center;
  text-align: center;
}

.nav-icon .ph-icon {
  width: 17px;
  height: 17px;
}

.nav-count {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #173423;
  background: #a2dfb9;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: #c9d6ce;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-note strong {
  display: block;
  font-size: 12px;
}

.sidebar-note p {
  margin: 4px 0 0;
  color: #7f9888;
  font-size: 10px;
  line-height: 1.5;
}

.status-dot,
.live-pulse {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #6fd094;
  box-shadow: 0 0 0 5px rgba(111, 208, 148, 0.11);
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 23px 26px calc(var(--dock-height) + 25px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topbar h1 {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #eef3f0;
}

.language-button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: #6d7c73;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.language-button.active {
  color: #fff;
  background: var(--pine);
  box-shadow: 0 2px 7px rgba(29, 78, 55, 0.2);
}

.button,
.icon-button,
.open-site-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 7px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  border-color: #9cac9f;
}

.button.danger {
  color: #fff;
  border-color: var(--brick);
  background: var(--brick);
}

.reviewer-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 4px 11px 4px 5px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}

.reviewer-chip > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: "Avenir Next Condensed", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.reviewer-chip small,
.reviewer-chip strong {
  display: block;
}

.reviewer-chip small {
  color: var(--ink-soft);
  font-size: 9px;
}

.reviewer-chip strong {
  margin-top: 1px;
  font-size: 11px;
}

.progress-strip {
  min-height: 62px;
  margin: 20px 0 16px;
  display: grid;
  grid-template-columns: 148px minmax(150px, 1fr) repeat(4, 78px);
  align-items: center;
  gap: 16px;
  padding: 9px 14px 9px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.progress-copy strong {
  display: block;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 20px;
}

.progress-copy > span {
  color: var(--ink-soft);
  font-size: 10px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8e3;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--pine);
  transition: width 260ms ease;
}

.status-stat {
  min-height: 39px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-left: 3px solid currentColor;
  font-size: 10px;
}

.status-stat strong {
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 17px;
}

.grade-a { color: var(--pine); background: var(--pine-soft); }
.grade-b { color: var(--blue); background: var(--blue-soft); }
.grade-pass { color: var(--brick); background: var(--brick-soft); }
.grade-pending { color: var(--amber); background: var(--amber-soft); }

.review-grid {
  height: calc(100vh - 221px - var(--dock-height));
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(245px, 0.75fr) minmax(310px, 0.95fr) minmax(410px, 1.55fr);
  gap: 12px;
}

.module-view {
  margin-top: 16px;
}

.module-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.module-heading h2 {
  margin: 0;
  font-size: 22px;
}

.module-heading p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-card,
.module-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(34, 56, 44, 0.035);
}

.metric-card {
  min-height: 105px;
  padding: 17px;
}

.metric-card small {
  color: var(--ink-soft);
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 29px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-card {
  min-width: 0;
  padding: 18px;
}

.module-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.module-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-toolbar input,
.module-toolbar select,
.contact-editor input,
.contact-editor select,
.contact-editor textarea {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  padding: 7px 9px;
}

.module-toolbar input {
  width: min(320px, 32vw);
}

.data-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 235px);
  border: 1px solid var(--line);
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 12px;
  color: #fff;
  background: #234738;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8ede9;
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: #f5f8f5;
}

.table-company {
  display: grid;
  gap: 4px;
}

.table-company small {
  color: var(--ink-soft);
}

.contact-editor {
  display: grid;
  grid-template-columns: 145px 130px 155px minmax(220px, 1fr) 88px;
  gap: 8px;
  align-items: start;
}

.contact-editor textarea {
  min-height: 58px;
  resize: vertical;
}

.mini-bars {
  display: grid;
  gap: 10px;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 180px) 1fr 42px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.mini-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ede8;
}

.mini-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pine);
}

.empty-module {
  padding: 54px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.exhibition-hero {
  position: relative;
  min-height: 184px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 24px 28px;
  color: #f4f8f5;
  background: #173f31;
  border: 1px solid #0e3327;
  box-shadow: 0 12px 34px rgba(23, 63, 49, 0.14);
}

.exhibition-hero::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -86px;
  width: 260px;
  height: 190px;
  border: 1px solid rgba(152, 218, 178, 0.16);
  border-radius: 50%;
  transform: rotate(-13deg);
  pointer-events: none;
}

.event-stamp {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(177, 228, 196, 0.68);
  outline: 1px dashed rgba(177, 228, 196, 0.34);
  outline-offset: -7px;
  color: #b5e5c7;
  transform: rotate(-4deg);
}

.event-stamp strong {
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.event-stamp span {
  margin-top: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.exhibition-hero-copy,
.exhibition-hero-actions {
  position: relative;
  z-index: 1;
}

.exhibition-hero .eyebrow {
  color: #83b899;
}

.exhibition-hero h2 {
  max-width: 760px;
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.event-meta {
  display: flex;
  gap: 0;
  margin-top: 20px;
}

.event-meta > span {
  min-width: 130px;
  display: grid;
  gap: 3px;
  padding: 0 18px;
  border-left: 1px solid rgba(210, 235, 219, 0.18);
}

.event-meta > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.event-meta small {
  color: #83a997;
  font-size: 9px;
}

.event-meta strong {
  font-size: 12px;
}

.exhibition-hero-actions {
  display: grid;
  gap: 8px;
  min-width: 146px;
}

.exhibition-light-button {
  color: #f4f8f5;
  border-color: rgba(215, 238, 222, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.exhibition-light-button:hover {
  border-color: rgba(215, 238, 222, 0.68);
  background: rgba(255, 255, 255, 0.1);
}

.exhibition-metrics .metric-card {
  min-height: 82px;
  padding: 14px 16px;
  border-top: 3px solid var(--line-strong);
}

.exhibition-metrics .metric-card strong {
  margin-top: 7px;
  font-size: 25px;
}

.exhibition-metrics .metric-a { border-top-color: var(--pine); }
.exhibition-metrics .metric-b { border-top-color: var(--blue); }
.exhibition-metrics .metric-c { border-top-color: var(--amber); }
.exhibition-metrics .metric-due { border-top-color: var(--brick); }

.exhibition-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(640px, 1.7fr);
  gap: 12px;
  align-items: start;
}

.exhibition-form-card,
.exhibition-list-card {
  padding: 20px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.form-step {
  color: #b5c1b8;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.section-intro {
  margin: 8px 0 18px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.exhibition-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.exhibition-form label {
  display: grid;
  gap: 6px;
  color: #55645b;
  font-size: 10px;
  font-weight: 700;
}

.exhibition-form .field-wide {
  grid-column: 1 / -1;
}

.exhibition-form input,
.exhibition-form select,
.exhibition-form textarea,
.exhibition-grade-select,
.exhibition-followup-editor input,
.exhibition-followup-editor select,
.exhibition-followup-editor textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: #fbfcfb;
}

.exhibition-form textarea,
.exhibition-followup-editor textarea {
  resize: vertical;
}

.exhibition-submit {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: #fff;
  border-color: var(--pine);
  background: var(--pine);
}

.required-warning {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 15px 16px;
  border: 2px solid #b42318;
  color: #7a1710;
  background: #fee4e2;
  box-shadow: 0 8px 22px rgba(180, 35, 24, 0.14);
}

.required-warning-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b42318;
  font-family: "Avenir Next", sans-serif;
  font-size: 23px;
  font-weight: 900;
}

.required-warning strong {
  display: block;
  font-size: 14px;
}

.required-warning p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.exhibition-form input.required-field-error {
  border: 2px solid #d92d20;
  background: #fff4f2;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.warning-shake {
  animation: warning-shake 260ms ease-out;
}

@keyframes warning-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  65% { transform: translateX(4px); }
}

.exhibition-submit:hover {
  border-color: #0f5038;
  background: #0f5038;
}

.exhibition-submit:disabled,
.exhibition-followup-editor .button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.exhibition-list-heading {
  align-items: flex-end;
  margin-bottom: 16px;
}

.exhibition-search {
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-strong);
}

.exhibition-search input {
  width: 100%;
  min-height: 36px;
  border: 0;
  outline: 0;
  background: transparent;
}

.exhibition-table-wrap {
  max-height: calc(100vh - 560px);
  min-height: 260px;
}

.exhibition-table {
  min-width: 1080px;
}

.exhibition-table th:last-child,
.exhibition-table td:last-child {
  text-align: right;
}

.exhibition-grade-select {
  min-width: 142px;
}

.exhibition-followup-editor {
  min-width: 420px;
  display: grid;
  grid-template-columns: 125px 120px 145px 78px;
  gap: 7px;
  align-items: start;
}

.exhibition-followup-editor textarea {
  grid-column: 1 / 4;
  min-height: 56px;
}

.exhibition-followup-editor .button {
  grid-column: 4;
  grid-row: 1 / 3;
  min-height: 100%;
}

.profile-link {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #8fb2a0;
  color: var(--pine);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.empty-exhibition {
  min-height: 330px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px dashed #cad5cc;
  color: var(--ink-soft);
  background: #f8faf8;
  text-align: center;
}

.empty-exhibition span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #b8c8bd;
  color: var(--pine);
  font-size: 22px;
}

.empty-exhibition p {
  max-width: 460px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1250px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .contact-editor { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .contact-editor textarea { grid-column: 1 / -1; }
  .exhibition-workspace { grid-template-columns: 1fr; }
  .exhibition-table-wrap { max-height: 620px; }
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(34, 56, 44, 0.035);
}

.queue-panel {
  display: flex;
  flex-direction: column;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.queue-heading {
  padding: 18px 17px 10px;
}

.panel-heading h2,
.dialog-heading h2 {
  margin: 0;
  font-size: 15px;
}

.icon-button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--ink-soft);
}

.icon-button .ph-icon {
  width: 16px;
  height: 16px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  padding: 0 10px;
  min-height: 37px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.search-field span {
  color: #849188;
  font-size: 18px;
}

.search-field span .ph-icon {
  width: 17px;
  height: 17px;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--line);
}

.filter-row select {
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.filtered-count {
  color: #7b8a81;
  font-size: 10px;
}

.company-list {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}

.company-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid #edf1ee;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.company-row:hover {
  background: #f7faf7;
}

.company-row.active {
  background: #eef6f0;
  box-shadow: inset 3px 0 var(--pine);
}

.company-index {
  color: #8d9b92;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
  text-align: center;
}

.company-row-copy {
  min-width: 0;
}

.company-row-copy strong,
.company-row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-row-copy strong {
  font-size: 11px;
}

.company-row-copy small {
  margin-top: 4px;
  color: #78867d;
  font-size: 9px;
}

.status-pill {
  min-width: 27px;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.status-pill.unreviewed { color: #78867d; background: #edf1ee; }
.status-pill.a { color: var(--pine); background: var(--pine-soft); }
.status-pill.b { color: var(--blue); background: var(--blue-soft); }
.status-pill.pass { color: var(--brick); background: var(--brick-soft); }
.status-pill.pending { color: var(--amber); background: var(--amber-soft); }

.empty-queue {
  padding: 48px 24px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.company-panel {
  position: relative;
  overflow-y: auto;
  padding: 24px;
}

.company-panel::after {
  content: attr(data-grade);
  position: absolute;
  right: -5px;
  top: -25px;
  z-index: 0;
  color: rgba(23, 98, 70, 0.05);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 145px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.company-panel > div {
  position: relative;
  z-index: 1;
}

.company-kicker {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.source-badge {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.84);
  font-size: 9px;
  white-space: nowrap;
}

.company-title {
  margin: 15px 0 8px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.company-location {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 20px;
}

.tag {
  padding: 5px 8px;
  color: #405148;
  background: #edf3ee;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.summary-card {
  padding: 15px;
  border-left: 3px solid var(--pine);
  background: #f1f6f2;
}

.do-not-contact-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--brick);
  color: #7e3026;
  background: var(--brick-soft);
  font-size: 10px;
}

.do-not-contact-banner strong {
  flex: 0 0 auto;
}

.summary-card p {
  margin: 7px 0 0;
  color: #405148;
  font-size: 11px;
  line-height: 1.75;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--pine);
  font-size: 10px;
  font-weight: 800;
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 4px rgba(23, 98, 70, 0.1);
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--line);
}

.fact {
  min-height: 62px;
  padding: 11px;
  background: #fff;
}

.fact small,
.fact strong {
  display: block;
}

.fact small {
  color: #849188;
  font-size: 9px;
}

.fact strong {
  margin-top: 6px;
  font-size: 11px;
}

.section-block {
  margin-top: 22px;
}

.section-block h3 {
  margin: 0 0 9px;
  font-size: 11px;
}

.bullet-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 14px;
  color: #526158;
  font-size: 10px;
  line-height: 1.55;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  background: #75a98a;
}

.review-history {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #77847c;
  font-size: 9px;
  line-height: 1.6;
}

.preview-panel {
  display: flex;
  flex-direction: column;
  background: #e9eeea;
}

.browser-toolbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.browser-lights {
  display: flex;
  gap: 5px;
}

.browser-lights span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccd4ce;
}

.browser-lights span:first-child { background: #d98579; }
.browser-lights span:nth-child(2) { background: #dfbd70; }
.browser-lights span:last-child { background: #7db68e; }

.url-field {
  min-width: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: #748078;
  background: #fff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
}

.url-field a:last-child {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.url-field a:last-child:hover {
  color: var(--pine);
  text-decoration: underline;
}

.open-site-button {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--pine);
  border-color: #b9cabe;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.open-site-button:hover {
  border-color: var(--pine);
  background: #f3f8f4;
}

.open-site-button.disabled,
.url-field a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.preview-tabs {
  min-height: 39px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.preview-tab {
  height: 38px;
  padding: 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #78867d;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.preview-tab.active {
  color: var(--pine);
  border-bottom-color: var(--pine);
}

.preview-tip {
  margin: 0 0 10px auto;
  color: #9aa49d;
  font-size: 8px;
}

.preview-body,
.preview-view {
  flex: 1;
  min-height: 0;
}

.preview-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-view {
  display: none;
}

.preview-view.active {
  display: flex;
  flex-direction: column;
}

#website-frame {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.insights-content {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: clamp(25px, 4vw, 48px);
  background: #fff;
}

.insights-hero {
  max-width: 680px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.insights-hero h2 {
  margin: 10px 0;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.insights-hero p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.insight-columns {
  max-width: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 25px;
}

.insight-columns h3 {
  margin: 0 0 11px;
  font-size: 11px;
}

.insight-source {
  max-width: 680px;
  margin-top: 28px;
  padding: 18px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
}

.insight-source h3 {
  margin: 0 0 10px;
  font-size: 11px;
}

.insight-source p {
  margin: 6px 0;
  color: #405148;
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.decision-dock {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  min-height: var(--dock-height);
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(670px, 2.5fr);
  align-items: center;
  gap: 24px;
  padding: 15px 27px;
  border-top: 1px solid #c9d4cc;
  background: rgba(249, 251, 249, 0.96);
  box-shadow: 0 -14px 40px rgba(27, 48, 37, 0.08);
  backdrop-filter: blur(14px);
}

.decision-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.decision-hint small,
.decision-hint strong {
  display: block;
}

.decision-hint small {
  color: #79877e;
  font-size: 9px;
}

.decision-hint strong {
  margin-top: 4px;
  font-size: 11px;
}

.decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1.2fr 1.55fr;
  gap: 8px;
}

.decision-button {
  min-width: 0;
  min-height: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.decision-button:hover {
  z-index: 2;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.decision-button strong,
.decision-button small {
  display: block;
}

.decision-button strong {
  font-size: 12px;
}

.decision-button small {
  margin-top: 3px;
  color: #78867d;
  font-size: 8px;
}

.decision-key {
  width: 31px;
  height: 37px;
  display: grid;
  place-items: center;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 19px;
  font-weight: 900;
}

.decision-a { border-color: #94c2a6; background: #f2faf5; }
.decision-a .decision-key { color: #fff; background: var(--pine); }
.decision-b { border-color: #a9c3dc; background: #f3f7fb; }
.decision-b .decision-key { color: #fff; background: var(--blue); }
.decision-pass { border-color: #dbb5ae; background: #fcf6f4; }
.decision-pass .decision-key { color: #fff; background: var(--brick); }
.decision-pending { border-color: #dec897; background: #fcf9f0; }
.decision-pending .decision-key { color: #fff; background: var(--amber); }
.decision-next { justify-content: space-between; padding-left: 17px; }
.decision-next .arrow { font-size: 22px; }

.pass-dialog {
  width: min(560px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(20, 34, 26, 0.24);
}

.pass-dialog::backdrop {
  background: rgba(18, 30, 23, 0.56);
  backdrop-filter: blur(3px);
}

.pass-dialog form {
  padding: 24px;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dialog-company {
  margin: 12px 0 18px;
  color: var(--ink-soft);
  font-size: 11px;
}

.reason-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reason-button {
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--line);
  color: #4d5c53;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

.reason-button:hover,
.reason-button.selected {
  color: var(--brick);
  border-color: #c97d71;
  background: var(--brick-soft);
}

.note-field {
  display: grid;
  gap: 7px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 10px;
}

.note-field textarea {
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 122px;
  transform: translate(-50%, 18px);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 13px;
  border: 1px solid #334b3d;
  color: #fff;
  background: #17251d;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 10px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid #84b495;
  color: #a6dab9;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 1250px) {
  :root { --sidebar-width: 190px; }
  .sidebar { padding-inline: 12px; }
  .review-grid { grid-template-columns: 245px 310px minmax(390px, 1fr); }
  .decision-dock { grid-template-columns: 180px minmax(670px, 1fr); gap: 15px; }
  .preview-tip { display: none; }
}

/* MacBook Pro 为基础布局；Apple Studio Display 上增加信息容量和官网预览面积。 */
@media (min-width: 1800px) {
  :root {
    --sidebar-width: 248px;
    --dock-height: 112px;
  }

  .sidebar {
    padding: 30px 21px 21px;
  }

  .workspace {
    padding: 28px 34px calc(var(--dock-height) + 28px);
  }

  .topbar h1 {
    font-size: 30px;
  }

  .progress-strip {
    min-height: 68px;
    grid-template-columns: 170px minmax(240px, 1fr) repeat(4, 92px);
  }

  .review-grid {
    height: calc(100vh - 236px - var(--dock-height));
    grid-template-columns: 350px 440px minmax(780px, 1fr);
    gap: 15px;
  }

  .company-panel {
    padding: 30px;
  }

  .company-row {
    min-height: 63px;
    padding-inline: 15px;
  }

  .decision-dock {
    grid-template-columns: 280px minmax(900px, 1fr);
    padding-inline: 34px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 100%;
    --dock-height: 174px;
  }

  .metric-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-toolbar {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .module-toolbar input {
    width: 100%;
  }

  .exhibition-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exhibition-metrics .metric-total {
    grid-column: 1 / -1;
  }

  .exhibition-hero {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 15px;
    padding: 19px;
  }

  .event-stamp {
    width: 72px;
    height: 72px;
  }

  .event-stamp strong {
    font-size: 24px;
  }

  .event-stamp span {
    font-size: 7px;
  }

  .event-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .event-meta > span {
    min-width: 0;
    padding: 0 10px;
  }

  .exhibition-hero-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .exhibition-form-grid {
    grid-template-columns: 1fr;
  }

  .exhibition-form .field-wide {
    grid-column: auto;
  }

  .exhibition-list-heading {
    align-items: stretch;
  }

  .exhibition-search {
    min-width: 0;
  }

  body {
    min-width: 0;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    display: block;
    padding: 14px;
  }

  .brand-block {
    padding: 0 4px 13px;
  }

  .main-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-top: 11px;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
    grid-template-columns: 22px auto auto;
    min-height: 40px;
  }

  .sidebar-note {
    display: none;
  }

  .workspace {
    margin-left: 0;
    padding: 16px 14px calc(var(--dock-height) + 24px);
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .topbar-actions > * {
    flex: 0 0 auto;
  }

  .progress-strip {
    grid-template-columns: 105px 1fr repeat(2, minmax(70px, 1fr));
    gap: 9px;
  }

  .progress-track {
    grid-column: span 3;
  }

  .review-grid {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  .queue-panel {
    height: 410px;
  }

  .company-panel {
    max-height: none;
  }

  .preview-panel {
    min-height: 520px;
  }

  .decision-dock {
    left: 0;
    min-height: var(--dock-height);
    display: block;
    padding: 10px 12px;
    overflow-x: auto;
  }

  .decision-hint {
    display: none;
  }

  .decision-actions {
    min-width: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .decision-button {
    min-height: 45px;
    padding: 5px 8px;
  }

  .decision-key {
    width: 26px;
    height: 30px;
    font-size: 15px;
  }

  .decision-next {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
