/* Eldami family portal. Same palette as the public site; no external fonts. */
:root {
  --navy: #1f2a3a;
  --navy-2: #2c3a4f;
  --amber: #d98e12;
  --amber-2: #f0a92a;
  --cream: #fbf9f5;
  --sand: #f3eee5;
  --ink: #1f2a3a;
  --muted: #5b6676;
  --line: #e4ddd0;
  --green: #2f8f5b;
  --red: #b3412f;
  --radius: 16px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--cream); }
a { color: var(--amber); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 21px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.bar { border-bottom: 1px solid var(--line); background: #fff; margin-bottom: 28px; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand svg { height: 30px; width: auto; display: block; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 2px; background: var(--sand); padding: 3px; border-radius: 999px; margin: 0; }
.langs button { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: transparent; color: var(--muted); padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.bar form { margin: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.narrow { max-width: 480px; margin: 0 auto 40px; }
.empty { text-align: center; padding: 36px 24px; }
.empty .btn { margin-top: 8px; }

.btn { display: inline-block; font: inherit; font-weight: 700; border: 0; cursor: pointer; text-decoration: none;
  background: var(--navy); color: #fff; padding: 11px 22px; border-radius: 999px; }
.btn:hover { background: var(--navy-2); }
.btn-small { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--line);
  background: #fff; color: var(--ink); padding: 6px 12px; border-radius: 999px; }
.btn-small:hover { border-color: var(--navy); }
.btn-small.danger { color: var(--red); }
.btn-small.danger:hover { border-color: var(--red); }
.link { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 0 0 0 10px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--amber-2); outline-offset: 1px; border-color: transparent; }
.field small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.field small.error, .has-error label { color: var(--red); }

.msg { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; background: var(--sand); }
.msg-success { background: #e3f3ea; }
.msg-error { background: #f8e3df; color: var(--red); }
.msg-warning { background: #fbefd9; }

section { margin-bottom: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.row + .row { border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who small { display: block; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--line); }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px #d6efe1; }
.dot.off { background: #b9b2a5; }
.dot.new { background: #fff; border: 2px dashed var(--amber-2); }
.tag { font-size: 12px; font-weight: 700; color: var(--amber); background: #fbefd9; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }

.qr { background: #fff; padding: 8px; margin: 12px auto; max-width: 320px; }
.qr svg { width: 100%; height: auto; display: block; }
.qr-small { max-width: 200px; margin-left: 0; }
.qr-page { text-align: left; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.secret { display: inline-block; font-size: 15px; background: var(--sand); padding: 6px 10px; border-radius: 8px; word-break: break-all; margin-top: 6px; }
details summary { cursor: pointer; color: var(--muted); font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 32px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat strong { display: block; font-size: 28px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.inline-form input { flex: 1 1 200px; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.copy { font-size: 13px; word-break: break-all; }
a.link { padding: 0; }
.list.spaced { margin-top: 12px; }
.block { display: block; }
.check { display: flex; align-items: center; gap: 8px; margin: -4px 0 18px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.inline-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
a.btn-small { display: inline-block; text-decoration: none; }
/* Trap field for bots: off-screen, never seen or filled by people. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media print {
  .bar, .no-print, .msg-success { display: none; }
  .card { border: 0; }
}
