:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d1d5db;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --success-bg: #ecfdf5;
  --success-text: #166534;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #edf3fb 0%, var(--bg) 100%);
  color: var(--text);
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px 64px;
}
.hero { margin-bottom: 20px; }
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.hero .subtle {
  margin-top: 8px;
  font-size: 0.95rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  border: 1px solid rgba(209, 213, 219, 0.7);
}
.card-small {
  max-width: 520px;
  margin: 0 auto;
}
.section + .section { margin-top: 26px; }
.section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.grid, .grid-3 {
  display: grid;
  gap: 16px;
}
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1 / -1; }
label {
  font-weight: 600;
  font-size: 0.95rem;
}
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}
select optgroup {
  font-style: normal;
  font-weight: 600;
}
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
textarea {
  min-height: 108px;
  resize: vertical;
}
.position-card {
  padding: 18px;
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 16px;
  background: #fbfdff;
}
.position-card + .position-card { margin-top: 16px; }
.position-card.is-hidden { display: none; }
.position-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}
.actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.actions-left { justify-content: flex-start; }
.actions-right { justify-content: flex-end; }
.compact-top { margin-top: 12px; }
.logout-row {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(209, 213, 219, 0.8);
}
.logout-link {
  color: #6b7280;
  text-decoration: underline;
}
.hint {
  color: var(--muted);
  font-size: 0.92rem;
}
.optional-toggle {
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: none;
  background: #e6fffb;
  color: #115e59;
}
.optional-toggle:hover { background: #ccfbf1; }
.optional-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(209, 213, 219, 0.9);
}
.attachments-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 12px;
  background: #fbfdff;
}
.attachment-name {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.attachment-meta {
  color: var(--muted);
  font-size: 0.88rem;
}
.attachment-remove {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1;
}
.attachment-remove:hover { background: #b91c1c; }
button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}
button:hover { background: var(--accent-dark); }
.alert {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.45;
}
.alert ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #fecaca;
}
.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #bbf7d0;
}
.honeypot { display: none !important; }
a { color: #0f766e; }
@media (max-width: 840px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .wrap { padding: 22px 14px 40px; }
  .logout-row {
    margin-top: 22px;
    padding-top: 16px;
  }
  input[type="date"] {
    font-size: 16px;
    letter-spacing: -0.02em;
    padding-inline: 10px;
  }
}
