:root {
  --bg: #F2F4F6;
  --surface: #FFFFFF;
  --text: #20262E;
  --accent: #3B5B7D;
  --border: #D9DFE6;
  --light: #F8FAFC;
}

* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px;
}

header {
  padding: 8px 0 16px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.3px;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
#search {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--surface);
}
.search-hint {
  font-size: 12px;
  color: #677382;
  white-space: nowrap;
}

.board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 880px) {
  .board {
    overflow: visible;
  }
}

.column {
  min-width: 232px;
  flex: 0 0 auto;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
@media (max-width: 500px) {
  .column { min-width: 198px; }
}

.column-header {
  padding: 9px 12px;
  font-weight: 600;
  font-size: 13px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px 8px 0 0;
}
.column-header span {
  background: #E8EEF4;
  color: #677382;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 9px;
}

.cards {
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 140px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 13.5px;
  cursor: pointer;
  transition: box-shadow .08s, transform .08s;
}
.card:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.card strong { font-size: 14.5px; display: block; }
.card .addr { color: #556674; font-size: 12.5px; margin-top: 1px; }
.card .note {
  margin: 4px 0 3px;
  color: #4C5561;
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta {
  font-size: 11px;
  color: #8796A5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card .advance {
  padding: 1px 7px 2px;
  font-size: 13px;
  border-radius: 4px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  line-height: 1.05;
}
.card .advance:hover { opacity: 0.9; }

.empty-col {
  padding: 18px 8px;
  color: #8B96A4;
  font-size: 12.5px;
  text-align: center;
}

.btn {
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.danger {
  border-color: #C45050;
  color: #C45050;
}
.btn:hover { opacity: 0.95; }

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #fff;
  border: 1px dashed #C6CDD5;
  border-radius: 8px;
  color: #667383;
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(25, 31, 40, 0.64);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal.show { display: flex; }

.modal-content {
  width: 100%;
  max-width: 440px;
  margin: 0 14px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { margin: 0; font-size: 16.5px; font-weight: 600; }
.modal-close { font-size: 26px; background: none; border: 0; cursor: pointer; line-height: 1; }

#job-form { padding: 14px 16px; }
.field { margin-bottom: 11px; }
.field label { display: block; font-size: 12.25px; font-weight: 600; margin-bottom: 4px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  font-size: 14.5px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 68px; }
.modal-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.spacer { flex: 1; }

.toast {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #20262E;
  color: #fff;
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 6px;
  box-shadow: 0 3px 13px rgba(0,0,0,.25);
  z-index: 10000;
}