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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f5f4;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ── Password overlay ─────────────────────────────────────────────────────── */
.pw-overlay {
  position: fixed;
  inset: 0;
  background: #1E2B20;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pw-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pw-logo {
  height: 50px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.pw-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1E2B20;
}

.pw-card input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.pw-card input:focus { border-color: #9AE66E; }

.pw-card button {
  width: 100%;
  padding: 13px;
  background: #1E2B20;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pw-card button:hover { background: #2d4030; }

.pw-error {
  color: #e74c3c;
  font-size: 0.85rem;
  min-height: 18px;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.co-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.co-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0 32px;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 32px;
}

.co-logo { height: 48px; object-fit: contain; }

/* Tabs */
.co-tabs {
  display: flex;
  gap: 6px;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 4px;
}

.co-tab {
  padding: 8px 20px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.co-tab.is-active {
  background: #1E2B20;
  color: #fff;
}

.co-preview-btn {
  padding: 8px 18px;
  background: transparent;
  border: 2px solid #1E2B20;
  border-radius: 50px;
  color: #1E2B20;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.co-preview-btn:hover {
  background: #1E2B20;
  color: #fff;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.co-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.co-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1E2B20;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Fields ───────────────────────────────────────────────────────────────── */
.co-field {
  margin-bottom: 16px;
}

.co-field:last-child { margin-bottom: 0; }

.co-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.co-field input,
.co-field select,
.co-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
  border-color: #9AE66E;
  background: #fff;
}

.co-field textarea { resize: vertical; min-height: 120px; }

.co-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Toggle ───────────────────────────────────────────────────────────────── */
.co-field--toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.co-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.co-toggle input { opacity: 0; width: 0; height: 0; }

.co-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: background 0.2s;
}

.co-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.co-toggle input:checked + .co-toggle-slider { background: #9AE66E; }
.co-toggle input:checked + .co-toggle-slider::before { transform: translateX(24px); }

/* ── Image upload ─────────────────────────────────────────────────────────── */
.co-image-upload { position: relative; }

.co-image-placeholder {
  border: 2px dashed #d0d0d0;
  border-radius: 12px;
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
}

.co-image-placeholder:hover {
  border-color: #9AE66E;
  background: #f5fff0;
}

.co-upload-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }

.co-image-placeholder p {
  color: #888;
  font-size: 0.9rem;
}

.co-image-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.co-change-img {
  margin-top: 10px;
  padding: 8px 18px;
  border: 2px solid #1E2B20;
  border-radius: 50px;
  background: transparent;
  color: #1E2B20;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.co-change-img:hover { background: #1E2B20; color: #fff; }

/* ── Actions ──────────────────────────────────────────────────────────────── */
.co-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.co-note {
  font-size: 0.85rem;
  color: #888;
  flex: 1;
}

.co-submit {
  padding: 14px 36px;
  background: #9AE66E;
  color: #1E2B20;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.co-submit:hover { background: #86d45a; transform: translateY(-2px); }
.co-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.co-delete {
  padding: 14px 24px;
  background: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.co-delete:hover { background: #e74c3c; color: #fff; }
.co-delete:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Success ──────────────────────────────────────────────────────────────── */
.co-success {
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-top: 20px;
}

.co-success-icon { font-size: 3rem; margin-bottom: 16px; }

.co-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1E2B20;
  margin-bottom: 8px;
}

.co-success p { color: #666; margin-bottom: 28px; }

.co-success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.co-success-actions button,
.co-success-actions a {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.co-success-actions button {
  background: #1E2B20;
  color: #fff;
  border: none;
}

.co-success-actions button:hover { background: #2d4030; }

.co-success-actions a {
  background: #9AE66E;
  color: #1E2B20;
  border: none;
}

.co-success-actions a:hover { background: #86d45a; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .co-row { grid-template-columns: 1fr; }
  .co-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .co-header { flex-wrap: wrap; }
}

/* Vacancy picker */
.co-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.co-picker-loading,
.co-picker-empty {
  text-align: center;
  padding: 30px;
  color: #888;
  font-size: 0.9rem;
}

.co-pick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}

.co-pick-card:hover {
  border-color: #9AE66E;
  background: #f5fff0;
}

.co-pick-card.selected {
  border-color: #1E2B20;
  background: #f0f4f1;
}

.co-pick-card--off {
  opacity: 0.6;
}

.co-pick-status {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.co-pick-status.on  { color: #27ae60; }
.co-pick-status.off { color: #e74c3c; }

.co-pick-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1E2B20;
  margin: 0;
}

.co-pick-meta {
  font-size: 0.8rem;
  color: #888;
  margin: 2px 0 0;
}

.co-pick-arrow {
  font-size: 1.4rem;
  color: #ccc;
  transition: color 0.2s;
}

.co-pick-card:hover .co-pick-arrow,
.co-pick-card.selected .co-pick-arrow {
  color: #1E2B20;
}
