:root {
  --ink: #17212b;
  --navy: #20364a;
  --navy-2: #29465e;
  --paper: #f4f1e9;
  --white: #fff;
  --line: #d8d5cc;
  --muted: #6f767b;
  --orange: #db6b32;
  --orange-dark: #b94e1b;
  --green: #3f795e;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.09);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--paper);
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
  line-height: 1.55;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  height: 78px;
  background: rgba(244, 241, 233, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--navy);
  border-radius: 5px;
  transform: rotate(-3deg);
  font-family: Georgia, serif;
  font-size: 24px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-header nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.nav-button {
  border: 1px solid var(--ink);
  padding: 9px 15px;
  border-radius: 5px;
}
.hero {
  overflow: hidden;
  background: linear-gradient(115deg, #f4f1e9 0 58%, #21394e 58% 100%);
  padding: 82px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: 90px;
  align-items: center;
}
.eyebrow {
  display: block;
  color: var(--orange-dark);
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
}
.hero h1,
.auth-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 760px;
}
.hero-copy > p {
  font-size: 19px;
  color: #4c555c;
  max-width: 690px;
}
.button-row {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}
.button {
  border: 0;
  border-radius: 5px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(219, 107, 50, 0.22);
}
.button-primary:hover {
  background: var(--orange-dark);
}
.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #9a9a92;
}
.button-small {
  padding: 9px 12px;
  font-size: 13px;
}
.button-full {
  width: 100%;
}
.button-disabled,
.button:disabled {
  background: #d8d8d3;
  color: #777;
  border-color: #d8d8d3;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.trust-list {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  color: #62696e;
  font-size: 13px;
}
.trust-list li:before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 7px;
}
.hero-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  padding: 26px;
  transform: rotate(1deg);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  font-weight: 800;
}
.live-dot {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}
.live-dot:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #54a87e;
  border-radius: 50%;
  margin-right: 6px;
}
.balance-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 24px;
}
.hero-balance {
  display: block;
  font-family: Georgia, serif;
  font-size: 38px;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.mini-stats div {
  background: #f4f5f3;
  padding: 12px;
  border-radius: 8px;
}
.mini-stats span,
.mini-stats strong {
  display: block;
}
.mini-stats span {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e4e3dd;
  padding: 15px 0;
}
.demo-job > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.demo-job small,
.demo-job strong {
  display: block;
}
.demo-job small {
  color: var(--muted);
}
.job-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.demo-time {
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  color: var(--orange-dark);
}
.feature-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding-block: 66px;
}
.feature-number {
  font-family: Georgia, serif;
  color: var(--orange);
  font-size: 18px;
}
.feature-section h2 {
  font-family: Georgia, serif;
  margin: 7px 0;
  font-size: 25px;
}
.feature-section p {
  margin: 0;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 12px;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
}
.flash {
  margin-top: 18px;
  border-radius: 8px;
  padding: 13px 16px;
  font-weight: 700;
}
.flash-success {
  background: #dcece4;
  color: #275f46;
  border: 1px solid #b9d9c8;
}
.flash-error {
  background: #f5dfda;
  color: #8d3523;
  border: 1px solid #e9bfb4;
}
.auth-page main {
  min-height: calc(100vh - 150px);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 510px;
  gap: 90px;
  align-items: center;
  padding-block: 66px;
}
.compact-auth {
  padding-block: 110px;
}
.auth-intro h1 {
  font-size: 56px;
}
.auth-intro p {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-card h2 {
  font-family: Georgia, serif;
  font-size: 31px;
  margin: 0 0 22px;
}
.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin: 16px 0;
}
.form-card label small {
  float: right;
  color: var(--muted);
  font-weight: 500;
}
.form-card input,
.form-card select,
.compact-label select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid #bbbcb7;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
.form-card input:focus,
.form-card select:focus,
.compact-label select:focus {
  outline: 3px solid rgba(219, 107, 50, 0.18);
  border-color: var(--orange);
}
.form-errors {
  background: #f8e5e0;
  color: #8d3523;
  border-left: 4px solid var(--orange);
  padding: 12px 14px;
  font-size: 13px;
}
.form-errors ul {
  margin: 7px 0 0;
  padding-left: 18px;
}
.form-foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 0;
}
.form-foot a,
.text-link {
  color: var(--orange-dark);
  font-weight: 800;
}
.dashboard-head {
  background: var(--navy);
  color: #fff;
  padding: 36px 0;
}
.dashboard-head > .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.dashboard-head .eyebrow {
  color: #f1a277;
}
.dashboard-head h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  margin: 0;
}
.dashboard-head p {
  margin: 3px 0 0;
  color: #c6d0d8;
}
.head-status {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #62c28f;
  margin-right: 7px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.stat-grid article {
  background: #fff;
  padding: 22px;
}
.stat-grid span,
.stat-grid strong,
.stat-grid small {
  display: block;
}
.stat-grid span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.stat-grid strong {
  font-family: Georgia, serif;
  font-size: 29px;
  margin: 4px 0;
}
.stat-grid small {
  font-size: 11px;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding-block: 44px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-heading .eyebrow {
  margin-bottom: 2px;
}
.section-heading h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.running-list {
  display: grid;
  gap: 10px;
}
.running-job {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
}
.job-badge {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
}
.job-main strong,
.job-main span {
  display: block;
}
.job-main span {
  font-size: 12px;
  color: var(--muted);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.job-main .progress-meta small,
.job-main .progress-meta b {
  display: block;
  font-size: 10px;
}
.progress-meta small {
  color: var(--muted);
  text-transform: uppercase;
}
.progress-meta b {
  color: var(--orange-dark);
  font-variant-numeric: tabular-nums;
}
.progress {
  height: 7px;
  background: #e8e7e1;
  margin-top: 3px;
  border-radius: 10px;
  overflow: hidden;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange));
  transition: width 0.25s linear;
}
.job-timer {
  text-align: right;
  min-width: 78px;
}
.job-timer small,
.job-timer strong {
  display: block;
}
.job-timer small {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}
.job-timer strong {
  font-variant-numeric: tabular-nums;
}
.empty-state {
  background: #fff;
  border: 1px dashed #aaa;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}
.empty-state p {
  margin: 4px 0;
  color: var(--muted);
}
.job-market-heading {
  margin-top: 44px;
}
.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.job-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.job-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.job-card h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 13px 0;
}
.job-card dl,
.team-card dl {
  display: flex;
  gap: 18px;
  margin: 0 0 16px;
}
.job-card dl div,
.team-card dl div {
  flex: 1;
}
.job-card dt,
.team-card dt {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}
.job-card dd,
.team-card dd {
  margin: 0;
  font-weight: 800;
  font-size: 13px;
}
.compact-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin: 12px 0;
}
.compact-label select {
  padding: 9px;
  margin-top: 4px;
}
.side-column {
  display: grid;
  align-content: start;
  gap: 18px;
}
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
}
.employee-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e3e2dc;
  padding: 12px 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dae2e7;
  color: var(--navy);
  font-weight: 900;
}
.employee-row > div {
  min-width: 0;
  flex: 1;
}
.employee-row strong,
.employee-row small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.employee-row small {
  font-size: 11px;
  color: var(--muted);
}
.employee-state,
.team-status {
  font-size: 10px;
  text-transform: uppercase;
  background: #dcece4;
  color: #2f6b50;
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 800;
}
.employee-state.busy,
.team-status.busy {
  background: #f4e4dc;
  color: #a34e27;
}
.accent-card {
  border-top: 5px solid var(--orange);
}
.accent-card h2 {
  font-family: Georgia, serif;
  margin: 4px 0;
}
.accent-card p {
  font-size: 13px;
  color: var(--muted);
}
.goal-progress {
  height: 7px;
  background: #e5e3dc;
  border-radius: 20px;
  overflow: hidden;
}
.goal-progress span {
  display: block;
  height: 100%;
  background: var(--orange);
}
.content-section {
  padding-block: 44px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.team-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.avatar-large {
  width: 54px;
  height: 54px;
  font-size: 20px;
}
.rarity {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 850;
  color: var(--muted);
}
.rarity-rare {
  color: #386f97;
}
.rarity-epic {
  color: #9b572c;
}
.team-card h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  margin: 15px 0 0;
}
.team-card > p {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 18px;
}
.candidate-card {
  border-top: 4px solid var(--navy);
}
.ranking-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.ranking-head,
.ranking-row {
  display: grid;
  grid-template-columns: 70px minmax(180px, 2fr) minmax(110px, 1.2fr) 80px 90px minmax(140px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}
.ranking-head {
  background: var(--navy);
  color: #d7e0e6;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.ranking-row {
  border-top: 1px solid #e4e2dc;
}
.ranking-row.is-player {
  background: #fff3eb;
  border-left: 5px solid var(--orange);
  padding-left: 13px;
}
.ranking-row span b,
.ranking-row span small {
  display: block;
}
.ranking-row small {
  color: var(--muted);
  font-size: 10px;
}
.ranking-job-count {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.share-bar {
  display: block;
  height: 4px;
  background: #e5e4de;
  margin-top: 5px;
  border-radius: 10px;
  overflow: hidden;
}
.share-bar i {
  display: block;
  height: 100%;
  background: var(--orange);
}
.info-panel {
  margin-top: 22px;
  background: #e8ecee;
  border-left: 5px solid var(--navy);
  padding: 20px 22px;
}
.info-panel h2 {
  font-family: Georgia, serif;
  margin: 0;
}
.info-panel p {
  margin: 5px 0;
  color: #58646c;
}
.text-link {
  display: inline-block;
  margin-top: 11px;
  text-decoration: none;
}
.footer-wrap {
  gap: 20px;
}
@media (max-width: 900px) {
  .hero {
    background: var(--paper);
    padding-top: 50px;
  }
  .hero-grid,
  .auth-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-panel {
    transform: none;
    max-width: 600px;
  }
  .feature-section,
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-header {
    height: auto;
    padding: 14px 0;
  }
  .nav-wrap {
    align-items: flex-start;
  }
  .site-header nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site-header nav a:not(.nav-button) {
    display: none;
  }
  .ranking-head,
  .ranking-row {
    grid-template-columns: 52px minmax(160px, 1.7fr) 80px 82px minmax(120px, 1fr);
  }
  .ranking-head span:nth-child(3),
  .ranking-row > span:nth-child(3) {
    display: none;
  }
}
@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .hero h1,
  .auth-intro h1 {
    font-size: 40px;
  }
  .button-row,
  .trust-list {
    flex-direction: column;
  }
  .trust-list {
    gap: 6px;
  }
  .feature-section,
  .stat-grid,
  .job-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    padding-block: 35px;
  }
  .form-card {
    padding: 22px;
  }
  .dashboard-head > .container {
    align-items: flex-start;
    gap: 20px;
  }
  .dashboard-head h1 {
    font-size: 34px;
  }
  .running-job {
    grid-template-columns: 40px 1fr auto;
  }
  .running-job form {
    grid-column: 2/-1;
  }
  .job-timer {
    font-size: 13px;
  }
  .ranking-head,
  .ranking-row {
    grid-template-columns: 42px minmax(130px, 1.5fr) 58px 68px;
  }
  .ranking-head span:nth-child(6),
  .ranking-row > span:nth-child(6) {
    display: none;
  }
  .footer-wrap {
    flex-direction: column;
  }
  .hero-panel {
    padding: 18px;
  }
  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }
  .mini-stats div:last-child {
    display: none;
  }
}
