.jobmatch-shell {
  min-height: 100vh;
  padding: 24px 14px 48px;
  background: radial-gradient(circle at 20% 0%, #fdfcfb 0%, #f5f4f1 55%);
  font-family: Outfit, "Noto Sans TC", sans-serif;
}

.jobmatch-shell * {
  box-sizing: border-box;
}

.jobmatch-shell .screen {
  width: 100%;
  max-width: 402px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.jobmatch-shell .ui-header {
  width: 100%;
  max-width: 402px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jobmatch-shell .ui-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jobmatch-shell .logo {
  color: #1a1918;
}

.jobmatch-shell .avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #3d8a5a;
  font-weight: 700;
}

.jobmatch-shell .ui-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e9e8e5;
  box-shadow: 0 2px 12px rgba(26, 25, 24, 0.04);
}

.jobmatch-shell .ui-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.jobmatch-shell .ui-btn-primary {
  color: #fff;
  background: #3d8a5a;
}

.jobmatch-shell .ui-btn-secondary {
  color: #1a1918;
  background: #f1f3f0;
  border: 1px solid #dde3dd;
}

.jobmatch-shell .form-grid,
.jobmatch-shell form,
.jobmatch-shell label {
  display: grid;
  gap: 10px;
}

.jobmatch-shell input {
  width: 100%;
  border: 1px solid #e5e4e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.jobmatch-shell .file-drop {
  margin: 10px 0;
  padding: 20px;
  border-radius: 12px;
  border: 2px dashed #d8ddd8;
  background: #fbfbfa;
  cursor: pointer;
}

.jobmatch-shell .file-drop input {
  display: none;
}

.jobmatch-shell .muted-text {
  color: #72716f;
  margin: 4px 0;
}

.jobmatch-shell .error-text {
  color: #c82333;
  margin-top: 10px;
}

.jobmatch-shell .link-cta {
  color: #3d8a5a;
  font-weight: 600;
  text-decoration: none;
}

.jobmatch-shell .divider {
  margin: 12px 0;
  text-align: center;
  color: #9c9b99;
}

.jobmatch-shell .task-list {
  display: grid;
  gap: 10px;
}

.jobmatch-shell .queue-ticket {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.jobmatch-shell .action-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.jobmatch-shell .task-item {
  padding: 14px;
  border: 1px solid #e9e8e5;
  border-radius: 14px;
  background: #fcfcfb;
}

.jobmatch-shell .task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jobmatch-shell .status-badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 8px;
}

.jobmatch-shell .status-waiting {
  background: #f4f3f1;
  color: #6d6b67;
}

.jobmatch-shell .status-running {
  background: #e7f0ff;
  color: #2158b0;
}

.jobmatch-shell .status-completed {
  background: #e5f4ea;
  color: #1f5b36;
}

.jobmatch-shell .status-failed {
  background: #ffe8ec;
  color: #bb2740;
}

.jobmatch-shell .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jobmatch-shell .chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #dae3da;
  background: #eef4ef;
}

.jobmatch-shell .score {
  font-size: 22px;
  font-weight: 700;
  color: #1f5b36;
}

.jobmatch-shell select {
  width: 100%;
  border: 1px solid #e5e4e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
}

.jobmatch-shell .admin-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.jobmatch-shell .admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jobmatch-shell .admin-metric {
  border-radius: 14px;
  padding: 14px;
  background: #fbfbfa;
  border: 1px solid #e9e8e5;
}

.jobmatch-shell .admin-metric p {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f5b36;
}

.jobmatch-shell .member-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef4ef;
  border: 1px solid #dae3da;
  color: #1f5b36;
  margin-bottom: 12px;
}

.jobmatch-shell .option-guide {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.jobmatch-shell .option-guide-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f8f5;
  border: 1px solid #e9e8e5;
}

.jobmatch-shell .option-guide-item strong {
  display: block;
  margin-bottom: 4px;
  color: #1a1918;
}

.jobmatch-shell .segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.jobmatch-shell .segment {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #dde3dd;
  background: #f5f6f3;
  color: #4b4a47;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.jobmatch-shell .segment.is-active {
  border-color: #3d8a5a;
  background: #eaf3ec;
  color: #1f5b36;
}

.jobmatch-shell .jd-source-panel {
  display: none;
}

.jobmatch-shell .jd-source-panel.is-active {
  display: grid;
}

.jobmatch-shell #jobmatch-jd-library-list {
  display: grid;
  gap: 10px;
}

.jobmatch-shell .task-item.is-selected {
  border-color: #3d8a5a;
  background: #f2f8f4;
}
