* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transform-origin: top center;
}

.screen {
  display: none;
}

.screen.active {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Login Screen */
#login-screen {
  align-items: center;
  justify-content: center;
}

#login-screen .login-container {
  background: white;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  height: 1056px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#login-screen .login-content {
  background: transparent;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 300px;
}

#login-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: 100%;
  min-width: 250px;
  align-items: flex-start;
}

#password-input {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  padding: 8px 0;
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  color: #333;
  transition: border-color 0.2s;
  grid-column: 1;
}

#password-input:focus {
  outline: none;
  border-bottom-color: #333;
}

#password-input::placeholder {
  color: #999;
}

#login-form button {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 400;
  background-color: transparent;
  color: #333;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: text-decoration 0.2s;
  text-align: left;
  width: fit-content;
  grid-column: 2;
  margin-bottom: 0;
}

#login-form button:hover {
  text-decoration: underline;
}

#login-screen .error {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  color: #d32f2f;
  font-size: 14px;
  text-align: left;
  margin: 0;
  padding: 0;
  margin-top: 12px;
  min-height: 20px;
  grid-column: 1 / -1;
}

#home-screen .login-container {
  background: transparent;
  border-radius: 8px;
  padding: 40px;
  box-shadow: none;
  max-width: 400px;
  width: 90%;
  height: 1056px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#home-screen .home-content {
  background: transparent;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.greeting {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  margin-bottom: 24px;
  color: #333;
}

/* Home Screen */
#home-screen {
  align-items: center;
  justify-content: center;
}

.home-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-heading {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #999;
  margin-top: 16px;
  margin-bottom: 2px;
}

.home-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  padding: 2px 0;
  font-size: 16px;
  font-weight: 400;
  background-color: transparent;
  color: #333;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: text-decoration 0.2s;
  text-align: left;
  text-decoration: none;
}

.home-link:hover {
  background-color: transparent;
  text-decoration: underline;
}

.title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
}

.content-area .title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  margin-bottom: 0;
  border: none;
}

.back-btn {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 24px;
}

.back-btn:hover {
  color: #333;
}

/* Content Screen */
#content-screen {
  flex-direction: column;
}

.content-container {
  width: 816px;
  height: 1056px;
  margin: 0 auto;
  padding: 16px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.content-area {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background: white;
  border-radius: 8px;
  padding: 58px 67px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 12px;
  flex: 1;
}

/* Content styling */
.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1a1a1a;
}

.content-area h1 {
  font-size: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 6px;
}

.content-area h2 {
  font-size: 17px;
}

.content-area h3 {
  font-size: 15px;
}

.content-area p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  margin-bottom: 8px;
}

.content-area p + ul,
.content-area p + ol {
  margin-top: -4px;
}

.content-area ul,
.content-area ol {
  margin-left: 20px;
  margin-bottom: 8px;
}

.content-area li {
  margin-bottom: 4px;
}

.content-area code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
}

.content-area pre {
  background-color: #f5f5f5;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.content-area pre code {
  background-color: transparent;
  padding: 0;
}

.content-area blockquote {
  border-left: 4px solid #ddd;
  padding-left: 16px;
  margin-left: 0;
  margin-bottom: 16px;
  color: #666;
}

.content-area a {
  color: #0066cc;
  text-decoration: none;
}

.content-area a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .login-container {
    padding: 30px 20px;
  }

  .content-container {
    padding: 10px;
  }

  .content-area {
    padding: 24px;
  }
}
