:root {
  --bg: #f2eee6;
  --ink: #070707;
  --muted: #615f5a;
  --line: rgba(7, 7, 7, 0.16);
  --soft-line: rgba(7, 7, 7, 0.08);
  --dark: #06080b;
  --dark-2: #101216;
  --white: #fffaf0;
  --accent: #8b5cf6;
  --accent-2: #ef3f7f;
  --success: #41c46e;
  --warn: #f6b94f;
  --radius: 8px;
  --max: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Sora", Arial, sans-serif;
  background:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  padding: 14px clamp(18px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 230, 0.88);
  backdrop-filter: blur(18px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.portal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.portal-actions span,
.portal-actions a {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.portal-actions span {
  color: var(--muted);
}

.portal-actions a:hover,
.portal-actions a.is-active {
  color: var(--white);
  background: var(--ink);
}

.portal-shell {
  width: min(var(--max), calc(100vw - clamp(32px, 8vw, 156px)));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 96px) 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero-title,
.page-title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2.8rem, 6.8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.page-title {
  font-size: clamp(2.6rem, 5vw, 5.8rem);
}

.lede {
  margin: 24px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.55rem);
  line-height: 1.35;
  font-weight: 600;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.panel.is-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.26), transparent 32%),
    var(--dark);
}

.panel-head,
.panel-body {
  padding: clamp(22px, 3vw, 42px);
}

.panel-head {
  border-bottom: 1px solid var(--line);
}

.is-dark .panel-head {
  border-color: rgba(255, 255, 255, 0.16);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 62px;
  padding: 18px 20px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.42);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button.is-secondary {
  color: var(--ink);
  background: transparent;
}

.button.is-wide {
  width: 100%;
}

.notice {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.notice.is-error {
  color: #7a1d1d;
  border-color: rgba(122, 29, 29, 0.24);
  background: rgba(255, 230, 230, 0.6);
}

.job-list,
.admin-list {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.job-card,
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.job-card:hover,
.admin-row:hover {
  border-color: var(--ink);
}

.job-card h2,
.admin-row h2,
.meta-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.job-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge {
  color: var(--white);
  background: var(--ink);
}

.badge.is-review {
  color: var(--ink);
  background: var(--warn);
  border-color: var(--warn);
}

.badge.is-complete {
  color: var(--ink);
  background: var(--success);
  border-color: var(--success);
}

.badge.is-paused {
  color: var(--ink);
  background: var(--white);
}

.progress {
  width: min(280px, 100%);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress-track {
  height: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: 46px;
}

.meta-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.meta-card {
  min-height: 136px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-card:nth-child(2n) {
  border-right: 0;
}

.meta-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.meta-card small,
.note small {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.meta-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.3;
  font-weight: 700;
}

.note-thread {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.note {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.26);
}

.note.is-admin {
  color: var(--white);
  background: var(--dark);
  border-color: var(--dark);
}

.note p {
  margin: 0;
  color: inherit;
  line-height: 1.45;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.file-list a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.check-field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--ink);
}

.danger-zone {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.button.is-danger {
  border-color: #7a1d1d;
  background: #7a1d1d;
}

.note.is-admin small {
  color: rgba(255, 250, 240, 0.68);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.empty-state {
  margin-top: 42px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
}

.empty-state p {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
}

.setup-warning {
  max-width: 860px;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .portal-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: var(--radius);
  }

  .portal-shell {
    width: min(100% - 32px, var(--max));
    padding: 42px 0;
  }

  .portal-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .meta-stack {
    grid-template-columns: 1fr;
  }

  .meta-card,
  .meta-card:nth-child(2n),
  .meta-card:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meta-card:last-child {
    border-bottom: 0;
  }

  .job-card,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .table-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .portal-actions a,
  .portal-actions span {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .hero-title,
  .page-title {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }
}

/* Refined job detail view */
.portal-header {
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.portal-brand {
  font-size: 0.88rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
}

.portal-actions span,
.portal-actions a {
  padding: 8px 13px;
  font-size: 0.88rem;
}

.hero-title,
.page-title {
  font-size: clamp(2.5rem, 5.7vw, 6.6rem);
  line-height: 0.92;
}

.page-title {
  font-size: clamp(2.35rem, 4.15vw, 4.85rem);
}

.job-title {
  max-width: 920px;
}

.job-detail-page {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.job-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 76px);
  align-items: end;
}

.job-progress-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.job-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
}

.job-summary .meta-card {
  min-height: 112px;
  border-bottom: 0;
}

.job-summary .meta-card:last-child {
  border-right: 0;
}

.updates-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
}

.documents-panel {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
}

.documents-panel .eyebrow {
  margin-bottom: 18px;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.document-list.is-compact {
  grid-template-columns: 1fr;
}

.document-list a {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.document-list a:hover {
  border-color: var(--ink);
}

.document-list span,
.document-list small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.document-list strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.updates-head {
  padding: clamp(24px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}

.updates-head .eyebrow {
  margin-bottom: 14px;
}

.updates-head h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.update-composer {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.update-composer textarea {
  min-height: 118px;
}

.composer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.composer-actions .button {
  min-width: 190px;
}

input[type="file"] {
  min-height: 54px;
  padding: 10px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.3);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.updates-panel .note-thread {
  gap: 0;
  margin-top: 0;
}

.updates-panel .note {
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 3vw, 34px);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.updates-panel .note:last-child {
  border-bottom: 0;
}

.updates-panel .note.is-admin {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.28);
}

.updates-panel .note p {
  max-width: 920px;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.5;
}

.updates-panel .note small {
  margin-bottom: 10px;
}

.image-preview {
  width: min(360px, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--dark);
}

.image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.note-delete {
  margin-top: 16px;
}

.note-delete button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.note-delete button:hover {
  background: rgba(122, 29, 29, 0.12);
}

@media (max-width: 980px) {
  .job-hero,
  .job-summary,
  .document-list {
    grid-template-columns: 1fr;
  }

  .job-progress-card {
    max-width: 420px;
  }

  .job-summary .meta-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .job-summary .meta-card:last-child {
    border-bottom: 0;
  }

  .composer-actions {
    grid-template-columns: 1fr;
  }

  .composer-actions .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero-title,
  .page-title {
    font-size: clamp(2.15rem, 11.5vw, 3.55rem);
  }
}

/* v7 portal polish */
.auth-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  min-height: calc(100vh - 210px);
}

.auth-panel {
  align-self: center;
  border-color: rgba(7, 7, 7, 0.12);
  background: rgba(255, 255, 255, 0.16);
}

.auth-panel .panel-head {
  padding: 30px clamp(24px, 3vw, 42px);
}

.auth-panel .panel-head .eyebrow {
  margin-bottom: 0;
}

.auth-panel .panel-body {
  padding: clamp(24px, 3vw, 42px);
}

.field-grid {
  align-items: end;
}

.field-grid label {
  height: 100%;
  align-content: end;
}

.button,
.portal-actions a {
  text-transform: capitalize;
}

.auth-links {
  margin: -2px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-links a {
  border-bottom: 1px solid currentColor;
}

.g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}

.job-title {
  max-width: 1120px;
  font-size: clamp(2.6rem, 5vw, 5.7rem);
}

.job-hero {
  align-items: center;
  padding-bottom: clamp(22px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.job-progress-card {
  min-width: 280px;
}

.job-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.job-side {
  display: grid;
  gap: 20px;
}

.job-summary {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}

.job-summary .meta-card,
.job-summary .meta-card:nth-last-child(-n + 2) {
  min-height: 112px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.job-summary .meta-card:last-child {
  border-bottom: 0;
}

.job-summary .meta-card p {
  font-size: 1.06rem;
}

.updates-panel {
  overflow: hidden;
}

.updates-head {
  padding: 28px clamp(22px, 3vw, 36px);
}

.updates-head h2 {
  max-width: 560px;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.05;
}

.update-composer {
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 3vw, 36px);
}

.update-composer textarea {
  min-height: 130px;
}

.note-thread {
  margin-top: 0;
}

.note-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.note-topline small,
.note small {
  margin-bottom: 0;
}

.note-delete {
  flex: 0 0 auto;
  margin: 0;
}

.note-delete button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(122, 29, 29, 0.32);
  border-radius: 999px;
  color: #7a1d1d;
  background: rgba(122, 29, 29, 0.06);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: capitalize;
}

.note.is-admin .note-delete button {
  color: #7a1d1d;
  border-color: rgba(122, 29, 29, 0.32);
  background: rgba(122, 29, 29, 0.06);
}

.note-delete button:hover {
  color: var(--white);
  border-color: #7a1d1d;
  background: #7a1d1d;
}

.file-list {
  align-items: flex-start;
}

.file-list a.image-preview,
.updates-panel .file-list a.image-preview,
.note .file-list a.image-preview {
  display: block;
  width: min(340px, 100%);
  max-width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.24);
}

.file-list a.image-preview img,
.updates-panel .file-list a.image-preview img,
.note .file-list a.image-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.note.is-admin .file-list a.image-preview {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 64px);
  background: rgba(6, 8, 11, 0.88);
}

.lightbox img {
  display: block;
  max-width: min(1120px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  background: var(--white);
}

.lightbox button {
  position: fixed;
  top: 22px;
  right: 22px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 240, 0.32);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 250, 240, 0.08);
  font-weight: 800;
  cursor: pointer;
}

body.has-lightbox {
  overflow: hidden;
}

.danger-zone {
  display: flex;
  justify-content: flex-start;
}

.button.is-danger {
  min-width: 150px;
  border-color: #8f2020;
  color: var(--white);
  background: #8f2020;
}

.settings-panel {
  max-width: 940px;
  margin-top: 42px;
}

.admin-updates-panel .panel-head {
  padding: 24px clamp(22px, 3vw, 34px);
}

.admin-documents-panel .panel-head {
  padding: 24px clamp(22px, 3vw, 34px);
}

.admin-documents-panel .panel-head .eyebrow,
.admin-updates-panel .panel-head .eyebrow {
  margin: 0;
}

.admin-documents-panel .panel-body,
.admin-updates-panel .panel-body {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
}

.admin-updates-panel textarea {
  min-height: 130px;
}

.admin-updates-panel .note-thread {
  gap: 14px;
  margin-top: 0;
}

.admin-updates-panel .compact-update-form {
  gap: 14px;
}

.admin-updates-panel .compact-update-form .button {
  width: auto;
  min-width: 190px;
  justify-self: start;
}

.admin-updates-panel input[type="file"] {
  min-height: 54px;
}

.admin-updates-panel .note {
  padding: clamp(20px, 2.3vw, 30px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.admin-updates-panel .note.is-admin {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.updates-panel .note.is-admin small,
.admin-updates-panel .note.is-admin small {
  color: var(--muted);
}

.admin-updates-panel .note p {
  max-width: 920px;
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.48;
}

.admin-updates-panel .note-topline {
  margin-bottom: 14px;
}

.admin-updates-panel .note-delete button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.82rem;
}

.admin-job-form {
  min-width: 0;
}

.admin-job-form .panel-body {
  min-width: 0;
}

.admin-job-form .form-notice {
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.admin-job-form .preview-notice {
  display: block;
  width: 100%;
  line-height: 1.45;
}

.admin-job-form .preview-notice a {
  display: inline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1180px) {
  .job-workspace {
    grid-template-columns: 1fr;
  }

  .job-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-summary .meta-card {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .job-summary .meta-card:last-child {
    border-right: 0;
  }
}

@media (max-width: 980px) {
  .auth-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-panel {
    width: min(100%, 560px);
  }

  .job-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .job-progress-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 700px) {
  .job-summary {
    grid-template-columns: 1fr;
  }

  .job-summary .meta-card,
  .job-summary .meta-card:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .job-summary .meta-card:last-child {
    border-bottom: 0;
  }

  .note-topline {
    display: grid;
  }

  .note-delete {
    justify-self: start;
  }
}
