:root {
  --ink: #151829;
  --muted: #62687a;
  --line: #d7dbe7;
  --navy: #17215f;
  --red: #e5252a;
  --gold: #c5a25e;
  --green: #138b49;
  --surface: #ffffff;
  --page: #f4f6fb;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
}

.logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.intro {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 25, 60, 0.06);
}

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

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.pending {
  color: #725000;
  background: #fff4cf;
}

.ready {
  color: #07542a;
  background: #dff6e9;
}

.error,
.locked {
  color: #7b1115;
  background: #ffe1e3;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.small,
.empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.module-button {
  color: var(--ink);
  text-align: left;
  background: #fbfcff;
}

.modules span,
.module-button {
  min-height: 40px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.module-button.active {
  border-color: var(--navy);
  border-left-color: var(--red);
  background: #eef2ff;
}

.workspace-panel {
  margin-top: 16px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.search {
  max-width: 380px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf6f0;
  color: #07542a;
  font-size: 12px;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.notice {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
}

.notice.unread {
  border-left: 4px solid var(--red);
}

.target-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-box {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #cbd4ea;
  border-radius: 6px;
  background: #f7f9ff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .hero {
    grid-template-columns: 72px 1fr;
    gap: 14px;
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  h1 {
    font-size: 27px;
  }

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

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

  .toolbar,
  .split,
  .target-fields {
    grid-template-columns: 1fr;
    display: grid;
  }
}
