:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --accent: #e63946;
  --text: #f5f5f5;
  --muted: #666666;
  --success: #2d9e5f;
  --warning: #f4a261;
  --error: #e63946;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #222;
}

header h1 {
  font-size: 18px;
  margin: 0;
}

#settings-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 80px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.tabbar {
  display: flex;
  border-top: 1px solid #222;
  background: var(--surface);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  padding: 12px 0;
  font-size: 14px;
}

.tab.active {
  color: var(--accent);
}

input,
textarea,
select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 16px;
}

label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

button.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  margin-right: 8px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
}

.btn-large {
  width: 100%;
  padding: 20px;
  font-size: 18px;
  margin-top: 16px;
}

.banner {
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.banner-success {
  background: rgba(45, 158, 95, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
}

.banner-error {
  background: rgba(230, 57, 70, 0.15);
  color: var(--error);
  border: 1px solid var(--error);
}

.banner-warning {
  background: rgba(244, 162, 97, 0.15);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.classification-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  background: var(--surface);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}

.flags,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pill {
  background: var(--accent);
  color: white;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
}

.tag-pill {
  background: var(--surface);
  color: var(--muted);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
}

.verification table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.verification td {
  border-bottom: 1px solid #222;
  padding: 6px 4px;
  vertical-align: top;
}

.note-item {
  padding: 12px 0;
  border-bottom: 1px solid #222;
}

.actions {
  margin-top: 16px;
}

#note-detail-content {
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
