* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  background: #0f1419;
  color: #e6e6e6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
main {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 16px;
}
header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.icon-btn {
  background: transparent;
  border: 0;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  width: auto;
}
.icon-btn:active { background: #1a1f29; }
.card {
  background: #1a1f29;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #2a2f3a;
}
.card h2 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.card-head h2 { margin: 0; }
label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #888;
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 4px;
  background: #0f1419;
  border: 1px solid #2a2f3a;
  border-radius: 10px;
  color: #e6e6e6;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #4a9eff;
}
textarea {
  margin-bottom: 12px;
  display: block;
}
button {
  width: 100%;
  padding: 14px;
  background: #2a2f3a;
  border: 0;
  border-radius: 10px;
  color: #e6e6e6;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
button.primary {
  background: #4a9eff;
  color: #0a1220;
  font-weight: 600;
}
button.secondary {
  background: transparent;
  border: 1px solid #2a2f3a;
  color: #aaa;
  margin-top: 8px;
}
button:active { opacity: 0.7; }
button:disabled { opacity: 0.4; }
.hint {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
  line-height: 1.5;
}
.hint strong { color: #aaa; }
.status {
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 18px;
}
.status.ok { color: #4ade80; }
.status.error { color: #f87171; }
.status.info { color: #60a5fa; }
.issue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid #232934;
  color: inherit;
  text-decoration: none;
}
.issue:last-child { border-bottom: 0; }
.issue:active { background: #232934; }
.issue.closed .title { text-decoration: line-through; opacity: 0.5; }
.issue .num {
  color: #888;
  font-size: 12px;
  min-width: 40px;
  font-variant-numeric: tabular-nums;
}
.issue .title {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}
.issue .state { font-size: 16px; }
.empty {
  text-align: center;
  color: #555;
  padding: 24px 0;
  font-size: 13px;
}
.link-btn {
  display: inline-block;
  padding: 12px 16px;
  background: #4a9eff;
  color: #0a1220;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}
form { margin: 0; }
.repo-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}
.repo-chips::-webkit-scrollbar { display: none; }
.repo-chip {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: transparent;
  border: 1px solid #2a2f3a;
  color: #888;
  white-space: nowrap;
  width: auto;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  flex-shrink: 0;
}
.repo-chip:active { opacity: 0.7; }
.repo-chip.active {
  background: #4a9eff;
  color: #0a1220;
  border-color: #4a9eff;
  font-weight: 600;
}
.site-link {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(74, 158, 255, 0.08);
  border: 1px solid rgba(74, 158, 255, 0.25);
  border-radius: 8px;
  font-size: 13px;
}
.site-link a {
  color: #4a9eff;
  text-decoration: none;
  display: block;
}
.site-link a:active { opacity: 0.6; }
