@font-face {
  font-family: 'Onsite Standard';
  src: url('./OnsiteStandard-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Onsite Standard';
  src: url('./OnsiteStandard-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

:root {
  --bg: #0b0c10;
  --card: #111317;
  --muted: #9aa3af;
  --text: #e5e7eb;
  --border: #23262c;
  --accent: #86efac;
  --warn: #fbbf24;
  --ok: #34d399;
}
* { box-sizing: border-box; }
body { margin:0; font-family: 'Onsite Standard', system-ui, -apple-system, Segoe UI, Roboto, Arial; font-weight: 400; background: var(--bg); color: var(--text); }
.wrap { max-width: 960px; margin: 32px auto; padding: 0 16px; }
header h1 { margin: 0 0 8px; font-weight: 500; }
header p { color: var(--muted); margin-top: 4px; }
h2, h3 { font-weight: 500; }

.mode-toggle {
  margin: 16px 0;
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}
.toggle-label {
  cursor: pointer;
  margin: 0;
}
.toggle-label input[type="radio"] {
  display: none;
}
.toggle-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s ease;
  font-weight: 500;
}
.toggle-label input[type="radio"]:checked + .toggle-option {
  background: var(--accent);
  color: var(--bg);
}
.toggle-icon {
  width: 16px;
  height: 16px;
}

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin: 16px 0; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
select, input, textarea {
  width: 100%; background: #0c0e13; color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
button {
  width: 100%; background: #0c0e13; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 12px;
  font-family: 'Onsite Standard', system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 500;
}
button { cursor: pointer; font-family: 'Onsite Standard', system-ui, -apple-system, Segoe UI, Roboto, Arial; font-weight: 500; }
button.ghost { background: transparent; }
button.ok { border-color: #14532d; background: #0a2e1b; }
button.warn { border-color: #7c2d12; background: #2a150b; }
.row { display: flex; gap: 8px; align-items: center; }

.dropzone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 20px; text-align: center;
}
.dropzone.drag { border-color: var(--accent); }
.link { color: var(--accent); text-decoration: underline; cursor: pointer; }

.muted { color: var(--muted); }
.preview { margin-top: 12px; color: var(--muted); font-size: 14px; white-space: pre-wrap; }
.controls { margin-top: 8px; }
.progress { height: 8px; background: #0c0e13; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: 8px 0 12px; }
.bar { height: 100%; width: 0%; background: linear-gradient(90deg, #22c55e, #86efac); transition: width .2s ease; }
.stats { color: var(--muted); }

.prospect .meta { display:flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 12px; }
.prospect #who {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.prospect #where {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.prospect textarea { margin: 12px 0; height: 140px; resize: vertical; }

.row button {
  flex: 1;
}

/* Control row specific sizing */
.controls .row label {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-right: 8px;
}
.controls .row #maxPerSession {
  flex: 0 0 80px;
  margin-right: 8px;
}
.controls .row #startBtn {
  flex: 1.2;
}
.controls .row #resetBtn,
.controls .row #exportBtn {
  flex: 1;
}

/* Prospect buttons row */
.row #copyBtn,
.row #sentBtn,
.row #skipBtn,
.row #nextBtn {
  flex: 0.4;
}
.row .linkedin-btn,
.row .outlook-btn {
  flex: 0.8 !important;
}
.linkedin-btn {
  background: #0077b5;
  border: 1px solid #0077b5;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease;
  flex: 1 !important;
}
.linkedin-btn:hover {
  background: #005582;
  border-color: #005582;
}
.linkedin-icon {
  width: 16px;
  height: 16px;
}

.outlook-btn {
  background: #0078d4;
  border: 1px solid #0078d4;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease;
  flex: 1 !important;
}
.outlook-btn:hover {
  background: #106ebe;
  border-color: #106ebe;
}
.email-icon {
  width: 16px;
  height: 16px;
}

.just-sent-message {
  text-align: center;
  color: var(--ok);
  font-weight: 500;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 14px;
}

.sent-badge {
  background: var(--ok);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

footer { margin: 20px 0; text-align: center; }

/* Login Screen Styles */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.login-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  margin: 0 16px;
  text-align: center;
}

.login-header h1 {
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--text);
}

.login-header p {
  color: var(--muted);
  margin: 0 0 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form input {
  width: 100%;
  background: #0c0e13;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-form button {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-form button:hover {
  background: #6ee7b7;
  border-color: #6ee7b7;
}

.login-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
}

.session-complete {
  text-align: center;
  padding: 24px;
  border: 2px solid var(--ok);
  border-radius: 16px;
  background: rgba(52, 211, 153, 0.1);
  margin: 16px 0;
}

.completion-message h3 {
  color: var(--ok);
  margin: 0 0 8px;
  font-weight: 500;
}

.completion-message p {
  color: var(--muted);
  margin: 0 0 20px;
}

.completion-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.completion-actions button {
  flex: 1;
}