:root {
  color-scheme: light;
  --ink: #14343c;
  --muted: #71868b;
  --cyan: #06b6c8;
  --cyan-dark: #078b9a;
  --line: #e5eeee;
  --danger: #c23b4a;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #f7fbfb;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.topbar { height: 70px; display: flex; align-items: center; gap: 16px; padding: 0 max(22px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--line); background: white; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 800 21px Manrope, sans-serif; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--cyan); }
.brand-mark img { display: block; width: 30px; height: 30px; }
.back-link { min-width: 0; margin-left: auto; color: var(--cyan-dark); font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.topbar .account-menu { margin-left: 0; }

.account-page { width: min(760px, calc(100% - 40px)); margin: 34px auto 60px; display: grid; gap: 20px; }
.account-page.is-wide { width: min(1120px, calc(100% - 40px)); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.page-heading h1 { margin: 0; font: 800 30px Manrope, sans-serif; }
.eyebrow { margin: 0 0 5px; color: var(--cyan-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 35px rgba(27, 74, 81, .06); }
.card h2 { margin: 0 0 16px; font: 800 18px Manrope, sans-serif; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card-heading h2 { margin: 0; }
.card-intro { margin: 8px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; align-content: start; gap: 6px; margin-bottom: 14px; color: #4b666b; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 10px; border: 1px solid #dfe9e9; border-radius: 9px; outline-color: #74d3da; background: white; color: var(--ink); font-size: 14px; font-weight: 400; }
.field input[readonly] { background: #f3f7f7; color: var(--muted); }
.field input[type="file"] { height: auto; }
.field textarea { resize: vertical; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 400; }

.primary-button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--cyan); color: white; font-size: 14px; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: var(--cyan-dark); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.ghost-button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #527075; font-size: 13px; font-weight: 700; cursor: pointer; }
.ghost-button:hover { background: #f3fbfb; }
.form-status { min-height: 18px; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.form-status.is-error { color: #bc4653; }
.form-status.is-success { color: #1b7f52; }

.badge { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #eef3f3; color: #527075; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.is-verified { background: #e1f7ea; color: #1b7f52; }
.badge.is-pending { background: #e8fbfc; color: #0d7480; }
.badge.is-rejected, .badge.is-danger { background: #ffeded; color: #a53d48; }
.badge.is-warning { background: #fff3d6; color: #8a6410; }

.notice { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.notice.is-rejected { background: #fff0f0; color: #8f2f3a; }

.summary { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px; border-radius: 10px; background: #f6fafa; font-size: 13px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.id-preview { display: block; max-width: 100%; max-height: 260px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
.id-camera { display: none; margin-bottom: 14px; }

@media (max-width: 700px) and (pointer: coarse) {
  .id-camera { display: block; }
}

.profile-page { background: linear-gradient(180deg, #eaf9fa 0, #f7fbfb 420px); }
.profile-page .card { border: 3px solid #8ad9df; }
.profile-page .card h2 { color: #176f79; }
.profile-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 9px 0 0; color: #527075; font-size: 12px; font-weight: 700; }
.profile-page .field input:not([readonly]), .profile-page .field textarea { border-color: #d7e9ea; background: #fbfefe; }

@media (max-width: 700px) {
  .topbar { height: 62px; gap: 10px; padding: 0 16px; }
  .account-page, .account-page.is-wide { width: calc(100% - 24px); margin-top: 20px; }
  .page-heading h1 { font-size: 25px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 18px; }
}
