:root {
  color: #111827;
  background: #f8fafc;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 36%);
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #e8eef5;
  color: #1f2937;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  padding: 0 14px;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

.topbar,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.caption {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-version {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  color: #64748b;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.role-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 14px;
}

.role-strip button {
  min-height: 48px;
  padding: 0 8px;
}

.role-strip button.active,
.primary-button {
  background: #111827;
  color: #fff;
}

.panel {
  margin-bottom: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.07);
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  margin-top: 12px;
  padding: 0 12px;
}

.qa-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.qa-list button {
  min-height: 70px;
  background: #f8fafc;
  padding: 10px;
  text-align: left;
}

.qa-list strong,
.qa-list span {
  display: block;
}

.qa-list strong {
  margin-bottom: 6px;
  color: #0f172a;
}

.qa-list span,
.hint,
li {
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

.status-pill {
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill[data-mode="warn"] {
  background: #fff7ed;
  color: #b45309;
}

.field-label {
  display: block;
  margin: 12px 0 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.input-row input {
  margin-top: 0;
}

.hint {
  margin-top: 10px;
}

ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

.support-panel {
  border-color: #dbeafe;
  background: #eff6ff;
}

.support-panel .primary-button {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 360px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .role-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .app-shell {
    width: min(100%, 1120px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-content: start;
  }

  .topbar,
  .role-strip {
    grid-column: 1 / -1;
  }

  .panel {
    min-height: 100%;
  }
}
