:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --border-subtle: #e0e0e0;
  --border-soft: rgba(0, 0, 0, 0.06);
  --text-main: #111111;
  --text-muted: #6f6f6f;
  --radius: 14px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-main);
}

.top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-main);
}

.tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1.6fr) 340px;
  gap: 16px;
  align-items: flex-start;
}

.panel {
  min-height: 400px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 16px;
  margin-bottom: 12px;
}

.capture-card h1 {
  margin: 0 0 6px;
  font-size: 18px;
}

.field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.textarea,
.input,
.select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  font-size: 13px;
  margin-top: 4px;
  background: #ffffff;
  color: var(--text-main);
}

.textarea {
  resize: vertical;
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.row.bottom-row {
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.field {
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #111111;
  padding: 6px 14px;
  font-size: 12px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
}

.btn.primary {
  background: #111111;
  color: #ffffff;
}

.btn.small {
  padding: 4px 10px;
  font-size: 11px;
}

.btn.subtle {
  border-color: var(--border-subtle);
  color: var(--text-muted);
  background: #fafafa;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.status {
  font-size: 11px;
  color: var(--text-muted);
}

.status.small {
  margin-top: 4px;
}

.hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.block {
  margin-bottom: 14px;
}

.block.small {
  margin-top: 10px;
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.list-header h2 {
  font-size: 14px;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #fafafa;
  font-size: 11px;
  padding: 3px 8px;
  color: var(--text-muted);
}

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
}

.entry-item {
  padding: 8px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  margin-bottom: 4px;
  cursor: pointer;
}

.entry-item:hover {
  background: #fafafa;
}

.entry-item.active {
  border-color: #111111;
  background: #f0f0f0;
}

.entry-title {
  font-size: 13px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.muted {
  font-size: 13px;
  color: var(--text-muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-list span {
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  background: #fafafa;
}

.list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.list li + li {
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .app {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr);
  }
  .panel.left {
    display: none;
  }
}

@media (max-width: 720px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel.right {
    order: -1;
  }
}
