body {
  margin: 0;
  min-height: 100vh;
  background: #333;
  color: #e6dfd5;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.6;
}

header {
  background: #2a2a2a;
  border-bottom: 1px solid #555;
  padding: 1rem 1.5rem 0.8rem;
  box-shadow: 0 1px 3px #000;
}

.site-title {
  text-align: left;
}

.site-title h1 {
  margin: 0;
  color: #c6974e;
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: 0;
}

.tagline {
  margin-top: 0.25rem;
  color: #b8b0a6;
  font-size: 0.96rem;
}

.kofi-widget {
  position: absolute;
  top: 24px;
  right: 24px;
}

.main-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-left,
.nav-right,
.hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.dashboard-actions {
  gap: 0.45rem;
}

#dashboard-username {
  color: #e6dfd5;
  font-size: 0.98rem;
  white-space: nowrap;
}

.main-nav a,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  box-sizing: border-box;
  padding: 0.45rem 0.9rem;
  background: #555;
  color: #e6dfd5;
  text-decoration: none;
  border: 1px solid #222;
  border-radius: 4px;
  box-shadow: inset 0 -8px 4px #232323, inset 0 8px 7px #555;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 0.94rem;
}

.main-nav .compact-nav-control,
.main-nav .account-link,
.main-nav .logout-button,
button.compact-nav-control {
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0.32rem 0.65rem;
  line-height: 1.15;
  font-size: 0.84rem;
}

.main-nav a:hover,
.main-nav a:focus,
.button-link:hover,
.button-link:focus {
  background: #c6974e;
  color: #111;
  border-color: #000;
  box-shadow: inset 2px 2px 2px #000;
}

.login-link,
.primary-action,
.app-link {
  font-weight: bold;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
}

.hero {
  margin-bottom: 1.2rem;
  padding: 1.4rem;
  background: #2a2a2a;
  border: 1px solid #555;
  box-shadow: 1px 1px 3px #000;
  text-align: left;
}

.hero h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #c6974e;
  font-size: 1.75rem;
  font-weight: normal;
}

.hero p {
  max-width: 900px;
  margin: 0;
  color: #b8b0a6;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 1.1rem;
}

button {
  margin-top: 1.1rem;
  padding: 9px 18px;
  background: #555;
  color: #e6dfd5;
  border: 1px solid #222;
  border-radius: 4px;
  box-shadow: inset 0 -8px 4px #232323, inset 0 8px 7px #555;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

button:hover,
button:focus {
  background: #c6974e;
  color: #111;
  border-color: #000;
  box-shadow: inset 2px 2px 2px #000;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.panel {
  background: #2a2a2a;
  border: 1px solid #555;
  padding: 1.15rem;
  box-shadow: 1px 1px 3px #000;
  text-align: left;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #c6974e;
  font-size: 1.25rem;
  font-weight: normal;
}

.panel p {
  margin: 0;
  color: #b8b0a6;
  line-height: 1.5;
  font-size: 0.99rem;
}

a {
  color: #c6974e;
  transition: background 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus {
  background: #c6974e;
  color: #111;
}

footer {
  margin-top: 1.8rem;
  padding: 1.1rem;
  background: #2a2a2a;
  border-top: 1px solid #555;
  color: #b8b0a6;
  text-align: center;
  font-size: 0.95rem;
}

.footer-links {
  margin-top: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#product-questions,
#general-questions,
#feature-questions,
#bug-questions,
#safety-questions,
#community-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-form label,
.login-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: #c6974e;
  font-size: 1rem;
}

.feedback-form input,
.feedback-form textarea,
.feedback-form select,
.login-form input {
  width: 100%;
  box-sizing: border-box;
  background: #333;
  color: #e6dfd5;
  border: 1px solid #555;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: inset 1px 1px 3px #000;
}

.feedback-form input:focus,
.feedback-form textarea:focus,
.feedback-form select:focus,
.login-form input:focus {
  outline: none;
  border-color: #c6974e;
}

.feedback-form textarea {
  resize: none;
  min-height: 120px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #b8b0a6;
}

.checkbox-label input {
  width: auto;
  margin: 0;
}

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem;
}

.login-panel {
  width: 100%;
  max-width: 520px;
  background: #2a2a2a;
  border: 1px solid #555;
  box-shadow: 1px 1px 3px #000;
  padding: 2rem;
}

.login-copy {
  margin-bottom: 2rem;
  text-align: center;
}

.login-copy h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #c6974e;
  font-weight: normal;
  font-size: 2rem;
}

.login-copy p,
.login-links p {
  color: #b8b0a6;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-links {
  margin-top: 2rem;
  text-align: center;
}

.login-links p {
  margin-bottom: 0.5rem;
}

.login-links a {
  color: #c6974e;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  header,
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-title h1 {
    font-size: 2rem;
  }

  .main-nav,
  .nav-left,
  .nav-right,
  .hero-actions {
    align-items: stretch;
  }

  .main-nav a,
  .button-link,
  .nav-left,
  .nav-right {
    width: 100%;
  }
}
