/* Simple Board outreach: light theme, The Simple Suite's ink and gold (gold as an accent only). */
:root {
  --bg: #f6f7f9; --card: #fff; --ink: #17202e; --ink2: #4a5566; --muted: #7a8596; --line: #e2e6ec;
  --navy: #1b2a41; --gold: #c9a227; --gold-soft: #fbf5e2; --blue: #2563c9; --green: #1f7a4d; --green-soft: #e6f4ec;
  --amber: #a15c00; --amber-soft: #fff4e0; --red: #b42318; --red-soft: #fdecea; --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; } h3 { font-size: 14px; margin: 18px 0 6px; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.badtext { color: var(--red); }

/* top bar */
.top { background: var(--navy); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 12px 20px; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; } .brand:hover { text-decoration: none; }
.brand b { display: block; font-size: 15px; } .brand small { display: block; color: #c8d1de; font-size: 12px; }
.mark { width: 34px; height: 34px; border-radius: 8px; background: var(--gold); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 13px; flex: none; }
.top-right { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-weight: 600; white-space: nowrap; }
.pill.quiet { background: rgba(255,255,255,.12); color: #fff; } .pill.warn { background: var(--red-soft); color: var(--red); }
.nav { grid-column: 1 / -1; display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.nav a, .linkish { color: #dfe6ef; background: none; border: 0; font: inherit; padding: 4px 0; cursor: pointer; border-bottom: 2px solid transparent; }
.nav a.on { color: #fff; border-bottom-color: var(--gold); } .nav a:hover, .linkish:hover { color: #fff; text-decoration: none; }
.inline { display: inline; margin: 0; }
.badge { background: var(--gold); color: var(--navy); border-radius: 99px; padding: 0 7px; font-size: 12px; font-weight: 700; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 18px 20px 60px; }
.bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select { flex: 1 1 150px; min-width: 0; }
.filters input[type=search] { flex: 2 1 240px; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37,99,201,.25); border-color: var(--blue); }
textarea { resize: vertical; line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin: 12px 0 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: #c9d0da; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); } .btn.primary:hover { background: #24395a; }
.btn.danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn.small { padding: 6px 10px; font-size: 13px; } .btn.wide { width: 100%; }

/* table (cards on phones) */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbfc; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr[data-id] { cursor: pointer; } .table tbody tr[data-id]:hover td { background: #f8fafc; }
.org b { display: block; } .org small { color: var(--muted); font-size: 12px; }
.callme { color: var(--amber); font-weight: 600; font-size: 13px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef1f5; color: var(--ink2); white-space: nowrap; }
.c-high { background: var(--green-soft); color: var(--green); } .c-medium { background: var(--amber-soft); color: var(--amber); } .c-low { background: var(--red-soft); color: var(--red); }
.s-contacted { background: #e8f0fd; color: var(--blue); } .s-demo-booked, .s-on-trial { background: var(--gold-soft); color: #7a5d00; }
.s-won { background: var(--green-soft); color: var(--green); } .s-not-a-fit { background: var(--red-soft); color: var(--red); } .s-skipped { color: var(--muted); }
.chip.due { background: var(--gold); color: var(--navy); }
.pri { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 800; font-size: 13px; background: #eef1f5; color: var(--ink2); vertical-align: middle; }
.p-A { background: var(--navy); color: #fff; } .p-B { background: #dfe6f1; color: var(--navy); }

/* editor */
.back { font-weight: 600; }
.org-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .sub { margin: 2px 0 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs a, .tabs .off { padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink2); }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); } .tabs a:hover { text-decoration: none; } .tabs .off { color: #b5bcc7; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.editor textarea#body { min-height: 420px; font-size: 14px; }
.side p { margin: 0 0 8px; color: var(--ink2); font-size: 14px; }
.side dl { margin: 8px 0 0; font-size: 14px; } .side dt { font-size: 12px; color: var(--muted); margin-top: 8px; } .side dd { margin: 0; }
.side h3:first-child { margin-top: 0; } .side .btn { margin-top: 10px; }
.banner { border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.banner.bad { background: var(--red-soft); color: var(--red); } .banner.warn { background: var(--amber-soft); color: var(--amber); } .banner.info { background: #e8f0fd; color: var(--blue); font-weight: 500; }
.attach { margin-top: 10px; font-size: 14px; color: var(--ink2); }
.clip { font-size: 11px; font-weight: 800; background: var(--red-soft); color: var(--red); padding: 2px 6px; border-radius: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.actions .btn.primary { margin-left: auto; min-width: 120px; }
.again { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; } .again input { width: auto; }
.sends { list-style: none; padding: 0; margin: 0; font-size: 13px; } .sends li { padding: 8px 0; border-top: 1px solid var(--line); } .sends li:first-child { border-top: 0; }

/* modal and toast */
.modal { position: fixed; inset: 0; background: rgba(15,23,35,.45); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal[hidden], .toast[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 12px; padding: 20px; width: 100%; max-width: 440px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-card h3 { margin: 0 0 10px; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.modal-card p { margin: 0 0 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 30; max-width: calc(100% - 32px); font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.bad { background: var(--red); }

/* sign-in */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; width: 100%; max-width: 360px; }
.login-box .brand { color: var(--ink); margin-bottom: 8px; } .login-box .brand small { color: var(--muted); }
.login-box .btn { margin-top: 14px; } .err { color: var(--red); font-size: 14px; margin: 8px 0 0; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .top { padding: 10px 14px; grid-template-columns: 1fr; position: static; }
  .top-right { justify-content: flex-start; }
  .nav { gap: 2px 14px; font-size: 13px; }
  .wrap { padding: 14px 14px 60px; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table { background: none; border: 0; }
  .table tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 0; }
  .table td { border: 0; padding: 4px 14px; display: flex; gap: 10px; align-items: baseline; }
  .table td[data-l]::before { content: attr(data-l); flex: 0 0 92px; font-size: 12px; color: var(--muted); }
  .table td.org { display: block; padding-top: 8px; } .table td.org::before { display: none; }
  .table td:not([data-l]) { padding-bottom: 10px; }
  .editor textarea#body { min-height: 360px; }
  .actions .btn.primary { margin-left: 0; width: 100%; order: 9; }
  .filters select { flex: 1 1 calc(50% - 4px); }
}
