* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f5;
  color: #111;
}

.app {
  width: min(1100px, 94%);
  margin: 0 auto 35px auto;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 18px;
  padding: 25px;
}

.header {
  background: #111;
  color: #fff;
  border-radius: 18px;
  padding: 36px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #bdbdbd;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

.header p {
  color: #d6d6d6;
  font-size: 17px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  border: 1px solid #dcdcdc;
}

.card h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.highlight {
  border: 2px solid #111;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid #d8d8d8;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: #111;
}

.btn {
  margin-top: 20px;
  border: none;
  background: #111;
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-1px);
  background: #333;
}

.btn.ghost {
  margin-top: 0;
  background: #f1f1f1;
  color: #111;
}

.btn.pdf {
  background: #111111;
}

.btn.pdf:hover {
  background: #333333;
}

.btn.delete {
  margin-top: 0;
  background: #ef4444;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 13px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin-bottom: 0;
}

.table-wrap {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #111;
  color: #fff;
  text-align: left;
  padding: 14px;
  font-size: 14px;
}

td {
  padding: 14px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 15px;
}

tr:nth-child(even) td {
  background: #fafafa;
}

.empty {
  text-align: center;
  color: #777;
  padding: 24px;
}

.summary {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 18px;
  line-height: 1.8;
  font-size: 16px;
}

.positive {
  color: #16a34a;
  font-weight: 800;
}

.negative {
  color: #dc2626;
  font-weight: 800;
}

.neutral {
  color: #444;
  font-weight: 800;
}

.help-text {
  margin: -6px 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

@media(max-width:850px) {
  .app {
    width: 92%;
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 28px;
  }

  .header h1 {
    font-size: 34px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
  }

  tr:nth-child(even) td {
    background: transparent;
  }

  td {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    font-weight: 800;
    color: #111;
  }

  .empty {
    display: block;
    text-align: center;
  }
}