/* Kitemill meeting poll — brand palette per GP-ADM-001 (teal/cyan family,
   same tokens as platform.kitemill.com light theme). */
:root {
  --km-dark-teal: #003d4d;
  --km-teal: #006778;
  --km-cyan: #00a5b5;
  --km-light-cyan: #5ec8d4;
  --km-sky: #a8e0e8;
  --km-black: #1a1a1a;
  --km-gray: #5a6a72;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ok: #2e8b57;
  --maybe: #d4a017;
  --no: #b33a3a;
}

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

body {
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--km-black);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--km-dark-teal);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
header .brand { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; }
header .brand-logo { height: 26px; display: block; }
header .sub { color: var(--km-sky); font-size: 0.85rem; }

.cal-links { font-size: 0.78rem; white-space: nowrap; }
.cal-links a { color: var(--km-teal); text-decoration: none; }
.cal-links a:hover { text-decoration: underline; }

td.unanswered { background: #fbeaea; outline: 2px solid var(--no); }

main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

h1 { font-size: 1.5rem; color: var(--km-dark-teal); margin-bottom: 6px; }
h2 { font-size: 1.1rem; color: var(--km-teal); margin: 22px 0 8px; }
p.meta { color: var(--km-gray); font-size: 0.9rem; margin-bottom: 16px; }

.panel {
  background: var(--panel);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 61, 77, 0.08);
  margin-bottom: 18px;
}

label { display: block; font-weight: 600; font-size: 0.85rem; margin: 12px 0 4px; color: var(--km-teal); }
input[type="text"], input[type="email"], input[type="datetime-local"], input[type="number"], textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccd6da;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--km-cyan); border-color: transparent; }

button {
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  background: var(--km-cyan);
  color: #fff;
}
button:hover { background: var(--km-teal); }
button.secondary { background: #e4eaec; color: var(--km-dark-teal); }
button.secondary:hover { background: #d2dde1; }
button.danger { background: var(--no); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.slot-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.slot-row input[type="datetime-local"] { flex: 2; min-width: 210px; }
.slot-row input[type="number"] { width: 90px; }
.slot-row .remove { background: none; color: var(--no); font-size: 1.1rem; padding: 4px 10px; }

table.votes { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.votes th, table.votes td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #e8edef; }
table.votes th { background: var(--km-sky); color: var(--km-dark-teal); font-size: 0.8rem; }
table.votes td.name, table.votes th.name { text-align: left; font-weight: 600; }
.r-yes { color: var(--ok); font-weight: 700; }
.r-maybe { color: var(--maybe); font-weight: 700; }
.r-no { color: var(--no); font-weight: 700; }
tr.totals td { font-weight: 700; border-top: 2px solid var(--km-teal); }

.vote-grid { display: grid; gap: 10px; }
.vote-slot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 14px; border: 1px solid #dfe7ea; border-radius: 8px; flex-wrap: wrap;
}
.vote-slot .when { font-weight: 600; color: var(--km-dark-teal); }
.vote-slot .choices { display: flex; gap: 4px; }
.vote-slot .choices button {
  padding: 6px 14px; background: #eef2f4; color: var(--km-gray); font-size: 0.85rem;
}
.vote-slot .choices button.sel-yes { background: var(--ok); color: #fff; }
.vote-slot .choices button.sel-maybe { background: var(--maybe); color: #fff; }
.vote-slot .choices button.sel-no { background: var(--no); color: #fff; }

.sharebox {
  background: #eef7f9; border: 1px dashed var(--km-cyan); border-radius: 8px;
  padding: 14px; font-family: ui-monospace, monospace; font-size: 0.85rem;
  word-break: break-all; margin: 8px 0;
}
.note { font-size: 0.8rem; color: var(--km-gray); }
.error { color: var(--no); font-weight: 600; margin: 10px 0; }
.success { color: var(--ok); font-weight: 600; margin: 10px 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.badge.open { background: var(--km-sky); color: var(--km-dark-teal); }
.badge.decided { background: var(--ok); color: #fff; }
.badge.closed { background: #c8d2d6; color: var(--km-black); }
.winner { outline: 3px solid var(--ok); border-radius: 8px; }

footer {
  text-align: center; padding: 18px; color: var(--km-gray); font-size: 0.75rem;
  border-top: 1px solid #e4eaec;
}
