.job-modal[hidden] { display: none; }
.job-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.job-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 34, 27, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.job-modal__dialog {
  position: relative;
  width: min(1180px, 100%);
  height: min(88vh, 780px);
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 254, 251, 0.98);
  box-shadow: 0 28px 70px rgba(1, 34, 27, 0.24);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(1, 56, 44, 0.08);
}
.job-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 125, 102, 0.12);
  border: 1px solid rgba(255, 125, 102, 0.18);
  color: #FF7D66;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.job-modal__close:hover {
  background: rgba(255, 125, 102, 0.18);
}
.job-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(1, 56, 44, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.job-modal__toolbar-start,
.job-modal__toolbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.job-modal__toolbar-start {
  flex: 1 1 auto;
  min-width: 0;
}
.job-modal__toolbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(1, 56, 44, 0.05);
  color: rgba(1, 56, 44, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.job-modal__toolbar-icon:hover {
  background: rgba(1, 56, 44, 0.08);
  color: #01382C;
}
.job-modal__toolbar-icon.is-active {
  background: #F0FDF8;
  color: #03543F;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.18);
}
.job-modal__toolbar-icon svg {
  width: 16px;
  height: 16px;
}
.job-modal__toolbar-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(1, 56, 44, 0.1);
  background: #fff;
  color: rgba(1, 56, 44, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.job-modal__toolbar-chip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.job-modal__toolbar-chip:hover {
  border-color: rgba(1, 56, 44, 0.16);
  color: #01382C;
}
.job-modal__toolbar-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.job-modal__toolbar-chip.is-active,
.job-modal__toolbar-chip--active {
  border-color: rgba(5, 150, 105, 0.2);
  background: #F0FDF8;
  color: #03543F;
}
.job-modal__toolbar-chip--active {
  cursor: pointer;
}
.job-modal__tools-view[hidden] {
  display: none;
}
.job-modal__tools-view {
  padding: 6px 0 8px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.job-modal__rail-tools {
  padding: 6px 4px 10px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.job-modal__tools-head {
  display: grid;
  gap: 4px;
}
.job-modal__tools-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(1, 56, 44, 0.4);
}
.job-modal__tools-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #01382C;
  line-height: 1.35;
}
.job-modal__tools-context {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(1, 56, 44, 0.56);
}
.job-modal__tools-grid {
  display: grid;
  gap: 10px;
}
.job-modal__tools-section {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(1, 56, 44, 0.08);
  background: rgba(244, 247, 245, 0.92);
  display: grid;
  gap: 10px;
}
.job-modal__tools-section.is-active {
  border-color: rgba(5, 150, 105, 0.18);
  background: linear-gradient(180deg, rgba(240, 253, 248, 0.84), rgba(245, 255, 249, 0.46));
}
.job-modal__rail-tools .job-modal__tools-section {
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(244, 247, 245, 0.98), rgba(251, 253, 252, 0.95));
}
.job-modal__tools-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #23433B;
  letter-spacing: 0.01em;
}
.job-modal__tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-modal__tools-link {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(1, 56, 44, 0.1);
  background: #fff;
  color: #01382C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}
.job-modal__tools-link:hover {
  border-color: rgba(5, 150, 105, 0.24);
  background: #F0FDF8;
  color: #03543F;
  transform: translateY(-1px);
}
.job-modal__tools-link--full {
  width: 100%;
  justify-content: space-between;
  padding-right: 14px;
  border-radius: 8px;
}
.job-modal__tools-link-meta {
  font-size: 0.6875rem;
  color: rgba(1, 56, 44, 0.46);
  font-weight: 500;
  margin-left: 10px;
  flex-shrink: 0;
}
.job-modal__toolbar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.14);
  color: #047857;
  font-size: 0.6875rem;
  font-weight: 700;
}
.job-modal__toolbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(1, 56, 44, 0.04);
  color: rgba(1, 56, 44, 0.58);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.job-modal__toolbar-status strong {
  color: #059669;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.job-modal__toolbar-nav {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
}
.job-modal__toolbar-nav button {
  min-width: 92px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(1, 56, 44, 0.1);
  background: #fff;
  color: rgba(1, 56, 44, 0.76);
  font-size: 0.8125rem;
  font-weight: 600;
}
.job-modal__toolbar-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.job-modal__layout {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
}
.job-modal__mobile-panel-backdrop {
  display: none;
}
.job-modal__rail {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid rgba(1, 56, 44, 0.08);
  background: #fff;
}
.job-modal__rail-head {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(1, 56, 44, 0.08);
}
.job-modal__rail-handle,
.job-modal__panel-close {
  display: none;
}
.job-modal__rail-head-top {
  display: grid;
  gap: 8px;
}
.job-modal__rail-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(1, 56, 44, 0.38);
  margin-bottom: 6px;
}
.job-modal__rail-title {
  font-size: 1rem;
  font-weight: 700;
  color: #01382C;
  margin-bottom: 6px;
}
.job-modal__rail-copy {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(1, 56, 44, 0.54);
}
.job-modal__rail-list {
  overflow: auto;
  padding: 10px 12px;
  display: grid;
  gap: 0;
  align-content: start;
}
.job-modal__rail-empty {
  margin: 12px 4px;
  padding: 18px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(1, 56, 44, 0.12);
  background: rgba(244, 247, 245, 0.92);
  display: grid;
  gap: 8px;
  color: rgba(1, 56, 44, 0.62);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.job-modal__rail-empty strong {
  color: #01382C;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.job-modal__rail-item {
  width: auto;
  margin: 0 4px;
  padding: 16px 10px;
  border-radius: 0;
  border: 1px solid transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
  border-bottom-color: rgba(1, 56, 44, 0.06);
  background: transparent;
  text-align: left;
  display: grid;
  gap: 10px;
  transition: border-color 0.15s, background 0.15s, color 0.15s, border-radius 0.15s, box-shadow 0.15s;
}
.job-modal__rail-item:first-child {
  border-top-color: rgba(1, 56, 44, 0.06);
}
.job-modal__rail-item:hover,
.job-modal__rail-item.is-active {
  border-color: rgba(5, 150, 105, 0.24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(240, 253, 248, 0.7), rgba(245, 255, 249, 0.28));
  box-shadow: 0 10px 22px -22px rgba(5, 150, 105, 0.28);
}
.job-modal__rail-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.job-modal__rail-item-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.job-modal__rail-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 -8px 16px rgba(255, 255, 255, 0.16);
}
.job-modal__rail-title-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.job-modal__rail-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #01382C;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-modal__rail-item-meta {
  font-size: 0.75rem;
  color: rgba(1, 56, 44, 0.5);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-modal__rail-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: capitalize;
}
.job-modal__rail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(1, 56, 44, 0.08);
  font-size: 0.75rem;
  color: rgba(1, 56, 44, 0.44);
}
.job-modal__detail {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 24px 26px 28px;
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(131, 230, 189, 0.16) 0%, rgba(131, 230, 189, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 252, 0.98));
}
.job-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.job-modal__empty {
  max-width: 38rem;
  padding: 18px 0 8px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.job-modal__empty[hidden],
.job-modal__detail-content[hidden] {
  display: none;
}
.job-modal__empty-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(1, 56, 44, 0.42);
}
.job-modal__empty-title {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #01382C;
}
.job-modal__empty-copy {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(1, 56, 44, 0.68);
  max-width: 34rem;
}
.job-modal__empty-action {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(1, 56, 44, 0.1);
  background: #fff;
  color: #01382C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
}
.job-modal__empty-action:hover {
  border-color: rgba(5, 150, 105, 0.18);
  background: #F0FDF8;
  color: #03543F;
}
.job-modal__identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.job-modal__logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 -8px 16px rgba(255, 255, 255, 0.12);
}
.job-modal__title {
  font-size: clamp(1.85rem, 2.1vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: #01382C;
}
.job-modal__company-line {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(1, 56, 44, 0.6);
  margin-bottom: 12px;
}
.job-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.job-modal__meta-chip,
.job-modal__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #F3F4F6;
  border: 1px solid transparent;
  color: rgba(1, 56, 44, 0.5);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.15;
}
.job-modal__external {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(1, 56, 44, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #01382C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.job-modal__external.is-active {
  border-color: rgba(5, 150, 105, 0.26);
  background: #F0FDF8;
  color: #03543F;
}
.job-modal__external svg {
  width: 18px;
  height: 18px;
}
.job-modal__section {
  padding-top: 22px;
  border-top: 1px solid rgba(1, 56, 44, 0.08);
  margin-top: 22px;
}
.job-modal__section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #23433B;
  margin-bottom: 14px;
}
.job-modal__about {
  display: grid;
  gap: 14px;
  color: rgba(1, 56, 44, 0.72);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 68ch;
}
.job-modal__list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: rgba(1, 56, 44, 0.74);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.job-modal__detail-actions[hidden] {
  display: none;
}
.job-modal__detail-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(1, 56, 44, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(1, 34, 27, 0.12);
}
.job-modal__action {
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.job-modal__action--save {
  flex: 0 0 auto;
  min-width: 132px;
  border: 1px solid rgba(1, 56, 44, 0.12);
  background: #fff;
  color: #01382C;
}
.job-modal__action--save:hover {
  border-color: rgba(1, 56, 44, 0.2);
  background: #F8FBF9;
}
.job-modal__action--save.is-active {
  border-color: rgba(5, 150, 105, 0.22);
  background: #F0FDF8;
  color: #03543F;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.08);
}
.job-modal__action--apply {
  flex: 1 1 auto;
  border: 1px solid #01382C;
  background: #01382C;
  color: #fff;
}
.job-modal__action--apply:hover {
  background: #02503F;
  border-color: #02503F;
}
.job-modal__action--apply.is-active {
  border-color: rgba(5, 150, 105, 0.24);
  background: #ECFDF5;
  color: #03543F;
}
.job-modal__mobile-nav {
  display: none;
}
.job-modal__mobile-tools {
  display: none;
}
.job-modal__actions-row {
  display: contents;
}
.job-modal__action--mark-applied,
.job-modal__action--report {
  display: none;
}
.job-modal__mobile-viewing {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 0.75rem;
  color: rgba(1, 56, 44, 0.72);
  white-space: nowrap;
}
.job-modal__mobile-viewing strong {
  font-weight: 600;
  color: rgba(1, 56, 44, 0.88);
}
@media (max-width: 1100px) {
  .job-modal__layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}
@media (max-width: 899px) {
  .job-modal {
    padding: 10px;
  }
  .job-modal__dialog {
    width: 100%;
    height: calc(100vh - 20px);
    border-radius: 18px;
  }
  .job-modal__toolbar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .job-modal__toolbar-end {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
  }
  .job-modal__toolbar-start {
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .job-modal__toolbar-start::-webkit-scrollbar {
    display: none;
  }
  .job-modal__toolbar-icon,
  .job-modal__toolbar-chip {
    flex: 0 0 auto;
  }
  .job-modal__toolbar-chip {
    min-height: 38px;
    padding: 0 12px;
  }
  .job-modal__toolbar-status {
    min-width: 0;
    justify-content: space-between;
    padding: 0 12px;
  }
  .job-modal__toolbar-nav,
  .job-modal__toolbar-status {
    display: none;
  }
  #job-modal-results-toggle {
    display: none;
  }
  .job-modal__mobile-tools {
    display: none;
  }
  .job-modal__mobile-tools.is-open {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    margin-bottom: 8px;
    padding-bottom: 2px;
  }
  .job-modal__mobile-tools::-webkit-scrollbar {
    display: none;
  }
  .job-modal__mobile-tool {
    scroll-snap-align: start;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(1, 56, 44, 0.12);
    background: #fff;
    font-size: 0.8125rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(1, 34, 27, 0.04);
  }
  .job-modal__mobile-tool-label {
    font-weight: 600;
    color: rgba(1, 56, 44, 0.88);
  }
  .job-modal__mobile-tool-link {
    color: #047857;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 2px;
  }
  .job-modal__mobile-tool-link:hover,
  .job-modal__mobile-tool-link:focus-visible {
    text-decoration: underline;
  }
  .job-modal__mobile-tool-sep {
    color: rgba(1, 56, 44, 0.28);
    font-weight: 400;
  }
  .job-modal__mobile-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
  }
  .job-modal__mobile-nav button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(1, 56, 44, 0.1);
    background: #fff;
    color: rgba(1, 56, 44, 0.76);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
  }
  .job-modal__mobile-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  .job-modal__detail-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 10006;
    box-shadow: 0 -32px 250px rgba(0, 0, 0, 0.15);
  }
  .job-modal__actions-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .job-modal__actions-row::-webkit-scrollbar {
    display: none;
  }
  .job-modal__actions-row > .job-modal__action {
    scroll-snap-align: start;
    flex: 0 0 auto;
  }
  .job-modal__action--save {
    min-width: 140px;
  }
  .job-modal__action--apply {
    min-width: 200px;
    flex: 0 0 auto;
  }
  .job-modal__action--mark-applied {
    display: inline-flex;
    min-width: 160px;
    border: 1px solid rgba(1, 56, 44, 0.12);
    background: #fff;
    color: #01382C;
  }
  .job-modal__action--mark-applied.is-active {
    border-color: rgba(5, 150, 105, 0.22);
    background: #F0FDF8;
    color: #03543F;
  }
  .job-modal__action--report {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid rgba(1, 56, 44, 0.12);
    background: #fff;
    color: rgba(1, 56, 44, 0.76);
  }
  .job-modal__close {
    grid-row: 1;
    grid-column: 2;
  }
  .job-modal__layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    position: relative;
    overflow: hidden;
  }
  .job-modal__detail {
    order: 1;
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px 16px calc(180px + env(safe-area-inset-bottom, 0px));
  }
  .job-modal__rail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: min(72%, 560px);
    border-right: none;
    border-top: 1px solid rgba(1, 56, 44, 0.08);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -22px 48px rgba(1, 34, 27, 0.16);
    transform: translateY(calc(100% + 18px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 3;
  }
  .job-modal__mobile-panel-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(180deg, rgba(1, 34, 27, 0.05), rgba(1, 34, 27, 0.22));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
  }
  .job-modal.job-modal--mobile-panel-open .job-modal__mobile-panel-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .job-modal.job-modal--mobile-panel-open .job-modal__rail {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .job-modal__rail-head {
    padding: 12px 14px 12px;
  }
  .job-modal__rail-handle {
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(1, 56, 44, 0.14);
    display: block;
    margin: 0 auto 12px;
  }
  .job-modal__rail-head-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
  }
  .job-modal__panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(1, 56, 44, 0.1);
    background: #fff;
    color: rgba(1, 56, 44, 0.72);
  }
  .job-modal__rail-copy {
    font-size: 0.75rem;
  }
  .job-modal__rail-list {
    overflow: auto;
    padding: 8px 10px 10px;
  }
  .job-modal__rail-footer {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .job-modal__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    margin-bottom: 20px;
  }
  .job-modal__identity {
    gap: 12px;
  }
  .job-modal__logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 0.75rem;
  }
  .job-modal__title {
    font-size: clamp(1.4rem, 6vw, 1.95rem);
    margin-bottom: 8px;
  }
  .job-modal__company-line {
    font-size: 0.875rem;
    margin-bottom: 10px;
  }
  .job-modal__meta {
    gap: 6px;
  }
  .job-modal__external {
    width: 40px;
    height: 40px;
    align-self: start;
  }
  .job-modal__detail-actions {
    bottom: 0;
    gap: 8px;
    margin-top: 20px;
    padding: 8px;
    margin-left: 20px;
    border-radius: 8px;
    margin-right: 20px;
    margin-bottom: 20px;
  }
}
@media (max-width: 420px) {
  .job-modal__toolbar-status {
    font-size: 0.75rem;
  }
  .job-modal__mobile-nav button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.75rem;
  }
  .job-modal__action {
    padding: 0 12px;
  }
  .job-modal__action--save {
    min-width: 104px;
  }
}
@media (max-width: 359px) {
  .job-modal__detail-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .job-modal__action--save {
    min-width: 0;
  }
}
