html,
body {
  margin: 0;
  padding: 0;
}

canvas {
  display: block;
}

:root {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #111827;
  background: #ffffff;
}

.tabs {
  display: flex;
  gap: 20px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  overflow-x: auto;
}

.tabs.is-hidden {
  display: none;
}

.tabs-visibility-toggle {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 1000;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  padding: 6px 10px;
  font-size: 0.82rem;
  line-height: 1;
  border-radius: 2px;
  cursor: pointer;
}

.tabs-visibility-toggle:hover {
  border-color: #9ca3af;
  color: #111827;
}

.tab-btn {
  padding: 8px 0;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #4b5563;
  font-weight: 400;
}

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

.tab-btn.active {
  color: #111827;
  font-weight: 500;
  border-bottom: 1.5px solid #111827;
}

.tab-btn-highlight {
  color: #7c2d12;
  font-weight: 500;
}

.tab-btn-highlight:hover {
  color: #9a3412;
}

.tab-btn-highlight.active {
  color: #9a3412;
  border-bottom-color: #9a3412;
}

.tab-content {
  display: none;
  padding: 10px 0;
}

.tab-content.active {
  display: block;
}

.welcome-template {
  max-width: 700px;
  margin: 20px auto 28px;
  padding: 0 12px;
  line-height: 1.5;
}

.welcome-template h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.welcome-profile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.welcome-photo {
  width: 120px;
  aspect-ratio: 1 / 1;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.85rem;
}

.welcome-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.welcome-copy p {
  margin: 0 0 8px;
}

.hwk-template {
  margin-top: 18px;
  padding-top: 8px;
}

.hwk-template h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.clock-template {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.clock-template h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 500;
}

.iteration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.iteration-item {
  margin: 0;
}

.iteration-item img {
  width: 100%;
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
}

.image-placeholder {
  min-height: 110px;
  border: 1px dashed #d1d5db;
  border-radius: 2px;
  background: transparent;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}

.small-note {
  color: #6b7280;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .welcome-profile {
    grid-template-columns: 1fr;
  }

  .welcome-photo {
    width: 100%;
    max-width: 140px;
  }

  .iteration-grid {
    grid-template-columns: 1fr;
  }
}

.sketch-container canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
