/* Generated by Claude (claude-opus-4-6) */
/* https://claude.ai/chat */

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #dee2e6;
  --border-light: #e9ecef;
  --text: #212529;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Nav */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 48px;
}
.nav-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  text-decoration: none;
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-header h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-draft { background: #f3f4f6; color: var(--text-muted); }
.badge-pending_review { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-executing { background: #dbeafe; color: #1e40af; }
.badge-complete { background: #e0e7ff; color: #3730a3; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover {
  background: #f8f9fa;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--bg);
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}
.btn-danger {
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #fef2f2;
}

/* Forms */
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
input[type="text"],
textarea,
select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
input[type="text"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
textarea {
  resize: vertical;
  min-height: 60px;
}

/* Radio group for approval */
.radio-group {
  display: flex;
  gap: 16px;
  margin: 8px 0;
}
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  cursor: pointer;
}

/* Section cards (sprint review) */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.section-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-slug {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
}
.section-title {
  font-weight: 600;
  font-size: 14px;
}
.section-content {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}
.section-content table {
  font-size: 13px;
}
.section-content p {
  margin-bottom: 8px;
}
.section-content p:last-child {
  margin-bottom: 0;
}
.section-content ul, .section-content ol {
  margin: 8px 0;
  padding-left: 20px;
}
.section-content li {
  margin-bottom: 4px;
}
.section-content strong {
  font-weight: 600;
}

/* Mockup iframe container */
.mockup-frame {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.mockup-frame iframe {
  width: 100%;
  border: none;
  min-height: 300px;
}

/* Comments */
.comments-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.comments-area h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.comment {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.comment-body {
  flex: 1;
}
.comment-time {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}
.comment-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.comment-form input {
  flex: 1;
}

/* Approval form */
.approval-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 20px;
}
.approval-form h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Sprint header */
.sprint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.sprint-header h1 {
  font-size: 20px;
  font-weight: 600;
}
.sprint-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.filter-bar select {
  width: auto;
  min-width: 140px;
}

/* Markdown rendered content */
.markdown-body {
  font-size: 14px;
  line-height: 1.7;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}
.markdown-body h1 { font-size: 22px; }
.markdown-body h2 { font-size: 18px; }
.markdown-body h3 { font-size: 15px; }
.markdown-body pre {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
}
.markdown-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  padding: 1px 4px;
  border-radius: 3px;
}
.markdown-body pre code {
  background: none;
  padding: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state p {
  margin-bottom: 12px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 24px;
  width: 420px;
  max-width: 90vw;
}
.modal h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Utility */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.hidden { display: none; }
