:root {
  color: #16211f;
  background: #f5f7f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(23, 54, 47, 0.08), rgba(245, 247, 244, 0) 260px),
    #f5f7f4;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #68736b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: #17362f;
  font-size: 2.5rem;
  line-height: 1;
}

h2 {
  color: #17231f;
  font-size: 1.1rem;
  line-height: 1.25;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(23, 54, 47, 0.18);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
}

.panel {
  min-width: 0;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(23, 54, 47, 0.08);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.save-state {
  flex: 0 0 auto;
  color: #67716b;
  font-size: 0.82rem;
}

.notes-panel textarea {
  display: block;
  width: calc(100% - 36px);
  min-height: 52vh;
  margin: 0 18px 18px;
  padding: 16px;
  resize: vertical;
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  outline: none;
  background: #fbfcfa;
  color: #17231f;
}

.notes-panel textarea:focus,
input:focus,
.feedback-modal textarea:focus {
  border-color: #2f7d68;
  box-shadow: 0 0 0 3px rgba(47, 125, 104, 0.15);
}

.status-panel {
  align-self: start;
  padding: 18px;
}

.status-grid {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.status-grid div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid #e1e6e0;
}

.status-grid dt {
  color: #68736b;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #18251f;
  font-weight: 700;
}

.feedback-button,
.primary-button,
.secondary-button,
.icon-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.feedback-button,
.primary-button {
  background: #17362f;
  color: #ffffff;
}

.feedback-button {
  padding: 0 18px;
}

.secondary-button,
.icon-button {
  background: #ffffff;
  color: #17362f;
  border-color: #cfd7d0;
}

.primary-button,
.secondary-button {
  padding: 0 16px;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 27, 24, 0.5);
  z-index: 20;
}

.modal-backdrop[hidden] {
  display: none;
}

.feedback-modal {
  position: relative;
  width: min(560px, 100%);
  border-radius: 8px;
  border: 1px solid #d5ddd5;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(18, 27, 24, 0.28);
  padding: 20px;
}

.modal-build {
  position: absolute;
  top: 10px;
  right: 14px;
  color: #748079;
  font-size: 0.72rem;
  font-weight: 800;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding-right: 44px;
}

.feedback-modal form {
  display: grid;
  gap: 14px;
}

.feedback-modal label {
  display: grid;
  gap: 7px;
  color: #26302b;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
.feedback-modal textarea {
  width: 100%;
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  background: #fbfcfa;
  color: #17231f;
  outline: none;
  padding: 11px 12px;
}

.feedback-modal textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #6d3c19;
  font-size: 0.9rem;
}

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

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 2rem;
  }

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

  .feedback-button {
    width: 100%;
  }

  .notes-panel textarea {
    min-height: 46vh;
  }
}
