.lp-auto {
  margin: 12px auto;
  width: 100%;
  max-width: 1200px;
  padding: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .lp-auto {
    margin: 10px auto;
  }
}
@media (max-width: 600px) {
  .lp-auto {
    margin: 6px auto;
  }
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(232, 156, 10, 0.05) 0%, rgba(91, 168, 49, 0.05) 100%);
}
@media (max-width: 768px) {
  main {
    padding: 10px;
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

.error-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.error-margin-top {
  margin-top: 18px;
}
@media (max-width: 768px) {
  .error-margin-top {
    margin-top: 12px;
  }
}
@media (max-width: 600px) {
  .error-margin-top {
    margin-top: 10px;
  }
}

.error-margin-bottom {
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .error-margin-bottom {
    margin-bottom: 12px;
  }
}
@media (max-width: 600px) {
  .error-margin-bottom {
    margin-bottom: 10px;
  }
}

.error-section {
  padding: 18px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .error-section {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .error-section {
    padding: 10px;
  }
}

.error-header {
  padding: 18px;
  background: linear-gradient(135deg, rgba(91, 168, 49, 0.1) 0%, rgba(232, 156, 10, 0.05) 100%);
  color: var(--color-text-primary);
  border: 1px solid rgba(91, 168, 49, 0.2);
  border-radius: 6px 6px 0 0;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .error-header {
    background: linear-gradient(135deg, rgba(91, 168, 49, 0.15) 0%, rgba(232, 156, 10, 0.08) 100%);
    border-color: rgba(91, 168, 49, 0.3);
  }
}
html[data-theme="dark"] .error-header {
  background: linear-gradient(135deg, rgba(91, 168, 49, 0.15) 0%, rgba(232, 156, 10, 0.08) 100%);
  border-color: rgba(91, 168, 49, 0.3);
}
@media (max-width: 768px) {
  .error-header {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .error-header {
    padding: 10px;
  }
}

.error-code-display {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0;
  color: #5ba831;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: -2px;
  line-height: 1;
}
@media (max-width: 768px) {
  .error-code-display {
    font-size: 2.5rem;
  }
}
@media (max-width: 600px) {
  .error-code-display {
    font-size: 1.75rem;
  }
}

.error-title {
  margin: 0;
  color: #5ba831;
  font-weight: 700;
  line-height: 1.2;
}

.error-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 12px 0 10px 0;
}
.error-heading:first-child {
  margin-top: 0;
}
@media (max-width: 600px) {
  .error-heading {
    font-size: 16px;
    margin-bottom: 6px;
  }
}

.error-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin: 12px 0;
}
@media (max-width: 600px) {
  .error-description {
    font-size: 13px;
    margin: 10px 0;
  }
}
.error-description strong {
  font-weight: 700;
  color: var(--color-text-primary);
}
.error-description i {
  color: var(--color-text-muted);
  font-style: italic;
  display: block;
  margin-top: 10px;
  font-size: 13px;
}

.error-content-text {
  margin: 10px 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .error-content-text {
    margin: 6px 0;
    font-size: 12px;
  }
}
.error-content-text strong {
  color: var(--color-text-primary);
  font-weight: 700;
}
.error-content-text i {
  font-style: italic;
  color: var(--color-text-muted);
  display: block;
  margin-top: 10px;
}

.error-link {
  color: #e89c0a;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(232, 156, 10, 0.3);
}
.error-link:hover {
  color: #c18208;
  text-decoration: none;
  border-bottom-color: #e89c0a;
}
.error-link:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
  border-radius: 2px;
}
.error-link:active {
  color: #ad7507;
}

.error-detail-box {
  background: var(--color-bg-body);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 18px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
@media (prefers-color-scheme: light) {
  .error-detail-box {
    background: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  .error-detail-box {
    background: #1a2332;
  }
}
html[data-theme="light"] .error-detail-box {
  background: #ffffff;
}
html[data-theme="dark"] .error-detail-box {
  background: #1a2332;
}
.error-detail-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
@media (max-width: 768px) {
  .error-detail-box {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .error-detail-box {
    padding: 10px;
    margin: 10px 0;
  }
}

.error-code-badge {
  display: inline-block;
  background: rgba(232, 156, 10, 0.1);
  color: #e89c0a;
  padding: 4px 8px;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 6px 0;
  word-break: break-all;
}
@media (max-width: 600px) {
  .error-code-badge {
    font-size: 10px;
  }
}

.error-actions-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 768px) {
  .error-actions-wrapper {
    gap: 6px;
    margin-top: 12px;
  }
}
@media (max-width: 600px) {
  .error-actions-wrapper {
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
  }
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid #e89c0a;
  border-radius: 4px;
  background: #e89c0a;
  color: #ffffff;
  font-weight: 600;
  font-family: "liberation_sansregular", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  min-height: 44px;
}
.error-btn:hover {
  background: #c18208;
  border-color: #c18208;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.error-btn:focus-visible {
  outline: 2px solid #ad7507;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .error-btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
  }
}

.error-btn-secondary {
  background: transparent;
  color: #e89c0a;
  border: 2px solid #e89c0a;
}
.error-btn-secondary:hover {
  background: rgba(232, 156, 10, 0.05);
  border-color: #c18208;
  color: #c18208;
}
.error-btn-secondary:active {
  background: rgba(232, 156, 10, 0.1);
}

.error-content-wrapper {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: var(--color-bg-body);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: light) {
  .error-content-wrapper {
    background: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  .error-content-wrapper {
    background: #1a2332;
  }
}
html[data-theme="light"] .error-content-wrapper {
  background: #ffffff;
}
html[data-theme="dark"] .error-content-wrapper {
  background: #1a2332;
}
@media (max-width: 768px) {
  .error-content-wrapper {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .error-content-wrapper {
    padding: 10px;
  }
}

@media (max-width: 1024px) {
  main {
    padding: 12px;
    min-height: 100vh;
  }
}
@media (max-width: 768px) {
  main {
    padding: 12px;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 18px;
  }

  .error-section {
    padding: 12px;
  }

  .error-code-display {
    font-size: 2.5rem;
  }

  .error-detail-box {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  main {
    min-height: auto;
    padding: 10px;
    padding-top: 70px;
    padding-bottom: 12px;
  }

  .error-section {
    padding: 10px;
  }

  .error-content-wrapper {
    padding: 10px;
  }

  .error-code-display {
    font-size: 1.75rem;
    letter-spacing: -1px;
  }

  .error-heading {
    font-size: 15px;
  }

  .error-description {
    font-size: 13px;
    line-height: 1.6;
  }

  .error-content-text {
    font-size: 12px;
    line-height: 1.5;
  }

  .error-detail-box {
    padding: 6px;
    margin: 10px 0;
  }

  .error-code-badge {
    font-size: 9px;
  }

  .error-actions-wrapper {
    flex-direction: column;
    margin-top: 10px;
  }

  .error-btn {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
  }
}
@media (prefers-color-scheme: dark) {
  main {
    background: linear-gradient(135deg, rgba(232, 156, 10, 0.03) 0%, rgba(91, 168, 49, 0.03) 100%);
  }

  .error-code-display {
    color: #81ce57;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  }
}
html[data-theme="dark"] main {
  background: linear-gradient(135deg, rgba(232, 156, 10, 0.03) 0%, rgba(91, 168, 49, 0.03) 100%);
}
html[data-theme="dark"] .error-code-display {
  color: #81ce57;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

@media print {
  main {
    min-height: auto;
    background: none;
    padding: 0;
  }

  .error-actions-wrapper,
  a[href*="mailto"] {
    display: none;
  }
}
