:root {
  --background: #f4f6f4;
  --foreground: #101615;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --surface-muted: #eef2ef;
  --ink-soft: #62716d;
  --line: rgba(16, 22, 21, 0.1);
  --line-strong: rgba(16, 22, 21, 0.16);
  --green: #45d7a8;
  --green-focus: #35c196;
  --green-deep: #10372f;
  --green-soft: rgba(69, 215, 168, 0.16);
  --hero-text: rgba(255, 255, 255, 0.96);
  --hero-soft: rgba(230, 238, 235, 0.72);
  --danger: #d70015;
  --danger-soft: #fff1f1;
  --warning: #a05a00;
  --warning-soft: #fff7e6;
  --success: #248a3d;
  --success-soft: #eef9f1;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 8px 22px rgba(12, 19, 17, 0.045);
  --shadow-card: 0 8px 20px rgba(12, 19, 17, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #eef4f1 0%, #f8faf8 180px, #f5f7f5 100%);
  color: var(--foreground);
  font-family: "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.47;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid rgba(69, 215, 168, 0.72);
  outline-offset: 3px;
}

#app,
#supplier-app {
  min-height: 100vh;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4f1 0%, #f8faf8 180px, #f5f7f5 100%);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 236px;
  background:
    linear-gradient(90deg, #0b1512 0%, #0d2219 38%, #114329 74%, #2a7c4d 100%);
  pointer-events: none;
}

.app-shell::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 236px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.3;
  pointer-events: none;
}

.lm-container {
  width: min(100% - 64px, 1600px);
  margin: 0 auto;
}

.lm-header {
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.lm-header-bar {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(230, 245, 235, 0.08);
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(4, 12, 9, 0.12);
}

.lm-brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.lm-brand-logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 168px;
}

.lm-brand-text {
  display: none;
  align-items: center;
  min-height: 30px;
  color: var(--hero-text);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.brand-fallback {
  color: var(--hero-text);
  font-size: 18px;
  font-weight: 600;
}

.lm-header-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.lm-header-meta button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
}

.lm-header-meta button:hover,
.lm-header-meta a:hover {
  color: #ffffff;
}

.lm-main {
  position: relative;
  z-index: 1;
  padding: 236px 0 64px;
}

.content-layout {
  min-width: 0;
}

.content-layout.with-sidebar {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.workarea {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid rgba(16, 55, 47, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(12, 19, 17, 0.1);
  backdrop-filter: blur(18px) saturate(1.08);
}

.sidebar-title {
  margin: 0 0 4px;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

#nav-list {
  display: grid;
  gap: 14px;
}

.nav-section {
  display: grid;
  gap: 10px;
}

.nav-section + .nav-section {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.nav-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.nav-item {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--green-deep);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover {
  border-color: rgba(69, 215, 168, 0.48);
  background: var(--green-soft);
  color: var(--foreground);
}

.nav-item.active {
  border-color: rgba(21, 135, 101, 0.32);
  background: #e8f6ef;
  color: var(--foreground);
  box-shadow: inset 4px 0 0 var(--green-focus);
}

.nav-item:active {
  transform: scale(0.99);
}

.nav-index {
  display: inline-flex;
  width: 30px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav-item.active .nav-index {
  background: var(--green-deep);
  color: #ffffff;
}

.nav-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.projects-overview,
.project-title-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(13, 28, 23, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 38px rgba(5, 16, 12, 0.16);
  backdrop-filter: blur(18px) saturate(1.08);
}

.projects-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding: 34px 38px;
}

.projects-eyebrow,
.project-code {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.projects-overview h1,
.page-title {
  margin: 0;
  color: var(--hero-text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.projects-overview-copy > p:not(.projects-eyebrow),
.project-title-card .page-subtitle {
  margin: 18px 0 0;
  color: var(--hero-soft);
  font-size: 14px;
  line-height: 1.47;
  letter-spacing: 0;
}

.projects-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(140px, 0.72fr) auto;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(249, 251, 249, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 30px rgba(4, 12, 9, 0.12);
}

.project-title-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 28px 32px;
}

.project-title-card h1 {
  margin: 0;
  color: var(--hero-text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.08;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.legacy-project-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(69, 215, 168, 0.36);
  border-radius: var(--radius-md);
  background: rgba(238, 249, 241, 0.96);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.legacy-project-notice h2 {
  margin: 0 0 6px;
  color: var(--green-deep);
  font-size: 18px;
  line-height: 1.25;
}

.legacy-project-notice p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.legacy-project-notice .legacy-project-notice-sub {
  margin-top: 4px;
  color: #40504c;
}

.legacy-project-notice .btn {
  flex: 0 0 auto;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.topbar .page-title {
  color: var(--foreground);
  font-size: 24px;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.43;
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.workspace-panel {
  min-height: 0;
}

.workspace-panel #upload-form,
.workspace-form {
  max-width: none;
}

.invite-panel {
  display: grid;
  gap: 18px;
}

.invite-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.invite-form {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.invite-result {
  grid-column: 1 / -1;
  min-height: 20px;
}

.invite-records-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.invite-records-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.invite-records {
  display: grid;
  gap: 10px;
}

.invite-record {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 14px;
}

.invite-record p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.invite-record-actions {
  display: flex;
  justify-content: flex-end;
}

.success-text {
  color: var(--success);
}

.warning-text {
  color: var(--warning);
}

.basic-summary {
  padding: 34px 38px;
}

.basic-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 54px;
  row-gap: 28px;
}

.basic-summary-item {
  min-width: 0;
}

.basic-summary-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.basic-summary-item strong {
  display: block;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.basic-edit {
  padding: 34px;
}

.basic-edit-title {
  margin: 0;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.basic-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.basic-admin-grid input,
.basic-admin-grid select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--foreground);
  padding: 0 18px;
  font-size: 14px;
  line-height: 50px;
  letter-spacing: 0;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.basic-admin-grid select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23101615' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.basic-admin-grid input::placeholder {
  color: #828c88;
}

.basic-admin-grid input:focus,
.basic-admin-grid select:focus {
  border-color: rgba(69, 215, 168, 0.72);
  box-shadow: 0 0 0 4px rgba(69, 215, 168, 0.16);
}

.basic-save-btn {
  width: 100%;
  min-height: 50px;
  font-size: 14px;
}

.diligence-header {
  padding: 32px 36px;
}

.diligence-header h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
}

.diligence-header p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.diligence-progress {
  margin-top: 24px;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.4;
}

.upload-detail-panel,
.required-items-panel {
  padding: 32px 36px;
}

.upload-detail-title {
  margin: 0;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
}

.upload-detail-form {
  gap: 14px;
}

.control-field {
  display: grid;
  gap: 8px;
}

.control-field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.upload-file-input,
.upload-detail-grid input,
.upload-detail-grid select,
.upload-detail-grid textarea,
.upload-review-grid select,
.upload-review-grid textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--foreground);
  font-size: 14px;
  letter-spacing: 0;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.upload-file-input,
.upload-detail-grid input,
.upload-detail-grid select,
.upload-review-grid select {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 18px;
  line-height: 50px;
}

.upload-file-input {
  padding-top: 12px;
  line-height: 1.4;
}

.upload-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.upload-detail-grid select,
.upload-review-grid select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23101615' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.upload-detail-grid .control-field.wide {
  grid-column: span 2;
}

.upload-review-block {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(16, 22, 21, 0.1);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(247, 249, 248, 0.96), rgba(255, 255, 255, 0.98));
  padding: 18px;
}

.upload-review-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(16, 22, 21, 0.08);
  padding-bottom: 14px;
}

.upload-review-head h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.upload-review-head p {
  margin: 0;
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.43;
  text-align: right;
}

.upload-review-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: start;
}

.upload-review-grid .control-field.wide {
  grid-column: auto;
}

.upload-detail-grid textarea,
.upload-review-grid textarea {
  min-height: 92px;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  line-height: 1.5;
  resize: vertical;
}

.upload-detail-grid input::placeholder,
.upload-detail-grid textarea::placeholder,
.upload-review-grid textarea::placeholder {
  color: #828c88;
}

.upload-file-input:focus,
.upload-detail-grid input:focus,
.upload-detail-grid select:focus,
.upload-detail-grid textarea:focus,
.upload-review-grid select:focus,
.upload-review-grid textarea:focus {
  border-color: rgba(69, 215, 168, 0.72);
  box-shadow: 0 0 0 4px rgba(69, 215, 168, 0.16);
}

.upload-detail-submit {
  width: min(420px, 100%);
  min-height: 50px;
  font-size: 14px;
}

.required-items-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.required-item-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 18px 22px;
}

.required-item-card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.required-item-card p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.panel-title {
  margin: 0 0 18px;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.metric {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: var(--radius-md);
}

.metric-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.metric-value {
  margin-top: 14px;
  color: var(--foreground);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.metric-value.warn {
  color: var(--warning);
}

.metric-value.danger {
  color: var(--danger);
}

.metric-value.good {
  color: var(--success);
}

.score-text,
.risk-text {
  font-weight: 600;
}

.score-text.good,
.risk-text.good {
  color: var(--success);
}

.score-text.warn,
.risk-text.warn {
  color: var(--warning);
}

.score-text.danger,
.risk-text.danger {
  color: var(--danger);
}

.report-share-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(53, 193, 150, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(53, 193, 150, 0.06);
}

.report-share-panel.muted {
  border-color: var(--line);
  background: var(--surface-soft);
}

.report-share-panel strong {
  color: var(--foreground);
  font-size: 15px;
}

.report-share-panel a {
  display: inline-block;
  max-width: 100%;
  color: var(--success-strong);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.report-share-panel .btn {
  flex: 0 0 auto;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.report-summary-item {
  display: grid;
  gap: 8px;
  min-height: 84px;
  align-content: center;
  background: var(--surface-soft);
  padding: 16px;
}

.report-summary-item span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.report-summary-item strong {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.report-summary-item strong.good {
  color: var(--success);
}

.report-summary-item strong.warn {
  color: var(--warning);
}

.report-summary-item strong.danger {
  color: var(--danger);
}

.topbar-title {
  margin: 0;
  color: var(--foreground);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.field input,
.field select,
.field textarea,
.filter-field,
.readonly-value {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--foreground);
  padding: 0 18px;
  font-size: 14px;
  line-height: 44px;
  letter-spacing: 0;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.readonly-value {
  display: flex;
  align-items: center;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.field select,
.filter-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23101615' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.field textarea {
  min-height: 120px;
  border-radius: var(--radius-md);
  padding-top: 16px;
  padding-bottom: 16px;
  line-height: 1.55;
  resize: vertical;
}

.field input[type="file"] {
  padding-top: 12px;
  line-height: 1.4;
}

.field input::placeholder,
.field textarea::placeholder,
.filter-field::placeholder {
  color: #828c88;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-field:focus {
  border-color: rgba(69, 215, 168, 0.72);
  box-shadow: 0 0 0 4px rgba(69, 215, 168, 0.16);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  border-color: rgba(69, 215, 168, 0.48);
  background: var(--surface-soft);
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), #158765);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(20, 154, 111, 0.18);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #5ee2b7, var(--green-focus));
}

.btn.danger {
  color: var(--danger);
}

.section {
  margin-top: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.compact-table th,
.compact-table td {
  padding: 9px 8px;
  font-size: 12px;
  line-height: 1.35;
}

.assessment-panel .panel-title {
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-color: var(--line);
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

td {
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.45;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.project-row {
  cursor: pointer;
  transition: background 0.18s ease;
}

.project-row:hover {
  background: var(--surface-soft);
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.status.red {
  border-color: rgba(215, 0, 21, 0.28);
  background: var(--danger-soft);
  color: var(--danger);
}

.status.green {
  border-color: rgba(69, 215, 168, 0.5);
  background: var(--success-soft);
  color: var(--success);
}

.status.yellow {
  border-color: rgba(160, 90, 0, 0.28);
  background: var(--warning-soft);
  color: var(--warning);
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gate-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 20px;
}

.gate-card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0;
}

.empty {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink-soft);
  padding: 22px;
  text-align: center;
  font-size: 13px;
  line-height: 1.43;
}

.notice {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 30;
  max-width: min(440px, calc(100vw - 40px));
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--foreground);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.notice:empty {
  display: none;
}

.notice.error {
  color: var(--danger);
  border-color: rgba(215, 0, 21, 0.28);
}

.notice.success {
  color: var(--success);
  border-color: rgba(69, 215, 168, 0.42);
}

.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px;
  background:
    linear-gradient(90deg, rgba(11, 21, 18, 0.94), rgba(17, 67, 41, 0.92)),
    #0b1512;
}

.login-box {
  width: min(460px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  padding: 34px;
  box-shadow: 0 22px 50px rgba(4, 12, 9, 0.18);
}

.login-box .brand {
  margin-bottom: 28px;
}

.login-box > .field {
  margin-top: 20px;
}

.login-box > .field + .field {
  margin-top: 22px;
}

.login-box > .field + .btn[type="submit"] {
  margin-top: 22px;
}

.legacy-entry-notice {
  display: grid;
  gap: 10px;
  margin: -8px 0 22px;
  border: 1px solid rgba(69, 215, 168, 0.35);
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  padding: 14px;
}

.legacy-entry-notice h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: 17px;
}

.legacy-entry-notice p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.legacy-entry-notice .btn {
  justify-self: start;
}

.registration-entry {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.registration-entry p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.link-button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  padding: 0;
  font-weight: 650;
}

.registration-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 12, 9, 0.58);
}

.registration-modal.show {
  display: grid;
}

.registration-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  padding: 24px;
  box-shadow: 0 22px 58px rgba(4, 12, 9, 0.26);
}

.registration-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.registration-panel h2 {
  margin: 0 0 6px;
  color: var(--foreground);
  font-size: 22px;
}

.registration-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.icon-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--foreground);
  font-size: 22px;
  line-height: 1;
}

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

.registration-help {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.registration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.message.success {
  color: var(--success);
}

.pending-auth-card {
  width: min(620px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.97);
  padding: 34px;
  box-shadow: 0 22px 50px rgba(4, 12, 9, 0.18);
}

.pending-auth-card .brand {
  margin-bottom: 24px;
}

.pending-auth-card h1 {
  margin: 0 0 10px;
  color: var(--foreground);
  font-size: 28px;
}

.pending-auth-copy {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.pending-auth-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 16px 18px 16px 36px;
  border: 1px solid rgba(160, 90, 0, 0.18);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: #4e3a17;
}

.pending-auth-note {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.pending-auth-note p {
  margin: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: #ffffff;
  font-weight: 600;
}

.brand-title {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.message {
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.supplier-page {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
  padding: 96px 0 72px;
}

.supplier-shell .lm-header {
  z-index: 4;
}

.supplier-header-meta {
  gap: 12px;
}

.supplier-shell-title {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.supplier-language-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.supplier-language-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 13px;
}

.supplier-language-toggle button.active {
  background: rgba(69, 215, 168, 0.92);
  color: #07120f;
}

.supplier-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 42px 44px;
  border: 1px solid rgba(69, 215, 168, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(9, 26, 20, 0.1);
}

.supplier-kicker {
  margin: 0 0 12px;
  color: #15966f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.supplier-hero h1 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.supplier-hero .supplier-hero-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.supplier-upload-note,
.upload-naming-note {
  max-width: 860px;
  margin: 12px 0 0;
  border: 1px solid rgba(69, 215, 168, 0.24);
  border-radius: 12px;
  background: rgba(69, 215, 168, 0.08);
  color: #31534a;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
}

.supplier-upload-note.compact {
  margin: -4px 0 18px;
}

.upload-naming-note {
  margin-bottom: 18px;
}

.supplier-panel {
  margin-bottom: 40px;
}

.supplier-site-footer {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 28px;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 1.8fr) auto;
  width: 100%;
  padding: 34px max(46px, calc((100vw - 1240px) / 2 + 30px));
  background:
    radial-gradient(circle at 82% 22%, rgba(104, 219, 170, 0.18), transparent 22%),
    radial-gradient(circle at 36% 56%, rgba(20, 90, 57, 0.24), transparent 44%),
    linear-gradient(90deg, #0b1512 0%, #0d2219 36%, #114329 72%, #2a7c4d 100%);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.supplier-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(117deg, transparent 0%, transparent 77%, rgba(179, 255, 217, 0.08) 77%, rgba(179, 255, 217, 0.08) 83%, transparent 83%);
  pointer-events: none;
}

.supplier-site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.18;
  pointer-events: none;
}

.supplier-site-footer > * {
  position: relative;
  z-index: 1;
}

.supplier-footer-logo {
  display: block;
  height: 34px;
  width: auto;
}

.supplier-footer-brand p {
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(230, 238, 235, 0.74);
  font-size: 13px;
  line-height: 1.9;
}

.supplier-footer-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.supplier-footer-column-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.supplier-footer-column ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.supplier-footer-column li,
.supplier-footer-column a {
  color: rgba(230, 238, 235, 0.74);
  font-size: 13px;
  line-height: 1.55;
}

.supplier-footer-column a:hover {
  color: #ffffff;
}

.supplier-footer-top-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1280px) {
  .content-layout.with-sidebar {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 26px;
  }

  .projects-overview {
    grid-template-columns: 1fr;
  }

  .projects-filter-panel {
    max-width: 900px;
  }

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

@media (max-width: 980px) {
  .lm-container {
    width: min(100% - 32px, 1720px);
  }

  .lm-header-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .lm-header-meta {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  .supplier-page {
    width: min(100% - 32px, 1160px);
    padding-top: 56px;
  }

  .supplier-hero {
    padding: 32px 28px;
  }

  .supplier-site-footer {
    grid-template-columns: 1fr;
    padding: 34px 28px;
  }

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

  .content-layout.with-sidebar {
    display: block;
  }

  .sidebar {
    position: relative;
    top: auto;
    display: block;
    margin-bottom: 24px;
    overflow-x: auto;
  }

  #nav-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-section {
    display: contents;
    margin-top: 14px;
  }

  .nav-section + .nav-section {
    border-top: 0;
    padding-top: 0;
  }

  .nav-label {
    display: none;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .report-summary,
  .workspace-duo,
  .invite-form,
  .invite-record,
  .basic-summary-grid,
  .basic-admin-grid,
  .upload-detail-grid,
  .upload-review-grid,
  .split,
  .projects-filter-panel {
    grid-template-columns: 1fr;
  }

  .report-share-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-detail-grid .control-field.wide,
  .upload-detail-grid textarea,
  .upload-review-grid .control-field.wide {
    grid-column: auto;
  }

  .upload-review-head {
    display: grid;
  }

  .upload-review-head p {
    max-width: none;
    text-align: left;
  }

  .project-title-card {
    display: grid;
  }

  .project-actions {
    justify-content: flex-start;
  }

.legacy-project-notice {
  align-items: flex-start;
  flex-direction: column;
}
}

.legal-review-panel .topbar {
  align-items: flex-start;
}

.legal-review-form textarea {
  min-height: 130px;
}

.legal-review-summary {
  display: grid;
  gap: 18px;
}

.legal-review-status-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-review-status-grid > div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.legal-review-status-grid span,
.legal-review-meta {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.legal-review-status-grid strong {
  display: block;
  font-size: 18px;
  margin-top: 6px;
}

.legal-review-status-grid .good {
  color: #047857;
}

.legal-review-status-grid .warn {
  color: #b45309;
}

.legal-review-status-grid .danger {
  color: #b91c1c;
}

.legal-review-text,
.legal-review-required {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 16px;
}

.legal-review-text h3,
.legal-review-required strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.legal-review-text p,
.legal-review-required p {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.legal-review-required {
  background: #fffbeb;
  border-color: #f59e0b;
}

.legal-review-required strong {
  color: #92400e;
}

.item-requirement {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.supplier-instruction {
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 18px;
}

.supplier-material-groups {
  display: grid;
  gap: 18px;
}

.supplier-material-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.supplier-material-group h2 {
  font-size: 17px;
  margin: 0 0 12px;
}

.supplier-material-list {
  display: grid;
  gap: 12px;
}

.supplier-material-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto;
  padding: 14px;
}

.supplier-file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.supplier-file-picker:focus-within {
  border-color: rgba(69, 215, 168, 0.78);
  box-shadow: 0 0 0 4px rgba(69, 215, 168, 0.12);
}

.supplier-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.supplier-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--foreground);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.supplier-file-button:hover {
  background: var(--green-soft);
  border-color: rgba(69, 215, 168, 0.38);
}

.supplier-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-material-card h3 {
  font-size: 15px;
  margin: 0;
}

.supplier-material-card p,
.supplier-card-result p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

@media (max-width: 640px) {
  .lm-main {
    padding-top: 212px;
  }

  .projects-overview,
  .project-title-card,
  .panel,
  .sidebar {
    border-radius: var(--radius-sm);
    padding: 22px;
  }

  .projects-overview h1,
  .page-title,
  .project-title-card h1 {
    font-size: 24px;
  }

  .metric-value {
    font-size: 24px;
  }

  .gate-grid {
    grid-template-columns: 1fr;
  }

  .supplier-material-card {
    grid-template-columns: 1fr;
  }

  .notice {
    right: 16px;
    bottom: 16px;
  }
}
