@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --white: #ffffff;
  --off: #fbfbfd;
  --light: #f5f5f7;
  --mid: #e8e8ed;
  --border: #d2d2d7;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #aeaeb2;
  --blue: #0071e3;
  --blue-l: #e8f0fb;
  --green: #1a8a3c;
  --green-l: #eaf4ee;
  --amber: #b07800;
  --amber-l: #fdf6e3;
  --red: #c0392b;
  --red-l: #fdecea;
  --r-xl: 20px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

body {
  font-family: -apple-system, 'DM Sans', sans-serif;
  background: var(--off);
  color: var(--text);
  min-height: 100vh;
}

.nav {
  background: rgba(251,251,253,.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: .5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 52px;
  position: sticky; top: 0; z-index: 100;
}
.logo { font-size: 17px; font-weight: 600; letter-spacing: -.4px; text-decoration: none; }
.logo-d { color: var(--text); }
.logo-p { color: var(--blue); }
.nav-r { display: flex; align-items: center; gap: 4px; }
.nav-lnk { font-size: 13px; color: var(--text2); padding: 5px 10px; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; transition: background .15s; }
.nav-lnk:hover { background: var(--light); color: var(--text); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#0071e3,#34aadc); color: white; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; margin-left: 6px; }

.page { max-width: 820px; margin: 0 auto; padding: 32px 20px 60px; }

.card {
  background: var(--white); border: .5px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
  margin-bottom: 16px;
  animation: rise .4s ease both;
}
.card-label { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 16px; }

.btn { font-family: inherit; font-size: 14px; font-weight: 500; padding: 10px 22px; border-radius: 30px; border: none; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-p { background: var(--blue); color: white; }
.btn-p:hover { background: #0077ed; }
.btn-p:disabled { background: var(--mid); color: var(--text3); cursor: not-allowed; }
.btn-s { background: var(--light); color: var(--text); border: .5px solid var(--border); }
.btn-s:hover { background: var(--mid); }
.btn-g { background: transparent; color: var(--blue); border: 1px solid rgba(0,113,227,.25); }
.btn-g:hover { background: var(--blue-l); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.field { margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 500; color: var(--text2); display: block; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--light); border: 1.5px solid transparent;
  border-radius: var(--r-md); padding: 10px 14px; outline: none; transition: all .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: white; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field textarea { resize: vertical; min-height: 80px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.verdict { display: inline-flex; align-items: center; gap: 7px; border-radius: 30px; padding: 7px 16px; }
.v-approved { background: var(--green-l); border: 1px solid rgba(26,138,60,.2); }
.v-conditional { background: var(--amber-l); border: 1px solid rgba(176,120,0,.2); }
.v-rejected { background: var(--red-l); border: 1px solid rgba(192,57,43,.2); }
.v-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vd-g { background: var(--green); }
.vd-a { background: var(--amber); }
.vd-r { background: var(--red); }
.v-txt { font-size: 14px; font-weight: 600; }
.vt-g { color: var(--green); }
.vt-a { color: var(--amber); }
.vt-r { color: var(--red); }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.divider { width: 1px; height: 16px; background: var(--border); }
.back-btn { font-size: 13px; color: var(--blue); cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); border: none; background: transparent; font-family: inherit; transition: background .15s; text-decoration: none; display: inline-flex; align-items: center; }
.back-btn:hover { background: var(--blue-l); }
.badge { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; }
.badge-amber { background: var(--amber-l); color: var(--amber); }
.badge-blue { background: var(--blue-l); color: var(--blue); }
.badge-green { background: var(--green-l); color: var(--green); }
.badge-red { background: var(--red-l); color: var(--red); }

.steps { display: flex; align-items: center; padding: 16px 24px; gap: 0; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.sn-done { background: var(--green); color: white; }
.sn-active { background: var(--text); color: white; }
.sn-idle { background: var(--mid); color: var(--text3); }
.step-lbl { font-size: 12px; font-weight: 500; }
.sl-done { color: var(--green); }
.sl-active { color: var(--text); font-weight: 600; }
.sl-idle { color: var(--text3); }
.step-line { flex: 1; height: 1px; background: var(--mid); margin: 0 8px; max-width: 40px; }
.step-line.done { background: var(--green); }

.delay-1 { animation-delay: .06s; }
.delay-2 { animation-delay: .12s; }
.delay-3 { animation-delay: .18s; }
.delay-4 { animation-delay: .24s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; }
  .page { padding: 20px 16px 40px; }
  .nav { padding: 0 16px; }
  .steps { padding: 12px 16px; }
  .step-lbl { display: none; }
}
