.auth-page {
  padding: 140px 15px 100px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 86, 95, 0.12);
  padding: 36px 32px;
}

.auth-title {
  color: #00565F;
  font-size: 28px;
  margin-bottom: 6px;
}

.auth-subtitle {
  color: #8B8B8B;
  margin-bottom: 24px;
}

.auth-card label {
  color: #131313;
  font-weight: 500;
  margin-bottom: 6px;
}

.auth-card .form-control {
  border-radius: 10px;
  padding: 12px 14px;
}

.auth-card .form-control:focus {
  border-color: #00565F;
  box-shadow: 0 0 0 3px rgba(0, 86, 95, 0.15);
}

.auth-btn {
  background: #00565F;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  margin-top: 8px;
  padding: 12px;
}

.auth-btn:hover,
.auth-btn:focus {
  background: #00434a;
  color: #fff;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
}

.auth-switch a {
  color: #00565F;
  font-weight: 600;
}

.auth-limit {
  background: #FFF4E5;
  border: 1px solid #FFA03A;
  border-radius: 10px;
  color: #7a4a00;
}

.nav-logout-form {
  display: inline;
}

.nav-logout-form button,
.nav-logout-form input[type="submit"] {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.main_menu .nav-logout-form input[type="submit"] {
  color: #131313;
  font-size: 16px;
  font-weight: 500;
  padding: 40px 10px;
}

.quota-hint {
  color: #8B8B8B;
  font-size: 14px;
  margin-top: 12px;
}

.quota-hint a {
  color: #00565F;
  font-weight: 600;
}

.history-page {
  padding: 140px 15px 100px;
  max-width: 860px;
}

.history-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.history-header .auth-btn {
  margin-top: 0;
  padding: 10px 18px;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-list li {
  margin-bottom: 12px;
}

.history-item {
  background: #fff;
  border: 1px solid #e6eeee;
  border-radius: 12px;
  color: #131313;
  display: block;
  padding: 16px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.history-item:hover {
  border-color: #00565F;
  box-shadow: 0 6px 20px rgba(0, 86, 95, 0.1);
  color: #131313;
}

.history-meta {
  color: #8B8B8B;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.history-meta i {
  color: #00565F;
  margin-right: 6px;
}

.history-pending {
  background: #FFF4E5;
  border-radius: 6px;
  color: #7a4a00;
  margin-left: 8px;
  padding: 1px 8px;
}

.history-question {
  display: block;
  font-weight: 500;
}

.history-pager {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.history-pager a,
.conversation-parent a,
.conversation-followups a {
  color: #00565F;
  font-weight: 600;
}

.conversation-parent {
  background: #f1f7f7;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
}

.conversation-box {
  background: #f7fafa;
  border: 1px solid #e6eeee;
  border-radius: 14px;
  margin: 30px 0 10px;
  padding: 20px;
}

.conversation-followups h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.conversation-followups ul {
  margin-bottom: 18px;
  padding-left: 18px;
}

.conversation-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.conversation-form textarea {
  border: 1px solid #cfdcdc;
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.conversation-form textarea:focus {
  border-color: #00565F;
  box-shadow: 0 0 0 3px rgba(0, 86, 95, 0.15);
  outline: none;
}

.conversation-form .auth-btn {
  padding: 10px 22px;
}

.conversation-link {
  align-items: center;
  border-top: 1px solid #e6eeee;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
}

.conversation-copy {
  background: #fff;
  border: 1px solid #00565F;
  border-radius: 10px;
  color: #00565F;
  font-weight: 600;
  padding: 8px 14px;
}

.conversation-copy:hover {
  background: #00565F;
  color: #fff;
}

.conversation-note {
  color: #8B8B8B;
  font-size: 13px;
}

.subject-page {
  max-width: 980px;
  padding: 140px 15px 80px;
}

.subject-hero {
  margin-bottom: 50px;
  text-align: center;
}

.subject-hero h1 {
  color: #00565F;
  font-size: 40px;
  margin-bottom: 16px;
}

.subject-intro {
  color: #444;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto 26px;
  max-width: 720px;
}

.subject-cta {
  font-size: 17px;
  padding: 14px 30px;
}

.subject-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 50px;
}

.subject-step {
  background: #fff;
  border: 1px solid #e6eeee;
  border-radius: 14px;
  padding: 22px;
}

.subject-step span {
  background: #00565F;
  border-radius: 50%;
  color: #fff;
  display: inline-block;
  font-weight: 700;
  height: 32px;
  line-height: 32px;
  margin-bottom: 10px;
  text-align: center;
  width: 32px;
}

.subject-step h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.subject-columns {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 50px;
}

.subject-page h2 {
  color: #00565F;
  font-size: 24px;
  margin-bottom: 14px;
}

.subject-page ul {
  padding-left: 20px;
}

.subject-page li {
  line-height: 1.8;
}

.subject-examples li {
  font-style: italic;
}

.subject-faq {
  margin-bottom: 40px;
}

.subject-faq h3 {
  font-size: 18px;
  margin: 18px 0 6px;
}

.subject-more a {
  color: #00565F;
  display: inline-block;
  font-weight: 600;
  margin-right: 18px;
}

.footer-solvers a {
  color: inherit;
  margin: 0 8px;
}
