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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

header {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f0f6fc;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
}

.tagline {
  font-size: 1.1rem;
  color: #8b949e;
  margin-top: 0.5rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.code-block {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.code-block pre {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.8;
}

.prompt {
  color: #7ee787;
}

.comment {
  color: #8b949e;
}

.features {
  margin-top: 2.5rem;
}

.features ul {
  list-style: none;
  padding: 0;
}

.features li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.features li::before {
  content: "\2022";
  color: #7ee787;
  position: absolute;
  left: 0;
}

.about {
  margin-top: 2.5rem;
  color: #8b949e;
  font-size: 0.9rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #21262d;
  font-size: 0.875rem;
  color: #8b949e;
}

footer a {
  color: #58a6ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #30363d;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b949e;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
  color: #c9d1d9;
}

.tab-btn.active {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

/* Outlook grid */
.outlook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.outlook-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.outlook-card:hover {
  border-color: #58a6ff;
}

.outlook-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outlook-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.outlook-placeholder {
  color: #8b949e;
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 0.5rem;
}

/* Detail view */
.outlook-detail h3 {
  color: #f0f6fc;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-back,
.detail-prev,
.detail-next {
  background: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.detail-back:hover,
.detail-prev:hover,
.detail-next:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

.detail-prev:disabled,
.detail-next:disabled {
  opacity: 0.3;
  cursor: default;
  border-color: #30363d;
  color: #8b949e;
}

.detail-arrows {
  display: flex;
  gap: 0.5rem;
}

.detail-title {
  color: #f0f6fc;
  margin-bottom: 1rem;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.detail-images.detail-images-multi {
  grid-template-columns: repeat(2, 1fr);
}

.detail-img-wrap {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.75rem;
}

.detail-img-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b949e;
  margin-bottom: 0.5rem;
}

.detail-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.detail-img-wrap a {
  display: block;
}

.detail-discussion {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #c9d1d9;
  background: #161b22;
  border-left: 3px solid #30363d;
  padding: 1rem 1.25rem;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
  .outlook-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-images {
    grid-template-columns: 1fr;
  }
  .detail-images.detail-images-multi {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .outlook-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 0;
  }
  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
  }
}
