:root {
  --seed-black:  #041e05;
  --seed-green:  #5d9247;
  --seed-pine:   #08441e;
  --seed-mint:   #d9ead3;
  --seed-orange: #f98d13;
  --seed-navy:   #014760;
  --seed-teal:   #0c898f;
  --seed-foam:   #a2c4c9;
  --ink: #111;
  --muted: #666;
  --border: #e4e6eb;
  --bg: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; color: var(--seed-pine); }
h1 { font-size: 28px; margin: 8px 0 16px; }
h2 { font-size: 20px; margin: 24px 0 8px; }
a { color: var(--seed-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1280px; margin: 0 auto; padding: 24px; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--seed-pine); color: #fff; }
.site-header a { color: #fff; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; max-width: 1280px; margin: 0 auto; }
.site-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.site-header .brand img { height: 28px; }
.primary-nav { display: flex; gap: 18px; margin-left: 8px; flex: 1; }
.primary-nav a { opacity: .85; padding: 4px 0; border-bottom: 2px solid transparent; }
.primary-nav a.active, .primary-nav a:hover { opacity: 1; border-color: var(--seed-orange); text-decoration: none; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.user-chip img { width: 24px; height: 24px; border-radius: 50%; }
.user-chip a { font-size: 12px; opacity: .85; }

/* Buttons */
button, .btn { font: inherit; padding: 8px 14px; border: 1px solid var(--border); background: #fff; cursor: pointer; border-radius: 6px; }
button:hover { background: #f6f6f6; }
.btn-primary, button.btn-primary { background: var(--seed-pine); color: #fff; border-color: var(--seed-pine); }
.btn-primary:hover { background: var(--seed-green); border-color: var(--seed-green); color: #fff; }
.ghost, button.ghost { background: transparent; border-color: var(--border); color: var(--ink); }

/* Tables */
table.data { width: 100%; border-collapse: collapse; margin-top: 12px; }
table.data thead th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); padding: 8px 10px; }
table.data tbody td { padding: 10px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
table.data tr:hover { background: #fafbfc; }
table.data.compact td { padding: 6px 8px; font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 24px; }

/* Pills */
.pill { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 999px; background: #eee; }
.pill.green { background: #cdebd0; color: #064e1c; }
.pill.yellow { background: #fff2cf; color: #6a4d00; }
.pill.red { background: #ffd9d9; color: #7c1f1f; }
.pill.gray { background: #eaeaea; color: #555; }

/* Filters / page head */
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 20px; }
.filters input, .filters select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; min-width: 180px; font: inherit; }
.legend { display: flex; gap: 8px; margin-bottom: 12px; }

/* Misc */
.back { display: inline-block; margin: 8px 0 12px; color: var(--seed-navy); }
.bar { width: 200px; height: 8px; background: var(--seed-foam); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--seed-green); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 16px; }
@media (max-width: 1080px) { .grid-3 { grid-template-columns: 1fr; } }
.comm-list { list-style: none; padding: 0; margin: 0; }
.comm-list li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.comm-list .meta { font-size: 11px; color: var(--muted); }
.comm-list .subject { font-weight: 500; }
.body { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; line-height: 1.5; background: #f7f8fa; padding: 12px; border-radius: 6px; }
.transcript { max-height: 600px; overflow: auto; }
.card { border: 1px solid var(--border); padding: 18px; border-radius: 8px; margin: 16px 0; }
.success { color: #064e1c; }
.error { color: #7c1f1f; }
.actions-row { display: flex; gap: 10px; margin: 12px 0; }
.inline-form { display: flex; gap: 6px; align-items: center; }

/* Login */
.login-shell { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--seed-mint); }
.login-card { background: #fff; padding: 40px; border-radius: 10px; min-width: 360px; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.login-card .login-logo { height: 48px; margin-bottom: 12px; }
.login-card h1 { color: var(--seed-pine); margin: 8px 0; }
.login-card .btn { display: inline-block; margin-top: 14px; }
