* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0a0a0a; color: #e0e0e0; min-height: 100vh; }

/* Auth screen */
#auth-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
}
#auth-screen h1 { font-size: 24px; font-weight: 600; color: #fff; }
#token-input {
  width: 320px;
  padding: 10px 14px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
}
#token-input:focus { border-color: #555; }
#auth-screen button {
  padding: 8px 24px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 14px;
  cursor: pointer;
}
#auth-screen button:hover { background: #252525; }
#auth-error { color: #ef4444; font-size: 13px; display: none; }

/* App layout */
#app {
  display: none;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Header with Clip mark and gradient title */
.page-header { margin-bottom: 40px; }
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.clip-mark {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(135deg, #0CE800, #50F3E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sections */
.section { margin-bottom: 32px; }
.section-header {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a1a1a;
}
.section-count { color: #555; font-weight: 400; }
.section-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #111;
  border-radius: 6px;
  border-left: 3px solid #0CE800;
}

/* Hero item (top priority) */
.item-hero {
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
}
.item-hero .hero-priority {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
}
.item-hero .hero-id {
  color: #666;
  font-family: monospace;
  font-size: 13px;
  margin-left: 8px;
}
.item-hero .hero-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}
.item-hero .hero-title a { color: #fff; text-decoration: none; }
.item-hero .hero-title a:hover { text-decoration: underline; }
.item-hero .hero-meta { font-size: 13px; color: #666; }
.item-hero .hero-meta span { margin-right: 16px; }

/* Item list */
.item-list { list-style: none; }
.item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #111;
  font-size: 14px;
  line-height: 1.5;
}
.item:last-child { border-bottom: none; }

.item-priority {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.priority-urgent { background: #7f1d1d; color: #fca5a5; }
.priority-high { background: #78350f; color: #fcd34d; }
.priority-medium { background: #1e3a5f; color: #93c5fd; }
.priority-low { background: #1a1a1a; color: #888; }
.priority-none { background: #111; color: #555; }

.item-id {
  color: #666;
  font-family: monospace;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.item-title { flex: 1; min-width: 0; }
.item-title a { color: #e0e0e0; text-decoration: none; }
.item-title a:hover { color: #fff; text-decoration: underline; }
.item-meta {
  color: #555;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* CEO reason */
.ceo-reason {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #1a1a1a;
}
.item-reason {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.loading { color: #555; font-size: 14px; padding: 12px 0; }
.error-msg { color: #ef4444; font-size: 14px; padding: 12px 0; }
