@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --text: #14172d;
  --muted: #6b7288;
  --line: rgba(42, 72, 124, 0.12);
  --primary: #2368ff;
  --primary-2: #5d9dff;
  --primary-soft: #eaf2ff;
  --success: #0f9f6e;
  --warning: #b7791f;
  --danger: #d64545;
  --shadow: 0 24px 70px rgba(38, 67, 120, 0.11);
  --radius: 22px;
  font-family: Manrope, Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 5%, rgba(93, 157, 255, 0.24), transparent 34%),
    radial-gradient(circle at 25% 24%, rgba(35, 104, 255, 0.13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 100%);
}

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

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  min-height: 100vh;
  padding: 24px;
}

.sidebar,
.topbar,
.panel,
.stat,
.result-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
  padding: 24px;
  border-radius: 30px;
}

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

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.brand span {
  margin-top: 3px;
  font-weight: 700;
}

.logo,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 34px rgba(35, 104, 255, 0.28);
}

.logo {
  width: 56px;
  height: 40px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.step {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.step.is-active {
  border-color: rgba(35, 104, 255, 0.28);
  background: var(--primary-soft);
  color: var(--primary);
}

.side-note {
  margin-top: auto;
  border-radius: 18px;
  background: #f7faff;
  color: var(--muted);
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.workspace {
  display: grid;
  align-content: start;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 24px 28px;
  border-radius: 30px;
}

.topbar h1,
.screen-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  padding: 12px 16px;
  font-weight: 800;
}

.status-pill[data-type="success"] {
  border-color: rgba(15, 159, 110, 0.22);
  background: rgba(15, 159, 110, 0.09);
  color: var(--success);
}

.status-pill[data-type="error"] {
  border-color: rgba(214, 69, 69, 0.22);
  background: rgba(214, 69, 69, 0.08);
  color: var(--danger);
}

.panel {
  min-height: 680px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 30px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.screen-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.screen-heading h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
}

.screen-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

label span {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(35, 104, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(35, 104, 255, 0.12);
}

.options-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 12px;
}

.check-card,
.upload-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-card input {
  width: 18px;
  height: 18px;
}

.upload-box {
  min-height: 132px;
  place-items: center;
  text-align: center;
  background: var(--primary-soft);
  cursor: pointer;
}

.upload-box input {
  display: none;
}

.upload-box strong,
.upload-box small {
  display: block;
}

.upload-box strong {
  color: var(--primary);
  font-size: 20px;
}

.upload-box small {
  max-width: 460px;
  color: var(--muted);
  font-weight: 700;
}

.file-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.primary,
.ghost {
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 800;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 34px rgba(35, 104, 255, 0.28);
}

.primary:disabled,
.ghost:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

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

.stat {
  min-height: 130px;
  border-radius: 22px;
  padding: 18px;
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stat span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 800;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.code-label {
  max-width: 280px;
}

.code-label input {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.result-card {
  border-radius: 24px;
  padding: 24px;
  background: #fff;
}

.result-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.result-card p {
  color: var(--muted);
}

.credentials {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.credential {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--primary-soft);
  padding: 13px 14px;
  font-weight: 800;
}

.credential span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.credential strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

.copy-button {
  border: 1px solid rgba(35, 104, 255, 0.22);
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.baseline-summary,
.provision-progress {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #cfe0fb;
  border-radius: 8px;
  background: #f5f9ff;
  color: #29415f;
  line-height: 1.5;
}

.provision-progress[data-type="completed"] {
  border-color: #b8e2cc;
  background: #f0fbf5;
  color: #17643a;
}

.provision-progress[data-type="failed"] {
  border-color: #f4c7c7;
  background: #fff7f7;
  color: #9b2c2c;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 8px;
  background: #2168e8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.copy-button:disabled {
  cursor: default;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .steps,
  .options-row,
  .grid.two,
  .grid.three,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .status-pill {
    margin-left: 0;
  }
}
