:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --text: #1f2a33;
  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --border: #d8e1e5;
  --muted: #68737d;
  --danger-bg: #ffe5e5;
  --danger-text: #7a1d1d;
  --success-bg: #e8fbf1;
  --success-text: #115c38;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #eef4f6 0%, #f9fbfc 100%);
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.menu {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-title {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.menu-link {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.menu-link:hover {
  background: var(--accent);
  color: #fff;
}

.content {
  width: min(900px, 94vw);
  margin: 2rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem;
}

.panel-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.panel-subtitle {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.alert {
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #f4c4c4;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #bee7d1;
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.64rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background-color: var(--surface);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  cursor: pointer;
  padding-right: 2.4rem;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: var(--accent);
}

.field input[readonly] {
  background: #eef1f2;
  color: var(--muted);
  border-color: #c7d0d4;
  cursor: not-allowed;
}

.field-error {
  color: var(--danger-text);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.highlight-fill {
  background: #ffeb3b;
  color: #c1121f;
  font-weight: 700;
}

.feedback-form {
  border-top: 1px solid var(--border);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

.feedback-form .comment-field {
  margin-top: 0.8rem;
}

.feedback-form textarea {
  min-height: 140px;
  line-height: 1.5;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: var(--accent-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.35rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.empty {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 640px) {
  .content {
    margin: 1rem auto;
    padding: 1rem;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
  }
}
