/* Ibrahim & Associates Hub — navy blue and light brown cream (set 28 Nov 2026,
   at Shemeka's direction). Navy blue is the primary color (top nav,
   buttons, links, headings); the background is a light brown cream.
   Replaces the soft and elegant ivory/mauve/blush palette of 27 Nov 2026. */
:root {
  --ink: #2e2a24;
  --muted: #6b5d4f;
  --line: #e3d5bd;
  --bg: #f5eede;         /* light brown cream */
  --card: #fffaf0;
  --accent: #1f3a5f;     /* navy blue — links, headings */
  --accent-dark: #16304f; /* deeper navy — buttons, top nav */
  --accent-deep: #0f2438; /* deepest navy — hover / active tab */
  --accent-soft: #efe3cb; /* pale tan — callouts */
  --red: #b23a31;        /* softer brick red — still reads urgent */
  --yellow: #8a6410;     /* soft gold */
  --green: #46704f;      /* soft sage green */
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
.amp { color: var(--accent); }
#topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.top-left { display: flex; gap: 10px; align-items: center; }
.brand { font-weight: 700; font-size: 1.05rem; }
.top-right { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--muted); }
#user-email { font-size: 0.85rem; color: var(--muted); }
/* Top navigation — tabs across the top, the way the original hub was laid
   out. No left sidebar. */
#topnav { display: flex; flex-wrap: wrap; gap: 4px 2px; background: var(--accent-dark); padding: 6px 12px; }
#topnav a { color: #ffffff; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 0.93rem; white-space: nowrap; }
#topnav a:hover { background: var(--accent-deep); }
#topnav a.active { background: var(--accent-deep); font-weight: 700; }
#topnav .nav-sec { color: #c9d6e8; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; align-self: center; margin: 0 8px 0 14px; }
#demo-banner { background: var(--accent-soft); border-bottom: 1px solid #d9c8a8; padding: 8px 20px; font-size: 0.9rem; }
#demo-banner a { color: var(--accent-dark); }
#view { padding: 22px 26px; max-width: 1080px; margin: 0 auto; }
h1 { font-size: 1.4rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 22px 0 8px; }
h3 { font-size: 1rem; margin: 16px 0 6px; }
p.sub { color: var(--muted); margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .n { font-size: 1.7rem; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 0.85rem; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.dot.red { background: var(--red); } .dot.yellow { background: var(--yellow); } .dot.green { background: var(--green); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge.red { background: #f9e3df; color: var(--red); }
.badge.yellow { background: #f7ecd2; color: var(--yellow); }
.badge.green { background: #e2eee5; color: var(--green); }
.badge.grey { background: #f3f4f6; color: var(--muted); }
.badge.blue { background: var(--accent-soft); color: var(--accent-dark); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
tr:hover td { background: #f7f1ea; }
a { color: var(--accent); }
.btn { background: var(--accent-dark); color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-size: 0.92rem; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 6px 10px; font-size: 0.85rem; }
.btn.danger { background: var(--red); }
.btn:disabled { opacity: 0.55; cursor: default; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; margin-top: 4px; background: #fff; }
label { display: block; margin: 10px 0; font-size: 0.92rem; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { color: var(--red); }
.ok { color: var(--green); }
.fine { font-size: 0.82rem; color: var(--muted); }
.login-card { max-width: 420px; margin: 12vh auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.login-card h1 { font-size: 1.35rem; }
.greeting { font-size: 1.15rem; }
.voice-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.voice-row select { width: auto; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; word-break: break-all; }
.callout { background: var(--accent-soft); border: 1px solid #d9c8a8; border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.callout.alert { background: #fbf3d9; border-color: #e3d3a8; }
.sig-canvas { border: 1px solid var(--line); border-radius: 8px; background: #fff; touch-action: none; }
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  #topnav .nav-sec { display: none; }
  /* Phone polish (28 Nov 2026): tighter view padding, the top bar wraps
     instead of squeezing, the signed-in email hides (the name stays),
     tabs stay tappable, and wide tables scroll sideways inside their
     card instead of pushing the page wider than the phone. */
  #view { padding: 14px 12px; }
  #topbar { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
  #user-email { display: none; }
  .top-right { flex-wrap: wrap; }
  #topnav { padding: 6px 8px; }
  #topnav a { padding: 7px 9px; font-size: 0.88rem; }
  .card { overflow-x: auto; }
  .login-card { margin: 6vh auto; padding: 20px; }
}

/* First-time guide: Shemeka's welcome card stands out from the rest. */
#first-guide { border: 2px solid var(--accent); }
