:root {
  --navy: #062b5f;
  --blue: #0f63b6;
  --cyan: #2eb7d8;
  --sky: #e8f5fb;
  --ink: #0d1b2a;
  --muted: #637083;
  --line: rgba(255, 255, 255, 0.46);
  --panel: rgba(255, 255, 255, 0.68);
  --success: #087f5b;
  --danger: #b42318;
  --warning: #a15c07;
  --shadow: 0 24px 80px rgba(6, 43, 95, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(46, 183, 216, 0.3), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(15, 99, 182, 0.18), transparent 30rem),
    linear-gradient(135deg, #f6fbff 0%, #dceff8 44%, #f7fafc 100%);
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: end;
  padding: 18px 0 28px;
}

.hero h1 {
  max-width: 860px;
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 0.98;
  color: var(--navy);
}

.lead {
  max-width: 820px;
  margin: 0;
  color: #24405f;
  font-size: 1.04rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.status-card {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 22px;
  border-radius: 8px;
}

.status-card strong {
  color: var(--navy);
}

.status-card small {
  color: var(--muted);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(46, 183, 216, 0.16);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.panel {
  border-radius: 8px;
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.panel-header.compact {
  margin-bottom: 12px;
}

.panel h2,
.panel h3 {
  margin: 4px 0 0;
  color: var(--navy);
}

.panel h2 {
  font-size: 1.35rem;
}

.panel h3 {
  margin-top: 22px;
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.requirement-box {
  margin: 4px 0 18px;
}

.requirement-profile {
  padding: 16px;
  border: 1px solid rgba(15, 99, 182, 0.16);
  border-radius: 8px;
  background: rgba(232, 245, 251, 0.72);
}

.requirement-profile strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 6px;
}

.requirement-profile p {
  margin: 0 0 10px;
  color: #36516e;
  line-height: 1.55;
}

.requirement-profile ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #26384c;
  line-height: 1.45;
}

.functional-credit-panel {
  margin: 4px 0 18px;
  padding: 16px;
  border: 1px solid rgba(6, 43, 95, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.subsection-title {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.subsection-title span {
  color: var(--navy);
  font-weight: 900;
}

.subsection-title small,
.mini-formula span {
  color: var(--muted);
  line-height: 1.45;
}

.mini-formula {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgba(15, 99, 182, 0.14);
  border-radius: 8px;
  background: rgba(232, 245, 251, 0.72);
}

.mini-formula strong {
  color: var(--navy);
}

label {
  display: grid;
  gap: 8px;
  color: #22354b;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(6, 43, 95, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus,
select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 99, 182, 0.12);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.switch {
  display: flex;
  min-height: 44px;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(6, 43, 95, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  font-weight: 600;
}

.switch input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 14px 28px rgba(15, 99, 182, 0.24);
}

.ghost-button {
  padding: 0 16px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.64);
}

.result-stack {
  display: grid;
  gap: 24px;
}

.verdict {
  display: inline-flex;
  margin: 14px 0 18px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 900;
}

.verdict.pass,
.pill.pass {
  color: #ecfdf5;
  background: var(--success);
}

.verdict.fail,
.pill.fail {
  color: #fff6f5;
  background: var(--danger);
}

.rank-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.rank-flow div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(6, 43, 95, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.rank-flow b {
  align-self: center;
  color: var(--blue);
  font-size: 1.35rem;
}

.rank-flow small,
.metric,
.empty,
.history-list small {
  color: var(--muted);
}

.rank-flow strong {
  color: var(--navy);
  font-size: 1.5rem;
}

.rank-flow span {
  font-size: 0.86rem;
  color: #32445a;
}

.metric {
  margin: 0;
  line-height: 1.6;
}

.credit-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.credit-summary div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(6, 43, 95, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.credit-summary .wide {
  grid-column: 1 / -1;
  border-color: rgba(161, 92, 7, 0.24);
  background: rgba(255, 247, 224, 0.72);
}

.credit-summary small {
  color: var(--muted);
  font-weight: 700;
}

.credit-summary strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.credit-summary span {
  color: #32445a;
  font-size: 0.86rem;
  line-height: 1.4;
}

.check-list,
.doc-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.doc-list li {
  position: relative;
  padding-left: 24px;
  color: #26384c;
  line-height: 1.5;
}

.check-list li::before,
.doc-list li::before {
  position: absolute;
  left: 0;
  color: var(--success);
  content: "✓";
  font-weight: 900;
}

.fail-list li::before {
  color: var(--danger);
  content: "!";
}

.note {
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  color: #52320b;
  background: rgba(255, 247, 224, 0.8);
}

.note p {
  margin: 0;
  line-height: 1.55;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-list article {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(6, 43, 95, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.pill {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.history-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.history-link article{
    transition:.2s;
}

.history-link:hover article{
    transform:translateY(-2px);
}

.grid.two{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:1rem;
}

.grid.two > div{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:1rem;
}

.grid.two small{
    display:block;
    color:#64748b;
    margin-bottom:.35rem;
}

.grid.two strong{
    display:block;
    font-size:1rem;
    color:#0f172a;
}

.check-section{
    position:relative;
    margin-bottom:1.25rem;
    padding:1rem;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.15);

    background:rgba(255,255,255,.06);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    transition:all .4s ease;
}

.section-status{
    display:none;
    align-items:center;
    gap:.5rem;

    margin-bottom:.75rem;

    font-weight:700;
}

.status-icon{
    width:28px;
    height:28px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
}

.section-progress{
    width:100%;
    height:8px;

    border-radius:99px;

    overflow:hidden;

    background:rgba(255,255,255,.08);

    margin-bottom:1rem;
}

.progress-bar{
    width:0%;
    height:100%;

    transition:all .4s ease;
}

.check-section.completed{

    background:
    linear-gradient(
        135deg,
        rgba(16,185,129,.18),
        rgba(34,197,94,.12)
    );

    border-color:
    rgba(34,197,94,.55);

    box-shadow:
    0 0 30px rgba(34,197,94,.18);
}

.check-section.completed .section-status{
    display:flex;
}

.check-section.completed .status-icon{
    background:#22c55e;
    color:#fff;
}

.check-section.completed .status-text{
    color:#16a34a;
}

.check-section.completed .progress-bar{
    width:100%;
    background:#22c55e;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .status-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .panel {
    padding: 18px;
  }

  .grid.two,
  .check-grid,
  .credit-summary,
  .rank-flow {
    grid-template-columns: 1fr;
  }

  .rank-flow b {
    display: none;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@keyframes completePulse{

    0%{
        transform:scale(.98);
    }

    50%{
        transform:scale(1.02);
    }

    100%{
        transform:scale(1);
    }
}

.check-section.completed{
    animation:completePulse .6s ease;
}