:root {
  --bg-0: #ffffff;
  --bg-1: #fafaf9;
  --bg-2: #f4f4f1;
  --bg-3: #0e1116;
  --ink-0: #0e1116;
  --ink-1: #3a3f47;
  --ink-2: #6b7280;
  --ink-3: #9ca3af;
  --rule: #e5e5e2;
  --rule-strong: #d4d4d0;
  --brand: #1689e0;
  --brand-deep: #0e62a6;
  --brand-soft: #e6f1fb;
  --warn: #c2410c;
  --warn-soft: #fef0e8;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --font-sans: "IBM Plex Sans", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-report-sans: Inter, "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-report-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  --container-max: 1320px;
  --pad-page-x: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --radius-sm: 2px;
  --focus: rgba(14, 98, 166, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-1);
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

body.report-document {
  --bg-0: #ffffff;
  --bg-1: #f5f8f9;
  --bg-2: #e2e8ea;
  --bg-3: #0b2d3a;
  --ink-0: #0e1a1f;
  --ink-1: #263b44;
  --ink-2: #5a6b72;
  --ink-3: #9ba9ae;
  --rule: #e2e8ea;
  --rule-strong: #c8d4d8;
  --brand: #00b8d4;
  --brand-deep: #0b2d3a;
  --brand-soft: #ebfbfd;
  --cyan: #007e92;
  --warn: #f2a33c;
  --warn-soft: #fff7e6;
  --font-sans: var(--font-report-sans);
  --font-mono: var(--font-report-mono);
  background: var(--bg-1);
  font-family: var(--font-report-sans);
}

.shell {
  width: min(var(--container-max), calc(100% - var(--pad-page-x) * 2));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.header-meta {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--ink-1);
  font-size: 14px;
}

.header-notification-bar {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-0);
}

.header-notification-bar.is-active {
  border-color: rgba(14, 98, 166, 0.28);
  background: var(--brand-soft);
}

.notification-summary-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.notification-summary-link strong,
.notification-summary-link small {
  display: block;
}

.notification-summary-link small {
  margin-top: 3px;
  color: var(--ink-2);
}

.header-notification-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.header-notification-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--bg-0);
  color: inherit;
  text-decoration: none;
}

.header-notification-list a:hover {
  border-color: var(--brand-deep);
}

.header-notification-list span,
.header-notification-list small {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.header-notification-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow,
.login-kicker,
.login-card-label {
  margin: 0 0 8px;
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--ink-0);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.08;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink-0);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink-0);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

a {
  color: var(--brand-deep);
}

.phase-badge,
.secondary-action,
.primary-link,
.table-action,
.export-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: transparent;
  color: var(--ink-0);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.secondary-action:hover,
.table-action:hover,
.export-actions a:hover {
  border-color: var(--brand-deep);
  color: var(--brand-deep);
}

.action-with-icon {
  gap: 7px;
}

.action-with-icon > span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.icon-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-link.action-with-icon > span[aria-hidden="true"] {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.primary-link {
  border-color: var(--ink-0);
  background: var(--ink-0);
  color: #fff;
}

.primary-link:hover,
button:hover {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
  color: #fff;
}

.phase-badge,
.storage-badge {
  min-height: 28px;
  border-color: var(--rule);
  padding: 3px 9px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.alert,
.warning-strip,
.success-strip,
.info-strip,
.export-strip,
.form-actions {
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--bg-0);
}

.alert,
.warning-strip {
  border-color: rgba(194, 65, 12, 0.32);
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 500;
}

.success-strip {
  border-color: rgba(4, 120, 87, 0.24);
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 500;
}

.info-strip,
.export-strip,
.form-actions,
.warning-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.info-strip {
  border-color: rgba(14, 98, 166, 0.18);
  background: var(--brand-soft);
  color: var(--ink-1);
}

.warning-strip strong,
.warning-strip span,
.info-strip strong,
.info-strip span,
.export-strip strong,
.export-strip span {
  display: block;
}

.warning-strip strong,
.info-strip strong,
.export-strip strong {
  color: var(--ink-0);
  font-weight: 500;
}

.warning-strip span,
.info-strip span,
.export-strip span {
  color: var(--ink-1);
  font-size: 13.5px;
}

.overview-grid,
.metric-row,
.card-grid,
.field-grid {
  display: grid;
  gap: 20px;
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.overview-item,
.form-section,
.card,
.template-picker,
.section-context,
.storage-cabin-guide,
.account-card,
.login-card,
.advantage-item,
.metric {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-0);
}

.overview-item,
.card,
.account-card,
.login-card,
.advantage-item,
.metric {
  padding: 24px;
}

.overview-item:hover,
.card:hover,
.metric:hover {
  border-color: var(--ink-0);
}

.overview-item span,
.metric span,
.summary-card span,
.storage-models span,
.advantage-item span {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-item strong {
  display: block;
  margin: 6px 0;
  color: var(--ink-0);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.overview-item p,
.template-picker-copy p,
.storage-cabin-copy p,
.advantage-item p,
.login-card p,
.material-panel p {
  margin: 0;
  color: var(--ink-1);
  font-size: 14px;
}

.form-card {
  border: 0;
  background: transparent;
}

.scenario-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.scenario-mode-option {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg-0);
  color: var(--ink-0);
  text-align: left;
  cursor: pointer;
}

.scenario-mode-option:hover,
.scenario-mode-option.is-active {
  border-color: var(--brand-deep);
  background: var(--brand-soft);
}

.scenario-mode-option span {
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scenario-mode-option strong {
  color: var(--ink-0);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.scenario-mode-option small {
  color: var(--ink-1);
  font-size: 13.5px;
  line-height: 1.5;
}

.form-section {
  margin-bottom: 24px;
  padding: 28px;
}

.form-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.form-section h2::before {
  width: 28px;
  height: 1px;
  background: var(--brand-deep);
  content: "";
}

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

.template-picker,
.storage-cabin-guide,
.section-context {
  margin-bottom: 22px;
  padding: 18px;
  background: var(--bg-1);
}

.template-picker {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
}

.template-picker .field {
  margin: 0;
}

.template-picker-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.template-picker-copy strong,
.section-context strong,
.storage-cabin-copy strong {
  color: var(--ink-0);
  font-weight: 500;
}

.section-context {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  gap: 10px 16px;
  color: var(--ink-1);
  font-size: 13.5px;
}

.temperature-guidance {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  border-left: 3px solid var(--brand-deep);
  padding: 2px 0 2px 13px;
  color: var(--ink-1);
  font-size: 13.5px;
  line-height: 1.55;
}

.temperature-guidance strong {
  color: var(--ink-0);
  font-size: 14px;
  font-weight: 500;
}

.temperature-guidance.is-valid {
  border-left-color: var(--ok);
}

.temperature-guidance.is-warning {
  border-left-color: var(--warn);
}

.storage-cabin-guide {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
}

.storage-cabin-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-0);
  overflow: hidden;
}

.storage-cabin-photo::before {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  content: "MODULE · LAYOUT";
}

.storage-cabin-photo::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  content: "L / W / H";
}

.storage-cabin-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storage-cabin-copy {
  align-self: center;
}

.storage-cabin-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.storage-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.storage-models span {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  background: var(--bg-0);
  color: var(--brand-deep);
  white-space: nowrap;
}

.storage-cabin-field-grid {
  align-items: start;
}

.storage-cabin-field-grid .field {
  min-height: 116px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

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

.field > span:first-child {
  color: var(--ink-0);
  font-size: 13.5px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: var(--bg-0);
  color: var(--ink-0);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--focus);
  border-color: var(--brand-deep);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand-deep);
}

small,
.form-hint,
.card-note,
.tabs-note,
.status-note {
  color: var(--ink-2);
  font-size: 12.5px;
}

.form-hint,
.card-note {
  margin-bottom: 12px;
}

button {
  min-height: 40px;
  border: 1px solid var(--ink-0);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  background: var(--ink-0);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.account-shell {
  max-width: 920px;
}

.account-password-form,
.login-form,
.login-panel {
  display: grid;
  gap: 16px;
}

.account-form-actions {
  margin-top: 4px;
}

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.tab-button {
  display: inline-flex;
  min-width: 180px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 16px;
  background: var(--bg-2);
  color: var(--ink-1);
  text-align: left;
}

.tab-button + .tab-button {
  margin-left: -1px;
}

.tab-button span {
  font-size: 14px;
  font-weight: 500;
}

.tab-button small {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 400;
}

.tab-button.active {
  background: var(--bg-0);
  color: var(--brand-deep);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.card {
  margin-bottom: 20px;
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card h2::before {
  flex: 0 0 auto;
  width: 24px;
  height: 1px;
  background: var(--brand-deep);
  content: "";
}

.module-card-header h2::before {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

tr:first-child th,
tr:first-child td {
  border-top: 0;
}

th {
  width: 48%;
  color: var(--ink-2);
  font-weight: 400;
}

td {
  color: var(--ink-0);
  font-weight: 500;
}

.strong-number {
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 20px;
}

.metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

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

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

.metric {
  position: relative;
  background: var(--bg-0);
}

.metric::before {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  content: "#";
}

.result-key-metrics .metric:nth-child(1)::before {
  content: "P";
}

.result-key-metrics .metric:nth-child(2)::before {
  content: "E";
}

.result-key-metrics .metric:nth-child(3)::before {
  content: "KW";
}

.result-key-metrics .metric:nth-child(4)::before {
  content: "C";
}

.metric-row-three .metric:nth-child(1)::before {
  content: "¥";
}

.metric-row-three .metric:nth-child(2)::before {
  content: "GM";
}

.metric-row-three .metric:nth-child(3)::before {
  content: "R";
}

.result-key-metrics .metric {
  background: var(--bg-0);
}

.metric span {
  display: block;
  margin-bottom: 8px;
}

.metric strong {
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.assessment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.28fr) minmax(260px, 0.72fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 20px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brand-deep);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg-0);
}

.assessment-green {
  border-left-color: var(--ok);
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.78), var(--bg-0) 36%);
}

.assessment-yellow {
  border-left-color: var(--warn);
  background: linear-gradient(90deg, rgba(254, 240, 232, 0.76), var(--bg-0) 36%);
}

.assessment-red {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.assessment-summary h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.assessment-summary p:last-child {
  margin-bottom: 0;
  color: var(--ink-1);
}

.assessment-pill,
.assessment-next {
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-1);
}

.assessment-pill span,
.assessment-next span {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.assessment-pill strong {
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.assessment-pill small {
  color: var(--ink-2);
  font-family: var(--font-mono);
}

.assessment-next strong {
  color: var(--ink-0);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  margin-bottom: 22px;
}

.assessment-card {
  margin-bottom: 0;
}

.status-list,
.compact-list,
.action-queue {
  margin: 0;
}

.status-list,
.compact-list {
  padding: 0;
  list-style: none;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: var(--bg-1);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--brand-deep);
}

.status-green .status-dot {
  background: var(--ok);
}

.status-yellow .status-dot,
.status-red .status-dot {
  background: var(--warn);
}

.status-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-0);
  font-weight: 500;
}

.status-item p {
  margin: 0;
  color: var(--ink-1);
  font-size: 13.5px;
}

.action-queue {
  display: grid;
  gap: 9px;
  padding-left: 22px;
}

.action-queue li,
.compact-list li {
  color: var(--ink-1);
}

.compact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.compact-list li {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  background: var(--bg-1);
  font-size: 12.5px;
}

.notes {
  margin: 0;
  padding-left: 18px;
}

.notes li {
  margin-bottom: 8px;
}

.export-actions,
.table-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-row {
  justify-content: flex-end;
}

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

.template-library-table {
  min-width: 1120px;
}

.history-table {
  min-width: 1580px;
}

.template-library-table th,
.template-library-table td,
.history-table th,
.history-table td {
  width: auto;
  padding-right: 16px;
}

.table-actions form {
  margin: 0;
}

.report-action-group {
  display: grid;
  gap: 5px;
  min-width: 128px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--bg-1);
}

.report-action-group > span {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-action-group > small {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}

.report-action-group > div {
  display: flex;
  gap: 6px;
}

.cost-report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  width: min(620px, 100%);
}

.table-action-mini {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.table-action-danger {
  border-color: rgba(194, 65, 12, 0.24);
  color: var(--warn);
}

.table-action-danger > span[aria-hidden="true"] {
  border-color: rgba(194, 65, 12, 0.24);
  background: var(--warn-soft);
  color: var(--warn);
}

.table-action-danger:hover {
  border-color: var(--warn);
  color: var(--warn);
}

.history-list {
  display: grid;
  gap: 18px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-0);
}

.history-card:hover {
  border-color: var(--ink-0);
}

.history-card-main {
  min-width: 0;
}

.history-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.history-card-header h2 {
  margin: 0;
  font-size: 22px;
}

.history-card-header h2::before {
  display: none;
}

.history-card-header p {
  margin: 5px 0 0;
  color: var(--ink-1);
  font-size: 13.5px;
}

.history-record-id {
  margin: 0 0 6px !important;
  color: var(--brand-deep) !important;
  font-family: var(--font-mono);
  font-size: 10.5px !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.history-badge-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.history-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.history-metric-grid > div {
  min-height: 96px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--bg-1);
}

.history-metric-grid span,
.history-detail-list dt,
.history-action-group > span {
  display: block;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-action-label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.history-action-label .icon-box {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--brand-deep);
}

.history-metric-grid strong,
.history-detail-list dd {
  display: block;
  margin-top: 6px;
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.history-metric-grid small {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.history-detail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.history-detail-list div {
  min-width: 0;
}

.history-detail-list dd {
  margin-left: 0;
  font-size: 15px;
}

.history-boundary-note {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 13px;
}

.history-action-panel {
  display: grid;
  align-content: start;
  gap: 9px;
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

.history-action-panel form {
  margin: 0;
}

.history-action-panel .primary-link,
.history-action-panel .secondary-action,
.history-action-panel button.secondary-action {
  width: 100%;
}

.history-action-group {
  display: grid;
  gap: 7px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--bg-1);
}

.history-action-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.history-action-group .table-action-mini {
  width: 100%;
}

.storage-badge-new {
  border-color: rgba(14, 98, 166, 0.18);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.storage-badge-legacy {
  border-color: rgba(194, 65, 12, 0.22);
  background: var(--warn-soft);
  color: var(--warn);
}

.storage-badge-neutral {
  background: var(--bg-2);
}

.empty-state {
  max-width: 560px;
}

.login-body {
  min-height: 100vh;
  background-color: var(--bg-1);
  background-image: radial-gradient(circle, rgba(156, 163, 175, 0.28) 0.6px, transparent 0.7px);
  background-size: 28px 28px;
}

.login-shell {
  display: grid;
  width: min(var(--container-max), calc(100% - var(--pad-page-x) * 2));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 48px;
  align-items: start;
  padding: 44px 0 56px;
}

.brand-login-body {
  color: var(--ink-0);
}

.brand-login-body::before {
  display: none;
}

.brand-login-body .login-shell {
  width: min(var(--container-max), calc(100% - var(--pad-page-x) * 2));
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  align-items: start;
  padding: 44px 0 56px;
}

.brand-login-body .login-hero {
  display: grid;
  min-width: 0;
  gap: 28px;
  align-content: start;
}

.login-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}

.brand-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-deep);
}

.brand-mark::before {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  content: "PE";
}

.brand-mark::after,
.brand-mark i {
  display: none;
}

.brand-logo-lockup strong,
.brand-logo-lockup small {
  display: block;
}

.brand-logo-lockup strong {
  color: var(--ink-0);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.18;
}

.brand-logo-lockup small {
  margin-top: 4px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-links {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.brand-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.brand-links a:hover {
  border-bottom-color: var(--brand-deep);
  color: var(--brand-deep);
}

.login-copy {
  max-width: 720px;
  padding-top: 12px;
}

.brand-login-body .login-hero h1,
.login-hero h1 {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-0);
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.06;
  text-shadow: none;
}

.login-lead {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--ink-1);
  font-size: 17px;
  line-height: 1.62;
}

.login-figure {
  position: relative;
  max-width: 860px;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 48px 28px 18px;
  background: var(--bg-0);
  overflow: hidden;
}

.frame-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frame-tag-right {
  right: 14px;
  left: auto;
}

.login-figure img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
}

.login-figure figcaption {
  margin: 18px 0 0;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.material-panel {
  display: grid;
  max-width: 860px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-0);
  overflow: hidden;
}

.material-panel > div {
  min-height: 132px;
  padding: 22px;
  border-left: 1px solid var(--rule);
  background: var(--bg-0);
}

.material-panel > div:first-child {
  border-left: 0;
}

.material-panel span {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.material-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-0);
  font-size: 18px;
  font-weight: 500;
}

.brand-proof-row {
  display: grid;
  max-width: 860px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.proof-badge {
  display: flex;
  min-height: 76px;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rule);
  padding: 14px 16px;
  background: transparent;
}

.proof-badge-round,
.proof-badge-wide {
  min-width: 0;
  aspect-ratio: auto;
  text-align: left;
}

.proof-badge:first-child {
  border-left: 0;
}

.proof-badge strong,
.proof-badge span {
  display: block;
}

.proof-badge strong {
  color: var(--ink-0);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.proof-badge span {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 12px;
}

.brand-login-body .login-panel {
  position: sticky;
  top: 32px;
  align-self: start;
  gap: 14px;
}

.brand-login-body .login-card {
  background: var(--bg-0);
  padding: 28px;
}

.brand-login-body .login-card h2,
.login-card h2 {
  margin-bottom: 16px;
  color: var(--ink-0);
  font-size: 22px;
  font-weight: 500;
}

.brand-login-body .login-card p,
.brand-login-body .card-note {
  color: var(--ink-1);
}

.brand-login-body .field > span:first-child {
  color: var(--ink-0);
}

.brand-login-body input,
.brand-login-body select,
.brand-login-body textarea {
  border-color: var(--rule-strong);
  background: var(--bg-1);
  color: var(--ink-0);
}

.brand-login-body input:focus {
  outline-color: var(--focus);
  border-color: var(--brand-deep);
}

.brand-login-body button,
.brand-login-body .login-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink-0);
  color: #fff;
}

.brand-login-body button::after,
.brand-login-body .login-primary::after {
  content: "→";
  transition: transform 0.2s ease;
}

.brand-login-body button:hover,
.brand-login-body .login-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.brand-login-body button:hover::after,
.brand-login-body .login-primary:hover::after {
  transform: translateX(3px);
}

.login-primary {
  width: 100%;
  margin-top: 16px;
  min-height: 44px;
}

.customer-entry-form {
  margin-top: 8px;
}

.customer-entry-form textarea {
  min-height: 74px;
}

.login-helper-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-boundary {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .metric-row-four,
  .overview-grid,
  .history-metric-grid,
  .history-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .history-action-panel {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
    padding-left: 0;
  }

  .login-shell,
  .brand-login-body .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 36px;
  }

  .brand-login-body .login-hero h1,
  .login-hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 900px) {
  .field-grid,
  .card-grid,
  .metric-row,
  .overview-grid,
  .assessment-panel,
  .review-grid,
  .scenario-mode-switch,
  .storage-cabin-guide,
  .template-picker {
    grid-template-columns: 1fr;
  }

  .page-header,
  .header-actions,
  .export-strip,
  .info-strip,
  .warning-strip,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header {
    grid-template-columns: 1fr;
  }

  .header-notification-bar,
  .header-notification-list,
  .history-card-header,
  .history-metric-grid,
  .history-detail-list {
    grid-template-columns: 1fr;
  }

  .history-badge-stack {
    justify-content: flex-start;
  }

  .login-shell,
  .brand-login-body .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-login-body .login-panel {
    position: static;
  }

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

  .section-context {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
    border-bottom: 0;
    gap: 8px;
  }

  .login-brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-links {
    justify-content: flex-start;
  }

  .tab-button {
    min-width: 0;
    flex: 1 1 220px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
  }

  .tab-button + .tab-button {
    margin-left: 0;
  }

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

  .brand-proof-row {
    grid-template-columns: 1fr;
  }

  .proof-badge {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .proof-badge:first-child {
    border-top: 0;
  }

  .material-panel > div {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .material-panel > div:first-child {
    border-top: 0;
  }

  .brand-login-body .login-shell {
    width: min(100% - 32px, 760px);
    gap: 28px;
    padding: 32px 0 44px;
  }

  .brand-login-body .login-hero {
    gap: 22px;
  }

  .brand-login-body .login-panel {
    width: min(100%, 540px);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, var(--container-max));
    padding-top: 22px;
  }

  h1 {
    font-size: 32px;
  }

  .form-section,
  .card,
  .overview-item,
  .login-card,
  .advantage-item,
  .metric {
    padding: 18px;
  }

  .login-shell,
  .brand-login-body .login-shell {
    width: min(100% - 24px, var(--container-max));
    padding: 24px 0 34px;
  }

  .brand-login-body .login-card {
    padding: 20px;
  }

  .brand-login-body .login-hero h1,
  .login-hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .brand-links {
    gap: 10px 14px;
  }

  .brand-links a {
    min-height: 28px;
    padding: 0;
    font-size: 12px;
  }

  .login-figure {
    padding: 46px 14px 16px;
  }

  .frame-tag-right {
    position: static;
    display: inline-flex;
    margin: 0 0 12px 14px;
  }

.brand-logo-lockup strong {
  font-size: 18px;
}
}

.workflow-strip,
.document-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-0);
}

.workflow-strip > div:first-of-type {
  flex: 1;
}

.workflow-strip::before,
.export-strip::before,
.info-strip::before,
.warning-strip::before {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.workflow-strip::before {
  content: "WF";
}

.export-strip::before {
  content: "EX";
}

.info-strip::before {
  content: "i";
}

.warning-strip::before {
  border-color: rgba(194, 65, 12, 0.26);
  background: var(--warn-soft);
  color: var(--warn);
  content: "!";
}

.workflow-strip strong,
.document-hero h2 {
  display: block;
  margin: 0 0 6px;
}

.workflow-strip span,
.document-hero span,
.document-hero p {
  color: var(--ink-2);
}

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

.workflow-actions form,
.table-actions form {
  margin: 0;
}

.workflow-actions button,
.secondary-button {
  min-height: 38px;
  border: 1px solid var(--ink-0);
  border-radius: var(--radius-sm);
  background: var(--ink-0);
  color: white;
  cursor: pointer;
}

.secondary-button {
  border-color: var(--rule-strong);
  background: transparent;
  color: var(--ink-0);
}

.table-actions button.table-action {
  cursor: pointer;
  font: inherit;
}

.document-shell {
  max-width: 1040px;
}

.report-document .shell {
  counter-reset: document-section;
  padding-top: 44px;
}

.report-document .page-header {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px;
}

.report-document .page-header h1 {
  max-width: 18ch;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.report-document-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.report-document-logo {
  width: 172px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
}

.report-document-brand span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.report-document .eyebrow,
.report-document .phase-badge,
.report-document .card h2::before,
.report-document .module-card-header h2::before,
.report-document .module-card-header h3::before {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.report-document .card {
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: none;
}

.report-document .card > h2,
.report-document .module-card-header h2,
.report-document .module-card-header h3 {
  display: block;
  font-weight: 700;
}

.report-document .card > h2::before,
.report-document .module-card-header h2::before,
.report-document .module-card-header h3::before {
  counter-increment: document-section;
  display: block;
  flex: none;
  width: auto;
  height: auto;
  margin-bottom: 8px;
  background: transparent;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  content: counter(document-section, decimal-leading-zero) " / Engineering Report";
}

.report-document table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-document table td,
.report-document .strong-number {
  font-weight: 500;
}

.document-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 18px;
  align-items: stretch;
  justify-content: space-between;
  border-radius: var(--radius);
  background: var(--bg-0);
  overflow: hidden;
}

.document-hero::before {
  position: absolute;
  top: 14px;
  left: 16px;
  border: 1px solid rgba(14, 17, 22, 0.14);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-1);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  content: "DOCUMENT · APPROVED";
}

.document-hero > div:first-child {
  min-width: 0;
  padding-top: 26px;
}

.document-total {
  display: grid;
  place-items: center;
  min-width: 220px;
  padding: 16px;
  border-left: 1px solid var(--rule);
}

.document-total strong {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
}

.document-total small {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.currency-switcher {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-0);
}

.currency-switcher strong,
.currency-switcher span {
  display: block;
}

.currency-switcher span {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
}

.currency-segment,
.currency-rate-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-option {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-0);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.currency-option.is-active {
  border-color: rgba(14, 98, 166, 0.28);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.currency-rate-form label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.currency-rate-form input {
  width: 118px;
  min-height: 36px;
  padding: 7px 9px;
}

.currency-rate-form .secondary-action {
  min-height: 36px;
}

.module-parameter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.module-parameter-grid h3 {
  margin: 0;
  font-size: 17px;
}

.module-card {
  position: relative;
}

.module-card-compact {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg-0);
}

.module-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.module-card-header h2,
.module-card-header h3 {
  margin-bottom: 0;
}

.section-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(14, 98, 166, 0.22);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.report-document .metric-row {
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.report-document .metric {
  border: 0;
  border-right: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.report-document .metric:last-child {
  border-right: 0;
}

.report-document .metric strong {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.18;
}

.module-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.module-metric-grid > div {
  min-height: 86px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--bg-1);
}

.module-metric-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.module-metric-grid strong {
  display: block;
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.module-metric-grid .module-emphasis {
  border-color: rgba(14, 98, 166, 0.22);
  background: var(--brand-soft);
}

.module-metric-grid .module-emphasis strong {
  color: var(--brand-deep);
}

.approval-notice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.approval-notice-main {
  position: relative;
  padding-left: 48px;
}

.approval-notice-main::before {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(14, 98, 166, 0.22);
  border-radius: var(--radius-sm);
  background: var(--bg-0);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  content: "IN";
}

.approval-notice-main > span,
.approval-stats span,
.notification-card span {
  display: block;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.approval-notice-main strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.approval-notice-main p,
.section-heading-row p,
.notification-card p {
  margin: 4px 0 0;
  color: var(--ink-2);
}

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

.approval-stats div,
.notification-card {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-0);
  padding: 14px;
}

.approval-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.notification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.notification-card {
  display: block;
  padding-right: 48px;
  color: inherit;
  text-decoration: none;
}

.notification-card::before {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(14, 98, 166, 0.18);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  content: "GO";
}

.notification-card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(14, 98, 166, 0.12);
}

.notification-card strong {
  display: block;
  margin-top: 8px;
}

.notification-card small {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-deep);
  font-weight: 700;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 12px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: 24px;
}

.table-action-muted {
  color: var(--ink-2) !important;
}

.archived-row {
  opacity: 0.72;
}

.solution-shell .page-header {
  align-items: start;
}

.solution-form textarea {
  min-height: 140px;
  resize: vertical;
}

.solution-key-metrics {
  margin-bottom: 16px;
}

.solution-status-grid,
.solution-variant-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.solution-status-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

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

.solution-variant-card {
  position: relative;
}

.solution-variant-card.is-recommended {
  border-color: rgba(14, 98, 166, 0.45);
  box-shadow: 0 12px 30px rgba(14, 98, 166, 0.08);
}

.solution-variant-card.is-recommended::after {
  content: "推荐";
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(14, 98, 166, 0.25);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-1);
}

.compact-list li + li {
  margin-top: 8px;
}

.proposal-document {
  margin-bottom: 24px;
  padding: 42px;
  background: var(--bg-0);
  border: 1px solid var(--rule);
}

.proposal-section {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.proposal-section h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

@media print {
  .no-print {
    display: none !important;
  }

  .shell {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 760px) {
  .approval-notice,
  .document-hero,
  .currency-switcher,
  .cost-report-actions {
    grid-template-columns: 1fr;
  }

  .document-total {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .report-document .metric-row {
    grid-template-columns: 1fr;
  }

  .report-document .metric {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .report-document .metric:last-child {
    border-bottom: 0;
  }

  .report-document .page-header h1 {
    font-size: 34px;
  }

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

  .currency-segment,
  .currency-rate-form {
    flex-wrap: wrap;
  }

  .solution-status-grid,
  .solution-variant-grid {
    grid-template-columns: 1fr;
  }
}
