:root {
  --ink: #172026;
  --muted: #61707b;
  --line: #d7e0e5;
  --paper: #f7faf9;
  --surface: #ffffff;
  --primary: #0d6b63;
  --primary-dark: #084e49;
  --accent: #c6503c;
  --accent-soft: #f9e7e1;
  --focus: #9aca3c;
  --shadow: 0 16px 40px rgba(23, 32, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand:hover {
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--muted);
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
}

nav a.active,
nav a:hover {
  color: var(--ink);
  background: #e9f2ef;
  text-decoration: none;
}

main {
  min-height: calc(100vh - 72px);
}

.split-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: stretch;
  width: min(1120px, calc(100% - 40px));
  margin: 48px auto;
}

.intro-panel,
.status-board,
.form-shell,
.message-shell,
.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-panel {
  padding: clamp(32px, 5vw, 64px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4.4rem);
}

h2 {
  font-size: 1.1rem;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 650px;
}

.actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  font: inherit;
  cursor: pointer;
}

.button.primary,
button.primary {
  background: var(--primary);
  color: white;
}

.button.primary:hover,
button.primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

.status-board {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.workflow-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.workflow-row p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.step-dot {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.step-dot.accent {
  background: var(--accent);
}

.step-dot.done {
  background: var(--focus);
}

.form-shell,
.message-shell,
.workspace {
  width: min(1040px, calc(100% - 40px));
  margin: 40px auto;
  padding: clamp(22px, 4vw, 40px);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.stacked-form {
  display: grid;
  gap: 20px;
}

.stacked-form.compact {
  gap: 14px;
}

fieldset,
.panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fbfdfc;
}

legend {
  padding: 0 6px;
  font-weight: 900;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(154, 202, 60, 0.4);
  outline-offset: 2px;
}

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

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

.grid.three {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
}

.message-shell {
  max-width: 720px;
}

.data-grid,
.detail-grid {
  display: grid;
  gap: 20px;
}

.data-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e9f2ef;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.bid-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bid-actions form {
  margin: 0;
}

.bid-actions button {
  min-height: 32px;
  padding: 5px 9px;
  background: white;
  border-color: var(--line);
}

dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 16px;
  margin: 0 0 18px;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

@media (max-width: 820px) {
  .topbar,
  nav {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
    padding: 16px 20px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  .split-shell,
  .data-grid,
  .detail-grid,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    min-height: auto;
  }

  dl {
    grid-template-columns: 1fr;
  }
}

