:root {
  --ink: #20304a;
  --muted: #68768e;
  --muted-2: #8793a7;
  --paper: #f4f8ff;
  --card: #ffffff;
  --blue: #4d86ee;
  --blue-deep: #2f6fd8;
  --blue-soft: #e9f2ff;
  --purple: #8069dc;
  --purple-soft: #f0edff;
  --coral: #f17d66;
  --coral-soft: #fff0ec;
  --yellow: #dfaa27;
  --yellow-soft: #fff7db;
  --green: #3a9b75;
  --green-soft: #e9f8f1;
  --danger: #c84c68;
  --danger-soft: #fff0f3;
  --line: #dce6f5;
  --line-strong: #ccd9ec;
  --radius: 18px;
  --shadow: 0 18px 54px rgba(65, 98, 151, 0.1);
}

/* Private account shell and cloud editing controls */
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(250, 204, 21, 0.26), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(56, 189, 248, 0.25), transparent 34%),
    var(--color-background, #fffbeb);
}

.login-card {
  width: min(100%, 520px);
  padding: 36px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(30, 64, 175, 0.14);
}

.login-brand {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}

.login-card h1 {
  margin: 8px 0 10px;
  color: var(--color-text, #0f172a);
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.2;
}

.login-card > p,
.login-note {
  color: var(--color-text-secondary, #475569);
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 24px;
  padding: 5px;
  border: 1px solid var(--color-border, #d6e4f0);
  border-radius: 14px;
  background: var(--color-primary-soft, #e9f2ff);
}

.auth-mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-secondary, #475569);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-mode-switch button[aria-selected="true"] {
  background: #fff;
  color: var(--color-primary, #1d4ed8);
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.12);
}

.login-form label,
.editor-form label {
  display: grid;
  gap: 7px;
  color: var(--color-text-secondary, #475569);
  font-weight: 700;
  font-size: 14px;
}

.login-form input,
.editor-form input,
.editor-form select,
.editor-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--color-border, #d6e4f0);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text, #0f172a);
  font: inherit;
  font-weight: 500;
}

.login-form input {
  font-size: 16px;
}

.editor-form textarea {
  resize: vertical;
}

.login-form input:focus,
.editor-form input:focus,
.editor-form select:focus,
.editor-form textarea:focus {
  outline: 3px solid rgba(29, 78, 216, 0.22);
  border-color: var(--color-primary, #1d4ed8);
}

.password-field {
  position: relative;
  display: block;
}

.verification-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.verification-field button {
  min-width: 116px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--color-border, #d6e4f0);
  border-radius: 10px;
  background: var(--color-primary-soft, #e9f2ff);
  color: var(--color-primary, #1d4ed8);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.verification-field button:disabled,
.auth-mode-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.password-field input {
  padding-right: 72px;
}

.password-field button {
  position: absolute;
  top: 2px;
  right: 5px;
  min-width: 58px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary-soft, #dbeafe);
  color: var(--color-primary, #1d4ed8);
  font-weight: 800;
  cursor: pointer;
}

.login-button {
  width: 100%;
  min-height: 48px;
}

.auth-support-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.auth-text-button {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--color-primary, #1d4ed8);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.auth-text-button:hover {
  color: var(--color-primary-hover, #1e40af);
}

.auth-text-button:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.24);
  outline-offset: 3px;
  border-radius: 6px;
}

.login-note {
  margin: 20px 0 0;
  font-size: 13px;
}

.auth-disclaimer {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border, #d6e4f0);
  color: var(--color-text-tertiary, #64748b);
  font-size: 12px;
  line-height: 1.6;
}

.auth-help,
.auth-inline-status {
  margin: -6px 0 0;
  color: var(--color-text-secondary, #475569);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.auth-inline-status {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--green-soft, #e9f8f1);
  color: #166534;
}

.field-error {
  margin: -8px 0 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.login-form input[aria-invalid="true"],
.editor-form input[aria-invalid="true"] {
  border-color: #dc2626;
  background: #fff7f7;
}

.login-form input[aria-invalid="true"]:focus,
.editor-form input[aria-invalid="true"]:focus {
  outline-color: rgba(220, 38, 38, 0.24);
}

@media (max-width: 560px) {
  .auth-gate {
    align-items: start;
    padding: 18px 12px;
  }

  .login-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .verification-field {
    grid-template-columns: 1fr;
  }

  .verification-field button {
    width: 100%;
  }
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
}

.account-actions,
.management-toolbar,
.management-toolbar > div,
.job-management-actions,
.company-management-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-state {
  color: var(--color-text-secondary, #475569);
  font-size: 13px;
  font-weight: 700;
}

.header-button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--color-border, #d6e4f0);
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary, #1d4ed8);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.danger-text {
  color: #b91c1c;
}

.management-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 24px rgba(30, 64, 175, 0.06);
}

.button.danger {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.editor-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(15, 23, 42, 0.28);
}

.wide-dialog {
  width: min(980px, calc(100vw - 32px));
}

.compact-dialog {
  width: min(620px, calc(100vw - 32px));
}

.editor-dialog::backdrop {
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(4px);
}

.editor-form {
  max-height: inherit;
  overflow: auto;
  padding: 24px;
}

.editor-form > header,
.editor-form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-form > header {
  margin-bottom: 22px;
}

.editor-form > header h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.editor-form > footer {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 22px;
}

.dialog-description {
  margin: -4px 0 20px;
  color: var(--color-text-secondary, #475569);
  font-size: 14px;
  line-height: 1.65;
}

.dialog-field-stack {
  display: grid;
  gap: 16px;
}

.auth-dialog-form .auth-help {
  margin-top: -8px;
}

.auth-dialog-form input {
  font-size: 16px;
}

.import-steps {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 24px;
  color: var(--color-text-secondary, #475569);
  font-size: 14px;
  line-height: 1.65;
}

.import-steps li::marker {
  color: var(--color-primary, #1d4ed8);
  font-weight: 800;
}

.import-warning {
  margin: 20px 0 0;
  padding: 13px 14px;
  border: 1px solid #f2cf72;
  border-radius: 12px;
  background: #fffbeb;
  color: #713f12;
  font-size: 13px;
  line-height: 1.65;
}

.dialog-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary-soft, #dbeafe);
  color: var(--color-primary, #1d4ed8);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

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

.form-span,
.form-span-two {
  grid-column: span 2;
}

.form-span-three {
  grid-column: span 3;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  align-self: end;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--color-border, #d6e4f0);
  border-radius: 10px;
  background: var(--color-surface-subtle, #f8fafc);
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.timeline-editor {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.timeline-editor h3 {
  margin: 0 0 10px;
}

.timeline-editor ol {
  margin: 0;
  padding-left: 22px;
}

.editor-form .form-grid label > small,
.progress-time-field small {
  display: block;
  margin-top: 6px;
  color: var(--color-text-tertiary, #64748b);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.job-management-actions,
.company-management-actions {
  flex-wrap: wrap;
  margin-top: 10px;
}

.manage-button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--color-border, #d6e4f0);
  border-radius: 9px;
  background: #fff;
  color: var(--color-primary, #1d4ed8);
  font-weight: 800;
  cursor: pointer;
}

.archived-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  font-weight: 700;
}

@media (max-width: 800px) {
  .account-actions .sync-state {
    display: none;
  }

  .header-button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }

  .management-toolbar,
  .management-toolbar > div {
    width: 100%;
  }

  .management-toolbar > div .button {
    flex: 1;
  }

  .form-grid,
  .form-grid.three-columns {
    grid-template-columns: 1fr;
  }

  .form-span,
  .form-span-two,
  .form-span-three {
    grid-column: auto;
  }

  .editor-form {
    padding: 20px 16px;
  }
}

@media (max-width: 520px) {
  .login-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .account-actions {
    gap: 4px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 2%, rgba(128, 105, 220, 0.08), transparent 24rem),
    radial-gradient(circle at 96% 5%, rgba(77, 134, 238, 0.12), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--blue-deep);
  font-size: 13px;
  font-weight: 750;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid rgba(47, 111, 216, 0.32);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(207, 220, 239, 0.86);
  background: rgba(250, 252, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1380px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #79a7f8);
  box-shadow: 0 10px 24px rgba(77, 134, 238, 0.28);
  font: 800 15px/1 Georgia, "Times New Roman", serif;
  transform: rotate(-4deg);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.primary-nav a {
  min-width: 86px;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-nav a:hover {
  color: var(--ink);
  background: var(--blue-soft);
}

.primary-nav a[aria-current="page"] {
  color: white;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(77, 134, 238, 0.24);
}

.readonly-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #cfe7dd;
  border-radius: 999px;
  color: #2c7d5e;
  background: rgba(238, 250, 245, 0.82);
  font-size: 11px;
  font-weight: 750;
}

.readonly-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(58, 155, 117, 0.12);
}

.page-shell {
  width: min(1380px, calc(100% - 48px));
  min-height: calc(100vh - 157px);
  margin: 0 auto;
  padding: 38px 0 70px;
}

.loading-state {
  min-height: 56vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 13px;
}

.loading-state p {
  margin: 0;
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid #d8e5f6;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.state-panel {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 42px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.state-panel > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--danger);
  background: var(--danger-soft);
  font: 800 24px/1 Georgia, serif;
}

.state-panel h1 {
  margin: 20px 0 8px;
  font-size: 25px;
}

.state-panel p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(38px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid #d5e3f6;
  border-radius: 26px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0 48%, rgba(234, 243, 255, 0.94) 76%, rgba(242, 238, 255, 0.96) 100%);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  left: -160px;
  bottom: -210px;
  border: 50px solid rgba(241, 125, 102, 0.12);
}

.hero::after {
  width: 150px;
  height: 150px;
  right: 28%;
  top: -110px;
  border: 34px solid rgba(223, 170, 39, 0.12);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.eyebrow {
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.eyebrow.purple {
  color: var(--purple);
}

.eyebrow.coral {
  color: var(--coral);
}

.eyebrow.yellow {
  color: #b77d00;
}

.hero h1 {
  margin: 17px 0 20px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(38px, 4.6vw, 65px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--blue-deep);
  font-weight: inherit;
  font-style: normal;
}

.hero-copy > p:not(.snapshot-time) {
  max-width: 580px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

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

.button.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(77, 134, 238, 0.25);
}

.button.primary:hover {
  background: var(--blue-deep);
}

.button.ghost,
.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
}

.button.ghost:hover,
.button.secondary:hover {
  background: var(--blue-soft);
}

.snapshot-time {
  margin: 19px 0 0;
  color: var(--muted-2);
  font-size: 10px;
}

.radar {
  position: relative;
  flex: 0 0 auto;
  width: clamp(235px, 23vw, 310px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 1px solid rgba(77, 134, 238, 0.28);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.38);
  text-align: center;
  box-shadow:
    inset 0 0 60px rgba(77, 134, 238, 0.09),
    0 24px 60px rgba(77, 134, 238, 0.12);
}

.radar-ring,
.radar-line,
.radar-sweep,
.radar-point {
  position: absolute;
}

.radar-ring {
  border: 1px solid rgba(77, 134, 238, 0.2);
  border-radius: 50%;
}

.ring-one {
  inset: 17%;
}

.ring-two {
  inset: 34%;
}

.radar-line.horizontal {
  left: 6%;
  right: 6%;
  top: 50%;
  border-top: 1px solid rgba(77, 134, 238, 0.18);
}

.radar-line.vertical {
  top: 6%;
  bottom: 6%;
  left: 50%;
  border-left: 1px solid rgba(77, 134, 238, 0.18);
}

.radar-sweep {
  inset: 0 50% 50% 0;
  border-radius: 100% 0 0;
  background: linear-gradient(30deg, transparent 38%, rgba(77, 134, 238, 0.18));
  transform-origin: 100% 100%;
  animation: sweep 5s linear infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.radar-point {
  width: 9px;
  height: 9px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(241, 125, 102, 0.15);
}

.point-one {
  left: 22%;
  top: 40%;
}

.point-two {
  right: 18%;
  top: 28%;
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(128, 105, 220, 0.14);
}

.point-three {
  right: 29%;
  bottom: 17%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(223, 170, 39, 0.15);
}

.radar b,
.radar small {
  position: relative;
  z-index: 2;
}

.radar b {
  font: 650 clamp(45px, 5vw, 64px)/1 Georgia, serif;
}

.radar small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 13px;
  margin: 18px 0;
}

.metric-card {
  position: relative;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  background: white;
  box-shadow: 0 10px 30px rgba(65, 98, 151, 0.055);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--metric-color, var(--blue));
}

.metric-card > .metric-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.metric-card-action {
  position: absolute;
  top: 18px;
  right: 17px;
  color: var(--metric-color, var(--blue));
  font-size: 9px;
  font-weight: 800;
  opacity: 0.72;
  transition: opacity 0.18s ease;
}

.metric-card b {
  margin: auto 0 7px;
  font: 620 38px/1 Georgia, serif;
}

.metric-card small {
  color: var(--muted-2);
  font-size: 9px;
}

.metric-card:focus-visible {
  outline: 3px solid rgba(77, 134, 238, 0.28);
  outline-offset: 3px;
  border-color: rgba(77, 134, 238, 0.7);
}

.metric-card:active {
  transform: translateY(0);
}

@media (hover: hover) {
  .metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(77, 134, 238, 0.42);
    box-shadow: 0 17px 36px rgba(65, 98, 151, 0.12);
  }

  .metric-card:hover .metric-card-action {
    opacity: 1;
  }
}

.metric-card.blue {
  --metric-color: var(--blue);
}

.metric-card.purple {
  --metric-color: var(--purple);
}

.metric-card.coral {
  --metric-color: var(--coral);
}

.metric-card.green {
  --metric-color: var(--green);
}

.metric-card.yellow {
  --metric-color: var(--yellow);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.panel {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(65, 98, 151, 0.055);
}

.status-panel {
  grid-row: span 2;
}

.panel-header {
  min-height: 55px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  margin-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
}

.panel-header > a,
.panel-note {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.panel-header > a:hover {
  color: var(--blue-deep);
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bar-row {
  display: grid;
  grid-template-columns: 66px 1fr 30px;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}

.bar-row > span {
  color: var(--muted);
}

.bar-row .track {
  height: 16px;
  overflow: hidden;
  border-radius: 5px;
  background: #eff4fb;
}

.bar-row .fill {
  width: var(--bar-width);
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--bar-color);
}

.bar-row b {
  text-align: right;
  font-size: 11px;
}

.deadline-list {
  display: flex;
  flex-direction: column;
}

.deadline-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.deadline-item:first-child {
  padding-top: 0;
}

.deadline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.deadline-item span {
  min-width: 0;
}

.deadline-item b,
.deadline-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deadline-item b {
  font-size: 11px;
}

.deadline-item small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 9px;
}

.deadline-item time {
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
}

.deadline-item.expired time {
  color: var(--danger);
}

.distribution-panel {
  min-height: 245px;
}

.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-bar {
  display: grid;
  grid-template-columns: minmax(75px, 115px) 1fr 26px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
}

.mini-bar > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-bar .track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eff4fb;
}

.mini-bar .fill {
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.mini-bar b {
  color: var(--ink);
  text-align: right;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px 28px;
}

.page-heading h1 {
  margin: 10px 0 9px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 570;
  letter-spacing: -0.035em;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.result-count {
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 750;
}

.company-heading-tools {
  max-width: min(100%, 650px);
  flex: none;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.company-classification-filter {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 8px;
}

.company-classification-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease-out, background var(--motion-fast) ease-out, color var(--motion-fast) ease-out, box-shadow var(--motion-fast) ease-out;
}

.company-classification-button b {
  min-width: 21px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef4ff;
  font-size: 11px;
  text-align: center;
}

.company-classification-button:hover {
  border-color: #94b7ef;
  color: var(--blue);
  background: #f7faff;
}

.company-classification-button[aria-pressed="true"] {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(37, 82, 211, 0.18);
}

.company-classification-button[aria-pressed="true"] b {
  color: var(--blue);
  background: #ffffff;
}

.company-classification-with-jobs {
  min-width: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.company-classification-with-jobs > .parent {
  width: 100%;
}

.company-classification-children {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.company-classification-button.child {
  min-width: 0;
  padding-inline: 8px;
}

.filter-panel,
.company-toolbar {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(65, 98, 151, 0.05);
}

.search-box {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfdff;
}

.search-box:focus-within {
  border-color: rgba(77, 134, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(77, 134, 238, 0.09);
}

.search-box > span:first-child {
  color: var(--blue-deep);
  font-size: 25px;
  line-height: 1;
  transform: rotate(-15deg);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #9aa6b7;
}

.quick-filter-summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  margin-top: 12px;
  border: 1px solid #bfd4f5;
  border-radius: 11px;
  color: var(--blue-deep);
  background: #eef5ff;
  font-size: 10px;
}

.quick-filter-summary strong {
  font-weight: 850;
}

.quick-filter-summary button {
  flex: none;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--blue-deep);
  background: white;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.quick-filter-summary button:hover,
.quick-filter-summary button:focus-visible {
  box-shadow: 0 0 0 3px rgba(77, 134, 238, 0.12);
  outline: none;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding-top: 14px;
}

.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.filter-grid select {
  width: 100%;
  min-height: 39px;
  padding: 0 29px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #f8fbff;
  font-size: 11px;
}

.reset-button {
  min-height: 39px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
}

.reset-button:hover {
  background: #dceaff;
}

.job-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(65, 98, 151, 0.055);
}

.job-table-head,
.job-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(140px, 0.75fr) 120px minmax(190px, 1fr) 138px;
  gap: 16px;
  align-items: center;
}

.job-table-head {
  padding: 13px 19px;
  color: var(--muted);
  background: #edf4fd;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.job-card {
  position: relative;
  min-height: 90px;
  padding: 17px 19px;
  border-top: 1px solid var(--line);
  transition: background 0.18s ease;
}

.job-card:hover {
  background: #fbfdff;
}

.job-card > div {
  min-width: 0;
}

.job-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.company-initial {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--initial-color, var(--blue-deep));
  background: var(--initial-bg, var(--blue-soft));
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
  font-weight: 750;
}

.job-title,
.company-name,
.job-meta,
.job-note {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-title {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
}

.company-name,
.job-meta,
.job-note {
  color: var(--muted);
  font-size: 9px;
}

.job-note {
  margin-top: 5px;
  color: var(--muted-2);
}

.job-direction strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.status-pill,
.link-warning {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.status-saved {
  color: #657185;
  background: #edf1f6;
}

.job-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.favorite-button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #cfdbeb;
  border-radius: 9px;
  color: #66758b;
  background: #f8fbff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.favorite-button:hover {
  border-color: #e1b548;
  color: #8d6810;
  background: #fff9e6;
}

.favorite-button:focus-visible {
  outline: 3px solid rgba(77, 134, 238, 0.24);
  outline-offset: 2px;
}

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

.favorite-button.is-favorite {
  border-color: #e2b33d;
  color: #7c5a07;
  background: var(--yellow-soft);
}

.status-preparing {
  color: #946f17;
  background: var(--yellow-soft);
}

.status-applied {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.status-written_test {
  color: #6a55bd;
  background: var(--purple-soft);
}

.status-interview {
  color: #ac563f;
  background: var(--coral-soft);
}

.status-offer {
  color: #277a59;
  background: var(--green-soft);
}

.status-rejected,
.status-closed {
  color: #9a5060;
  background: #f6e9ed;
}

.date-cell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
}

.date-part {
  min-width: 0;
}

.date-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.date-cell time {
  display: block;
  font-size: 10px;
  font-weight: 750;
}

.date-cell small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8px;
}

.date-cell.expired .deadline-date time,
.date-cell.expired .deadline-date small {
  color: var(--danger);
}

.job-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.apply-button,
.career-button,
.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}

.apply-button {
  color: white;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(77, 134, 238, 0.2);
}

.apply-button:hover {
  background: var(--blue-deep);
}

.source-link {
  min-height: auto;
  padding: 0;
  color: var(--muted);
  border-radius: 0;
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-warning.pending {
  color: #936d17;
  background: var(--yellow-soft);
}

.link-warning.broken {
  color: var(--danger);
  background: var(--danger-soft);
}

.company-toolbar {
  max-width: 760px;
}

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

.company-card {
  min-height: 258px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(65, 98, 151, 0.055);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.company-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.company-card-content {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.company-card-link:focus-visible {
  outline: 3px solid rgba(77, 134, 238, 0.42);
  outline-offset: 3px;
}

.company-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(65, 98, 151, 0.1);
}

.company-card-head {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 12px;
  align-items: center;
}

.company-card-head .company-initial {
  width: 45px;
  height: 45px;
}

.company-card-head > div {
  min-width: 0;
}

.company-card h2 {
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.company-card-head small {
  color: var(--muted);
  font-size: 9px;
}

.job-count {
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.job-count.pending {
  color: #936d17;
  background: var(--yellow-soft);
}

.company-note {
  display: -webkit-box;
  min-height: 55px;
  margin: 20px 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.company-tags span {
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 7px;
  color: var(--muted);
  background: #f3f6fa;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 15px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.company-card-open {
  justify-content: space-between;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 850;
}

.career-button {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.career-button:hover {
  background: #dceaff;
}

.show-jobs-button {
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.show-jobs-button:hover {
  color: var(--ink);
  background: #f2f5fa;
}

.disabled-link {
  color: var(--muted-2);
  font-size: 9px;
}

.direct-apply-link {
  color: var(--blue-deep);
}

.company-detail-view {
  max-width: 1180px;
  margin: 0 auto;
}

.company-breadcrumb {
  margin-bottom: 18px;
}

.company-breadcrumb a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 850;
}

.company-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: 0 12px 36px rgba(65, 98, 151, 0.07);
}

.company-detail-initial .company-initial {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  font-size: 23px;
}

.company-detail-copy h1 {
  margin: 5px 0 6px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.company-detail-copy p,
.company-detail-note {
  color: var(--muted);
}

.company-detail-copy p {
  margin: 0;
  font-size: 11px;
}

.company-detail-note {
  max-width: 920px;
  margin: 19px 0 12px;
  font-size: 11px;
  line-height: 1.8;
}

.company-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.company-jobs-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(65, 98, 151, 0.055);
}

.company-jobs-header {
  margin-bottom: 18px;
}

.company-job-list {
  display: grid;
  gap: 10px;
}

.company-job-list .job-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px;
  border: 1px dashed #b8c9df;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.empty-state > span {
  color: var(--blue);
  font: 500 38px/1 Georgia, serif;
}

.empty-state h2 {
  margin: 14px 0 7px;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
}

.empty-state p {
  max-width: 430px;
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.compact-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted-2);
  text-align: center;
  font-size: 10px;
}

.site-footer {
  width: min(1380px, calc(100% - 48px));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0 32px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-card:nth-child(4),
  .metric-card:nth-child(5) {
    grid-column: span 1;
  }

  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .job-table-head,
  .job-card {
    grid-template-columns: minmax(205px, 1.25fr) minmax(105px, 0.7fr) 112px minmax(165px, 0.9fr) 120px;
    gap: 10px;
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .header-inner {
    width: min(100% - 30px, 1380px);
    min-height: 70px;
    grid-template-columns: 1fr auto;
  }

  .brand small,
  .readonly-badge {
    display: none;
  }

  .primary-nav {
    position: fixed;
    z-index: 80;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
    border-color: rgba(196, 211, 233, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 36px rgba(38, 61, 96, 0.2);
    backdrop-filter: blur(18px);
  }

  .primary-nav a {
    min-width: 0;
    padding: 10px 8px;
  }

  .page-shell {
    width: min(100% - 30px, 1380px);
    padding-top: 25px;
    padding-bottom: 90px;
  }

  .hero {
    min-height: 0;
    padding: 38px 31px 32px;
  }

  .radar {
    width: 220px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .status-panel {
    grid-row: auto;
  }

  .job-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .job-table-head {
    display: none;
  }

  .job-list {
    display: grid;
    gap: 10px;
  }

  .job-card {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 15px 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
    box-shadow: 0 9px 24px rgba(65, 98, 151, 0.055);
  }

  .job-card > :nth-child(4) {
    display: block;
  }

  .job-identity {
    grid-column: 1 / -1;
  }

  .job-action {
    align-items: flex-start;
  }

  .job-action::before,
  .job-direction::before,
  .job-status::before,
  .date-cell::before {
    display: block;
    margin-bottom: 7px;
    color: var(--muted-2);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
  }

  .job-direction::before {
    content: "方向与城市";
  }

  .job-status::before {
    content: "状态与收藏";
  }

  .date-cell::before {
    content: "发布日期 / 截止日期";
    grid-column: 1 / -1;
  }

  .job-action::before {
    content: "投递入口";
  }
}

@media (max-width: 650px) {
  .date-cell {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .header-inner,
  .page-shell,
  .site-footer {
    width: calc(100% - 24px);
  }

  .site-header {
    position: relative;
  }

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

  .hero {
    display: block;
    padding: 31px 23px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .radar {
    width: min(76vw, 250px);
    margin: 35px auto 2px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-card {
    min-height: 127px;
    padding: 17px;
  }

  .metric-card b {
    font-size: 33px;
  }

  .metric-card:first-child {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 20px;
  }

  .page-heading {
    display: block;
    padding-top: 8px;
  }

  .result-count {
    display: inline-flex;
    margin-top: 16px;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reset-button {
    grid-column: 1 / -1;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .company-toolbar {
    grid-template-columns: 1fr;
  }

  .company-type-filter select {
    font-size: 16px;
  }

  .company-detail-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 22px;
  }

  .company-detail-count {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .company-jobs-panel {
    padding: 17px;
  }

  .site-footer {
    display: block;
    padding-bottom: 92px;
  }

  .site-footer p + p {
    margin-top: 6px;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card:first-child {
    grid-column: auto;
  }

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

  .quick-filter-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-filter-summary button {
    width: 100%;
  }

  .job-identity {
    grid-column: auto;
  }

  .company-card-head {
    grid-template-columns: 45px 1fr;
  }

  .job-count {
    grid-column: 2;
    width: max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Public, read-only demonstration mode */
.login-card {
  position: relative;
}

.auth-demo-link {
  position: absolute;
  top: 18px;
  right: 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.auth-demo-link:hover {
  background: #dbeafe;
}

.auth-demo-link:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.28);
  outline-offset: 3px;
}

.demo-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  color: #1e3a8a;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.08);
}

.demo-notice > div {
  display: grid;
  gap: 3px;
}

.demo-notice strong {
  color: #1d4ed8;
  font-size: 14px;
}

.demo-notice span {
  font-size: 13px;
  line-height: 1.55;
}

.demo-exit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
}

body.demo-mode .management-toolbar,
body.demo-mode #refresh-cloud,
body.demo-mode #logout-button {
  display: none !important;
}

body.demo-mode .account-actions {
  justify-content: flex-end;
}

body.demo-mode .site-footer p:first-child {
  font-weight: 800;
  color: #1d4ed8;
}

@media (max-width: 650px) {
  .auth-demo-link {
    position: static;
    width: 100%;
    justify-content: center;
    margin-top: 18px;
  }

  .demo-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-notice .button {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   UI/UX Pro Max refactor · task-first light dashboard
   The original rules above remain as a safe baseline; this semantic layer is
   the current source of truth for the public directory.
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --color-background: #fffbeb;
  --color-surface: #ffffff;
  --color-surface-subtle: #fffdf5;
  --color-text: #0f172a;
  --color-text-secondary: #334155;
  --color-text-tertiary: #475569;
  --color-primary: #1d4ed8;
  --color-primary-hover: #1e40af;
  --color-primary-soft: #dbeafe;
  --color-sky: #0ea5e9;
  --color-sky-soft: #e0f2fe;
  --color-accent: #d97706;
  --color-accent-soft: #fef3c7;
  --color-border: #bfdbfe;
  --color-border-strong: #93c5fd;
  --color-success: #15803d;
  --color-success-soft: #f0fdf4;
  --color-warning: #92400e;
  --color-warning-soft: #fef3c7;
  --color-danger: #b91c1c;
  --color-danger-soft: #fef2f2;
  --color-purple: #6d28d9;
  --color-purple-soft: #f5f3ff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-2: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-3: 0 18px 44px rgba(15, 23, 42, 0.11);
  --motion-fast: 160ms;
  --motion-normal: 220ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 50;
  --z-filter: 30;
  --z-mobile-nav: 80;

  /* Compatibility aliases used by the existing component rules. */
  --ink: var(--color-text);
  --muted: var(--color-text-secondary);
  --muted-2: var(--color-text-tertiary);
  --paper: var(--color-background);
  --card: var(--color-surface);
  --blue: var(--color-primary);
  --blue-deep: var(--color-primary-hover);
  --blue-soft: var(--color-primary-soft);
  --purple: var(--color-purple);
  --purple-soft: var(--color-purple-soft);
  --coral: #ea580c;
  --coral-soft: var(--color-warning-soft);
  --yellow: var(--color-accent);
  --yellow-soft: var(--color-accent-soft);
  --green: var(--color-success);
  --green-soft: var(--color-success-soft);
  --danger: var(--color-danger);
  --danger-soft: var(--color-danger-soft);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --radius: var(--radius-lg);
  --shadow: var(--shadow-2);
}

html {
  overflow-x: clip;
  background: var(--color-background);
}

body {
  overflow-x: clip;
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% -8%, rgba(250, 204, 21, 0.2), transparent 28rem),
    radial-gradient(circle at 96% 2%, rgba(14, 165, 233, 0.2), transparent 25rem),
    var(--color-background);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button,
input,
select,
a {
  touch-action: manipulation;
}

button,
select,
a[href] {
  cursor: pointer;
}

h1,
h2,
h3,
.brand-mark,
.radar b,
.metric-card b,
.company-initial {
  font-family: inherit;
}

time,
.metric-card b,
.bar-row b,
.mini-bar b,
.result-count {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.34);
  outline-offset: 3px;
}

.loader {
  border-color: var(--color-primary-soft);
  border-top-color: var(--color-primary);
}

.radar-point {
  box-shadow: 0 0 0 5px rgba(234, 88, 12, 0.16);
}

.point-two {
  box-shadow: 0 0 0 5px rgba(109, 40, 217, 0.15);
}

.point-three {
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.17);
}

.metric-card:focus-visible,
.favorite-button:focus-visible,
.company-card-link:focus-visible {
  outline-color: rgba(29, 78, 216, 0.42);
}

.metric-card:focus-visible {
  border-color: rgba(29, 78, 216, 0.72);
}

.quick-filter-summary button:hover,
.quick-filter-summary button:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

.show-jobs-button:hover {
  background: var(--color-primary-soft);
}

.skip-link {
  z-index: 100;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  background: var(--color-primary);
  font-size: 14px;
}

.site-header {
  z-index: var(--z-header);
  border-bottom-color: rgba(147, 197, 253, 0.78);
  background: rgba(255, 253, 245, 0.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(18px) saturate(150%);
}

.header-inner,
.page-shell,
.site-footer {
  width: min(1440px, calc(100% - 48px));
}

.header-inner {
  min-height: 72px;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  gap: 24px;
}

.brand {
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.24);
  font-size: 14px;
  transform: none;
}

.brand strong {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 750;
}

.brand small {
  color: var(--color-text-tertiary);
  font-size: 12px;
  letter-spacing: 0;
}

.primary-nav {
  gap: 4px;
  padding: 4px;
  border-color: var(--color-border);
  background: #eff6ff;
}

.primary-nav a {
  min-width: 96px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 650;
  transition:
    color var(--motion-fast) ease-out,
    background var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out;
}

.primary-nav a:hover {
  color: var(--color-primary-hover);
  background: var(--color-primary-soft);
}

.primary-nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 5px 14px rgba(29, 78, 216, 0.22);
}

.nav-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: none;
  color: currentColor;
}

.readonly-badge {
  min-height: 36px;
  padding: 0 13px;
  border-color: #bbddca;
  color: #166534;
  background: var(--color-success-soft);
  font-size: 12px;
}

.page-shell {
  min-height: calc(100dvh - 145px);
  padding: 28px 0 64px;
}

.loading-state,
.state-panel p {
  font-size: 14px;
}

.state-panel {
  border-color: var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
}

.state-panel h1 {
  font-size: 28px;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: 28px;
  padding: 34px 42px;
  border-color: var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(118deg, rgba(254, 243, 199, 0.98) 0%, rgba(224, 242, 254, 0.95) 58%, rgba(186, 230, 253, 0.92) 100%);
  box-shadow: var(--shadow-2);
}

.hero::before {
  width: 220px;
  height: 220px;
  left: -150px;
  bottom: -175px;
  border-width: 42px;
  border-color: rgba(217, 119, 6, 0.12);
}

.hero::after {
  width: 110px;
  height: 110px;
  right: 30%;
  top: -82px;
  border-width: 28px;
  border-color: rgba(29, 78, 216, 0.1);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.eyebrow.purple {
  color: #6d28d9;
}

.eyebrow.coral,
.eyebrow.yellow {
  color: var(--color-warning);
}

.hero h1 {
  margin: 12px 0 14px;
  color: var(--color-text);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--color-primary);
  font-weight: 760;
}

.hero-copy > p:not(.snapshot-time) {
  max-width: 650px;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition:
    color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    background var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out;
}

.button:hover,
.button:active {
  transform: none;
}

.button.primary {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 7px 16px rgba(29, 78, 216, 0.22);
}

.button.primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 9px 22px rgba(29, 78, 216, 0.26);
}

.button.ghost,
.button.secondary {
  color: var(--color-primary-hover);
  border-color: var(--color-border-strong);
  background: #ffffff;
}

.snapshot-time {
  margin-top: 14px;
  color: var(--color-text-tertiary);
  font-size: 12px;
}

.radar {
  width: min(210px, 19vw);
  min-width: 190px;
  justify-self: center;
  border-color: rgba(29, 78, 216, 0.28);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0 44px rgba(14, 165, 233, 0.1),
    0 14px 34px rgba(29, 78, 216, 0.13);
}

.radar-ring,
.radar-line.horizontal,
.radar-line.vertical {
  border-color: rgba(29, 78, 216, 0.18);
}

.radar-sweep {
  background: linear-gradient(30deg, transparent 42%, rgba(14, 165, 233, 0.2));
  animation-duration: 8s;
}

.radar b {
  color: var(--color-text);
  font-size: clamp(42px, 4.3vw, 56px);
  font-weight: 760;
}

.radar small {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.metric-nav {
  display: block;
}

.metric-grid {
  gap: 12px;
  margin: 16px 0;
}

.metric-card {
  min-height: 126px;
  padding: 18px;
  border-color: var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  transition:
    border-color var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out,
    background var(--motion-fast) ease-out;
}

.metric-card::before {
  height: 3px;
}

.metric-card > .metric-label {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.metric-card-action {
  top: 17px;
  right: 16px;
  color: var(--metric-color, var(--color-primary));
  font-size: 12px;
  opacity: 0.86;
}

.metric-card-action::after,
.company-card-open::after {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-left: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.metric-card b {
  margin: auto 0 6px;
  color: var(--color-text);
  font-size: 34px;
  font-weight: 760;
}

.metric-card small {
  color: var(--color-text-tertiary);
  font-size: 12px;
  line-height: 1.45;
}

.metric-card:active,
.metric-card:hover {
  transform: none;
}

@media (hover: hover) {
  .metric-card:hover {
    border-color: #60a5fa;
    background: #fffdf5;
    box-shadow: var(--shadow-2);
  }
}

.metric-card.blue {
  --metric-color: var(--color-primary);
}

.metric-card.purple {
  --metric-color: var(--color-purple);
}

.metric-card.coral {
  --metric-color: #ea580c;
}

.metric-card.green {
  --metric-color: var(--color-success);
}

.metric-card.yellow {
  --metric-color: var(--color-warning);
}

.dashboard-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  padding: 22px;
  border-color: var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}

.status-panel {
  grid-column: span 7;
  grid-row: auto;
}

.deadline-panel {
  grid-column: span 5;
}

.distribution-panel {
  grid-column: span 6;
  min-height: 250px;
}

.panel-header {
  min-height: 52px;
  padding-bottom: 15px;
  margin-bottom: 18px;
  border-bottom-color: var(--color-border);
}

.panel-header h2 {
  margin-top: 6px;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 720;
}

.panel-header > a,
.panel-note {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.bar-chart {
  gap: 12px;
}

.bar-row {
  grid-template-columns: 76px 1fr 34px;
  gap: 12px;
  font-size: 13px;
}

.bar-row > span {
  color: var(--color-text-secondary);
}

.bar-row .track {
  height: 14px;
  background: var(--color-sky-soft);
}

.bar-row b {
  color: var(--color-text);
  font-size: 13px;
}

.deadline-item {
  gap: 14px;
  padding: 12px 0;
  border-bottom-color: var(--color-border);
}

.deadline-item b,
.deadline-item small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.deadline-item b {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.45;
}

.deadline-item small {
  margin-top: 3px;
  color: var(--color-text-tertiary);
  font-size: 12px;
}

.deadline-item time {
  color: var(--color-warning);
  font-size: 12px;
}

.mini-bars {
  gap: 13px;
}

.mini-bar {
  grid-template-columns: minmax(96px, 150px) 1fr 32px;
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.mini-bar .track {
  height: 8px;
  background: var(--color-sky-soft);
}

.mini-bar b {
  color: var(--color-text);
  font-size: 12px;
}

.page-heading {
  align-items: center;
  padding: 10px 2px 22px;
}

.page-heading h1 {
  margin: 7px 0 7px;
  color: var(--color-text);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-heading p {
  max-width: 760px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.result-count {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-color: var(--color-border);
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.filter-panel,
.company-toolbar {
  padding: 16px;
  margin-bottom: 16px;
  border-color: var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-1);
}

.company-toolbar {
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  gap: 12px;
  align-items: end;
}

.company-type-filter {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.company-type-filter select {
  width: 100%;
  min-height: 48px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background-color: var(--color-surface-subtle);
  font-size: 14px;
}

.company-type-filter select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.search-box {
  min-height: 48px;
  gap: 12px;
  padding: 0 15px;
  border-color: var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
  transition:
    border-color var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out,
    background var(--motion-fast) ease-out;
}

.search-box:focus-within {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.search-box > span:first-child {
  font-size: 0;
  transform: none;
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  border-radius: 999px;
  background: var(--color-primary);
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-box input {
  min-width: 0;
  font-size: 16px;
}

.search-box input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.quick-filter-summary {
  min-height: 44px;
  padding: 8px 12px;
  border-color: var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-primary-hover);
  background: var(--color-primary-soft);
  font-size: 13px;
}

.quick-filter-summary button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--color-primary-hover);
  font-size: 12px;
}

.filter-grid {
  min-width: 0;
  grid-template-columns: repeat(5, minmax(118px, 1fr)) auto;
  gap: 10px;
  padding: 14px 0 0;
  margin: 0;
  border: 0;
}

.filter-grid label {
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.filter-grid select,
.reset-button {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.filter-grid select {
  border-color: var(--color-border);
  color: var(--color-text);
  background-color: var(--color-surface-subtle);
}

.filter-grid select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.reset-button {
  padding: 0 14px;
  color: var(--color-primary-hover);
  background: var(--color-primary-soft);
}

.reset-button:hover {
  background: var(--color-border);
}

.job-table {
  border-color: var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}

.job-table-head,
.job-card {
  grid-template-columns: minmax(260px, 1.6fr) minmax(160px, 0.85fr) 124px minmax(210px, 1.05fr) 148px;
  gap: 16px;
}

.job-table-head {
  min-height: 46px;
  align-items: center;
  padding: 0 20px;
  color: var(--color-text-secondary);
  background: #eff6ff;
  font-size: 12px;
  letter-spacing: 0;
}

.job-list,
.company-grid,
.job-list-item,
.company-list-item {
  padding: 0;
  margin: 0;
  list-style: none;
}

.job-card {
  min-height: 112px;
  padding: 18px 20px;
  border-top-color: var(--color-border);
  background: var(--color-surface);
  transition: background var(--motion-fast) ease-out;
}

.job-card:hover {
  background: #fffdf5;
}

.job-identity {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.company-initial {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 760;
}

.job-title,
.company-name,
.job-meta,
.job-note,
.job-direction strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.job-title {
  margin: 0 0 5px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 740;
  line-height: 1.42;
}

.company-name,
.job-meta,
.job-note {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.company-name {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--motion-fast) ease-out, text-decoration-color var(--motion-fast) ease-out;
}

.company-name:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}

.job-note {
  margin-top: 5px;
  color: var(--color-text-tertiary);
}

.job-direction strong {
  margin-bottom: 5px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.45;
}

.status-pill,
.link-warning {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.status-saved {
  color: #475569;
  background: #eef2f6;
}

.status-preparing {
  color: #92400e;
  background: #fff7ed;
}

.status-applied {
  color: var(--color-primary-hover);
  background: var(--color-primary-soft);
}

.status-written_test {
  color: #5b21b6;
  background: #f5f3ff;
}

.status-interview {
  color: #9a3412;
  background: #fff7ed;
}

.status-offer {
  color: #166534;
  background: #f0fdf4;
}

.status-rejected,
.status-closed {
  color: #991b1b;
  background: #fef2f2;
}

.job-status {
  gap: 8px;
}

.job-progress {
  min-width: 0;
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}

.job-progress-current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.job-progress-label {
  font-weight: 700;
}

.job-progress-time {
  color: var(--color-text);
  font-weight: 650;
}

.job-progress-missing {
  color: #9a3412;
  font-weight: 700;
}

.job-progress-details {
  margin-top: 6px;
}

.job-progress-details summary {
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  list-style-position: inside;
}

.job-progress-details summary:hover {
  color: var(--color-primary-hover);
}

.job-progress-details summary:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.2);
  outline-offset: 2px;
  border-radius: 6px;
}

.job-progress-list {
  display: grid;
  gap: 8px;
  margin: 0 0 4px;
  padding: 4px 0 0 22px;
}

.job-progress-entry {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(150px, auto) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.job-progress-stage {
  color: var(--color-text);
  font-weight: 700;
}

.job-progress-note {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-text-tertiary);
}

.favorite-button {
  min-width: 88px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-color: var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  background: var(--color-surface-subtle);
  font-size: 12px;
  transition:
    color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    background var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out;
}

.favorite-button::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 34%);
  opacity: 0.72;
}

.favorite-button:hover,
.favorite-button.is-favorite {
  border-color: #d49a24;
  color: #854d0e;
  background: #fffbeb;
}

.favorite-button:active {
  transform: none;
  box-shadow: inset 0 0 0 999px rgba(133, 77, 14, 0.06);
}

.date-cell {
  gap: 14px;
}

.date-label {
  margin-bottom: 4px;
  color: var(--color-text-tertiary);
  font-size: 11px;
}

.date-cell time {
  color: var(--color-text);
  font-size: 13px;
}

.date-cell small {
  margin-top: 3px;
  color: var(--color-text-tertiary);
  font-size: 11px;
  line-height: 1.4;
}

.job-action {
  gap: 8px;
}

.apply-button,
.career-button,
.source-link {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    background var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out;
}

.apply-button {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 5px 12px rgba(29, 78, 216, 0.18);
}

.apply-button:hover {
  background: var(--color-primary-hover);
}

.career-button,
.source-link {
  color: var(--color-primary-hover);
  border-color: var(--color-border-strong);
  background: var(--color-primary-soft);
}

.career-button:hover,
.source-link:hover {
  background: var(--color-border);
}

.apply-button::after,
.career-button::after,
.source-link::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  display: inline-block;
  margin-left: 3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.link-warning.pending {
  color: #92400e;
  background: var(--color-warning-soft);
}

.link-warning.broken {
  color: #991b1b;
  background: var(--color-danger-soft);
}

.company-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-list-item {
  min-width: 0;
  display: flex;
}

.company-card {
  width: 100%;
  min-height: 224px;
  padding: 20px;
  border-color: var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  transition:
    border-color var(--motion-fast) ease-out,
    box-shadow var(--motion-normal) var(--ease-out),
    background var(--motion-fast) ease-out;
}

.company-card:hover {
  border-color: #60a5fa;
  background: #fffdf5;
  box-shadow: var(--shadow-2);
  transform: none;
}

.company-card-head {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
}

.company-card-head .company-initial {
  width: 48px;
  height: 48px;
}

.company-card h2 {
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.35;
  white-space: normal;
}

.company-card-head small {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.company-card-meta,
.company-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.enterprise-type-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 999px;
  color: var(--color-primary-hover);
  background: var(--color-primary-soft);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.job-count {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--color-primary-hover);
  background: var(--color-primary-soft);
  font-size: 11px;
}

.job-count.pending {
  color: #92400e;
  background: var(--color-warning-soft);
}

.company-note {
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  margin: 17px 0 13px;
  overflow: visible;
  overflow-wrap: anywhere;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
  -webkit-line-clamp: initial;
}

.company-tags {
  gap: 7px;
  min-height: 28px;
}

.company-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  color: var(--color-text-secondary);
  background: #eff6ff;
  font-size: 11px;
}

.company-actions {
  padding-top: 14px;
  border-top-color: var(--color-border);
}

.company-card-open {
  justify-content: flex-end;
  color: var(--color-primary);
  font-size: 13px;
}

.company-breadcrumb a {
  min-height: 44px;
  padding: 0 14px;
  color: var(--color-primary-hover);
  background: var(--color-primary-soft);
  font-size: 13px;
}

.company-breadcrumb a::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.company-detail-hero {
  padding: 26px;
  border-color: var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 48%, #dbeafe 100%);
  box-shadow: var(--shadow-2);
}

.company-detail-copy h1 {
  color: var(--color-text);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 760;
}

.company-detail-copy p,
.company-detail-note {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.company-detail-meta {
  margin-top: 6px;
}

.company-detail-note {
  line-height: 1.75;
}

.company-jobs-panel {
  padding: 22px;
  border-color: var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-1);
}

.company-job-list {
  gap: 12px;
}

.company-job-list .job-card {
  border-color: var(--color-border);
  border-radius: var(--radius-md);
}

.empty-state {
  min-height: 240px;
  padding: 32px;
  border-color: var(--color-border-strong);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.78);
  list-style: none;
}

.empty-state-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: block;
  border: 2px solid #60a5fa;
  border-radius: 50%;
}

.empty-state-mark::before,
.empty-state-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
}

.empty-state-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.empty-state h2 {
  margin: 13px 0 7px;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 720;
}

.empty-state p,
.compact-empty {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.compact-empty {
  border-color: var(--color-border-strong);
}

.site-footer {
  color: var(--color-text-tertiary);
  font-size: 12px;
  flex-wrap: wrap;
}

.site-disclaimer {
  flex-basis: 100%;
  max-width: 980px;
  line-height: 1.6;
}

/* Long terminal-status labels must stay inside their status column. */
.job-status {
  min-width: 0;
}

.status-pill {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .filter-panel {
    position: sticky;
    top: 84px;
    z-index: var(--z-filter);
  }
}

@media (max-width: 1279px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .reset-button {
    min-width: 120px;
  }

  .job-table-head,
  .job-card {
    grid-template-columns: minmax(230px, 1.4fr) minmax(145px, 0.8fr) 116px minmax(190px, 1fr) 136px;
    gap: 12px;
  }
}

@media (max-width: 1023px) {
  .header-inner {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .readonly-badge {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 190px;
    padding: 30px;
  }

  .radar {
    width: 180px;
    min-width: 180px;
  }

  .status-panel,
  .deadline-panel,
  .distribution-panel {
    grid-column: span 6;
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .job-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .job-table-head {
    display: none;
  }

  .job-list {
    display: grid;
    gap: 12px;
  }

  .job-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 20px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
  }

  .job-identity {
    grid-column: 1 / -1;
  }

  .job-action::before,
  .job-direction::before,
  .job-status::before,
  .date-cell::before {
    margin-bottom: 7px;
    color: var(--color-text-tertiary);
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  .job-action::before {
    content: "投递入口";
  }

  .job-direction::before {
    content: "方向与城市";
  }

  .job-status::before {
    content: "状态与收藏";
  }

  .date-cell::before {
    content: "发布日期 / 截止日期";
    grid-column: 1 / -1;
  }

  .job-action {
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .job-progress-entry {
    grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
  }

  .job-progress-note {
    grid-column: 1 / -1;
  }

  .site-header {
    position: sticky;
    backdrop-filter: none;
  }

  .header-inner,
  .page-shell,
  .site-footer {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 64px;
    display: flex;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .primary-nav {
    position: fixed;
    z-index: var(--z-mobile-nav);
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 6px;
    border-color: rgba(147, 197, 253, 0.95);
    border-radius: 18px;
    background: rgba(255, 253, 245, 0.97);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px) saturate(150%);
  }

  .primary-nav a {
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    gap: 2px;
    padding: 5px 7px;
    font-size: 12px;
  }

  .nav-icon {
    display: block;
  }

  .nav-icon-overview::before,
  .nav-icon-overview::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 2px;
    top: 2px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    box-shadow: 8px 0 0 -1.5px transparent, 8px 0 0 0 currentColor;
  }

  .nav-icon-overview::after {
    top: 10px;
  }

  .nav-icon-jobs::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 1px;
    top: 4px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
  }

  .nav-icon-jobs::after {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
  }

  .nav-icon-companies::before {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: 3px;
    bottom: 1px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
  }

  .nav-icon-companies::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    width: 2px;
    height: 2px;
    background: currentColor;
    box-shadow: 5px 0 0 currentColor, 0 5px 0 currentColor, 5px 5px 0 currentColor;
  }

  .page-shell {
    min-height: calc(100dvh - 64px);
    padding: 18px 0 34px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px;
  }

  .hero h1 {
    font-size: clamp(29px, 8vw, 38px);
  }

  .hero-copy > p:not(.snapshot-time) {
    font-size: 14px;
  }

  .radar {
    width: 100%;
    min-width: 0;
    height: 112px;
    aspect-ratio: auto;
    border-radius: var(--radius-md);
  }

  .radar-ring,
  .radar-line,
  .radar-sweep,
  .radar-point {
    display: none;
  }

  .radar b {
    font-size: 40px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .status-panel,
  .deadline-panel,
  .distribution-panel {
    grid-column: auto;
  }

  .page-heading {
    display: block;
    padding-top: 4px;
  }

  .company-heading-tools {
    width: 100%;
    max-width: none;
    align-items: stretch;
    margin-top: 13px;
  }

  .company-heading-tools .result-count {
    align-self: flex-start;
    margin-top: 0;
  }

  .company-classification-filter {
    width: 100%;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
  }

  .company-classification-with-jobs {
    min-width: 0;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .result-count {
    margin-top: 13px;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reset-button {
    grid-column: 1 / -1;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .company-toolbar {
    grid-template-columns: 1fr;
  }

  .company-type-filter select {
    font-size: 16px;
  }

  .company-detail-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px;
  }

  .company-detail-count {
    grid-column: 1 / -1;
  }

  .company-jobs-panel {
    padding: 16px;
  }

  .site-footer {
    display: block;
    padding-bottom: 18px;
  }

  .site-footer p + p {
    margin-top: 6px;
  }
}

/* Keep the hero title's original full-width two-line panel. */
.hero-copy > h1 {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.04em 0.12em;
  border: 2px solid rgba(148, 163, 184, 0.72);
  background: rgba(219, 234, 254, 0.42);
}

/* Page titles keep their blue focus box without stretching it across the toolbar. */
.page-heading h1 {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.04em 0.14em;
  border: 2px solid rgba(148, 163, 184, 0.72);
  background: rgba(219, 234, 254, 0.42);
}

/* The overview explanation is intentionally two balanced, readable lines. */
.hero-description > span {
  display: block;
}

@media (max-width: 479px) {
  .mini-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 12px;
  }

  .mini-bar > span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .mini-bar .track {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }

  .mini-bar b {
    grid-row: 1;
    grid-column: 2;
    min-width: 32px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .metric-card,
  .metric-card:first-child {
    min-height: 118px;
    grid-column: auto;
    padding: 15px;
  }

  .metric-card-action {
    position: static;
    order: 4;
    margin-top: 5px;
    font-size: 11px;
  }

  .metric-card b {
    margin-top: 13px;
    font-size: 30px;
  }

  .panel {
    padding: 18px;
  }

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

  .job-identity {
    grid-column: auto;
  }

  .date-cell {
    grid-template-columns: 1fr 1fr;
  }

  .job-action .apply-button,
  .job-action .source-link {
    width: 100%;
  }

  .company-card-head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .job-count {
    grid-column: 2;
    width: max-content;
  }

  .quick-filter-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-filter-summary button {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 359px) {
  .header-inner,
  .page-shell,
  .site-footer {
    width: calc(100% - 20px);
  }

  .brand strong {
    font-size: 14px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep {
    display: none;
  }
}

/* Detailed application stages and actionable overview reminders. */
.reminder-panel {
  grid-column: span 6;
  min-height: 250px;
}

.bar-chart {
  gap: 4px;
}

.bar-row {
  min-height: 44px;
  margin-inline: -8px;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.bar-row:hover {
  background: var(--color-primary-soft);
}

.bar-row:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  background: var(--color-primary-soft);
}

.bar-row:active {
  background: var(--color-sky-soft);
}

.bar-row.is-substatus {
  margin-inline: 16px 0;
  width: calc(100% - 16px);
  min-height: 40px;
  opacity: 0.92;
}

.bar-row.is-substatus > span:first-child::before {
  content: "↳ ";
  color: var(--color-text-tertiary);
}

.status-application_closed,
.link-warning.application-closed {
  color: #92400e;
  background: #fff7ed;
}

.application-closed-badge {
  border: 1px solid #fed7aa;
}

.closed-reason-field[hidden] {
  display: none;
}

.status-personality_test {
  color: #075985;
  background: #e0f2fe;
}

.status-written_test {
  color: #5b21b6;
  background: #f5f3ff;
}

.status-ai_interview {
  color: #3730a3;
  background: #eef2ff;
}

.status-interview {
  color: #9a3412;
  background: #fff7ed;
}

.status-second_interview {
  color: #9f1239;
  background: #fff1f2;
}

.deadline-item {
  min-height: 44px;
  margin-inline: -8px;
  padding: 8px;
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.deadline-item:first-child {
  padding-top: 8px;
}

.deadline-item:last-child {
  padding-bottom: 8px;
}

.deadline-item:hover {
  background: var(--color-surface-subtle);
}

.deadline-item:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  background: var(--color-primary-soft);
}

.assessment-item time {
  color: #5b21b6;
}

.interview-item time {
  color: #9a3412;
}

@media (max-width: 767px) {
  .reminder-panel {
    grid-column: auto;
  }
}

/* Compact mobile filters: keep search and results close to the first job card. */
.filter-toggle {
  display: none;
}

@media (max-width: 767px) {
  .filter-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text);
    background: var(--color-surface-subtle);
    text-align: left;
    cursor: pointer;
  }

  .filter-toggle > span {
    font-weight: 800;
  }

  .filter-toggle > small {
    grid-row: 2;
    color: var(--color-text-secondary);
    font-size: 12px;
  }

  .filter-toggle::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
  }

  .filter-toggle:hover,
  .filter-toggle:focus-visible,
  .filter-toggle.has-active-filters {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
  }

  .filter-toggle:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
  }

  .filter-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .filter-panel .filter-grid {
    display: none;
  }

  .filter-panel.filters-open .filter-grid {
    display: grid;
  }

  .filter-grid select {
    font-size: 16px;
  }
}
