* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f3ee;
  color: #2c2c2a;
}

.wrap { max-width: 520px; margin: 0 auto; padding: 48px 20px; }
.wrap.wide { max-width: 720px; }

.brand-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.brand { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: #26215c; }
.login-link { font-size: 13px; color: #185fa5; text-decoration: none; }
.login-link:hover { text-decoration: underline; }
.org-side-link { font-size: 13px; color: #5f5e5a; margin: -8px 0 16px; }
.org-side-link a { color: #185fa5; }

.small-registry { font-size: 16px; margin: 0 0 18px; }

.card {
  background: #ffffff;
  border: 1px solid #e4e2d8;
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 20px;
}

.progress-row { font-size: 13px; color: #5f5e5a; margin-bottom: 10px; }

.progress-track { height: 4px; background: #eeede6; border-radius: 2px; overflow: hidden; margin-bottom: 24px; }
.progress-fill { height: 100%; width: 33%; background: #185fa5; transition: width 0.2s; }

label { display: block; font-size: 13px; color: #5f5e5a; margin-bottom: 4px; margin-top: 14px; }
label:first-child { margin-top: 0; }
.muted { color: #888780; }
.small { font-size: 12px; }

input[type="text"], input[type="number"], input[type="email"], input[type="password"], select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d3d1c7;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
input:focus, select:focus { outline: none; border-color: #185fa5; box-shadow: 0 0 0 3px rgba(24,95,165,0.12); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

button {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d3d1c7;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;
}
button:hover { background: #f4f3ee; }
button.primary { background: #185fa5; color: #fff; border-color: #185fa5; }
button.primary:hover { background: #0c447c; }
button.full { width: 100%; }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #f4f3ee; border-radius: 8px; padding: 10px 14px; margin-bottom: 4px;
}

.hidden { display: none; }

.center-pad { text-align: center; padding: 24px 0 8px; }

.match-card { background: #faeeda; border-radius: 8px; padding: 14px 16px; margin: 4px 0 16px; }
.match-title { font-weight: 600; font-size: 14px; color: #633806; margin: 0 0 4px; }
.match-detail { font-size: 13px; color: #2c2c2a; margin: 0; }

.error-text { color: #791f1f; font-size: 14px; }

.registry-id { font-size: 22px; font-weight: 600; font-family: "SF Mono", Consolas, monospace; margin: 6px 0 14px; color: #26215c; }

.q-section { margin-bottom: 22px; }
.q-section-heading { font-size: 13px; font-weight: 600; color: #26215c; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e4e2d8; }
.q-field { margin-bottom: 12px; }
.q-field label { margin-top: 0; margin-bottom: 4px; }
.q-field textarea { width: 100%; padding: 8px 12px; border: 1px solid #d3d1c7; border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; }

.upload-intro { font-size: 13px; color: #5f5e5a; margin: 0 0 18px; }

.doc-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #e4e2d8; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px;
}
.doc-row-label { font-size: 14px; font-weight: 600; }
.doc-row-status { font-size: 12px; color: #888780; margin-top: 2px; }
.doc-row-status.uploaded { color: #3b6d11; }
.doc-row-actions { display: flex; align-items: center; gap: 8px; }
.doc-row-actions input[type="file"] { font-size: 12px; max-width: 150px; }
.doc-row-actions button { height: 32px; margin-top: 0; padding: 0 12px; font-size: 13px; }
