:root {
  --navy: #1E2347;
  --copper: #B5703A;
  --copper-2: #C9884F;
  --cream: #FBF9F6;
  --sand: #E2DACE;
  --ink: #1E2347;
  --muted: #5C6079;
  --ok: #2F6B4F;
  --err: #9B2C2C;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top {
  background: var(--navy);
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { height: 32px; width: auto; display: block; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 20px 16px 8px; flex: 1; }
h1, h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; margin: 0 0 8px; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
.greet { margin: 4px 0 16px; }
.card {
  background: #fff; border: 1px solid var(--sand); border-radius: 14px;
  padding: 18px; margin-bottom: 16px;
}
.hero { margin-top: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
label { font-weight: 600; font-size: 15px; }
input[type=tel], input[type=text] {
  font: inherit; padding: 14px; border: 1px solid var(--sand); border-radius: 10px; background: var(--cream);
}
input:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.code { text-align: center; letter-spacing: 10px; font-size: 26px; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--copper); color: #fff; border: 0; border-radius: 10px;
  padding: 14px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--copper-2); }
.btn[disabled] { opacity: .6; }
.btn-sm { padding: 9px 14px; font-size: 15px; white-space: nowrap; }
.link-light { background: none; border: 0; color: #fff; font: inherit; font-size: 15px; cursor: pointer; opacity: .85; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin: 2px 0 0; }
.center { text-align: center; }
.phone { font-weight: 600; font-size: 18px; margin: 4px 0; }
.alert { background: #FBEAEA; color: var(--err); border-radius: 10px; padding: 10px 12px; }
.ok { background: #E6F2EC; color: var(--ok); border-radius: 10px; padding: 10px 12px; }
.list { list-style: none; padding: 0; margin: 8px 0 0; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--sand);
}
.item:first-child { border-top: 0; }
.item.file span:first-child { word-break: break-all; }
.tag { background: #E6F2EC; color: var(--ok); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.drop {
  border: 2px dashed var(--sand); border-radius: 12px; padding: 22px 14px; text-align: center;
  background: var(--cream); cursor: pointer; font-weight: 600; color: var(--navy);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.drop input { font-size: 14px; max-width: 100%; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
.foot a { color: var(--copper); }
.foot p { margin: 4px 0; }
a { color: var(--copper); }
.logout { margin: 0; }
