/* Org HQ: one calm screen. Navy and gold brand, big tap targets, plain words. */

:root {
  --navy: #14213D;
  --navy-2: #1d2f52;
  --gold: #CFA74C;
  --ink: #14213D;
  --paper: #f6f4ee;
  --card: #ffffff;
  --line: #ddd6c4;
  --muted: #5c6575;
  --ok: #1e7d46;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  padding-bottom: 84px;
}

.hidden { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }

.sign-out { color: var(--gold); font-size: 15px; text-decoration: none; padding: 10px 4px; }

main { max-width: 640px; margin: 0 auto; padding: 8px 14px 20px; }

.section-title {
  font-size: 19px;
  margin: 26px 2px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
}

.calm { color: var(--muted); margin: 8px 2px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 14px;
  box-shadow: 0 1px 3px rgba(20, 33, 61, 0.08);
}

.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 4px 0 10px; }
.card .detail { color: var(--muted); font-size: 15.5px; }

.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.choice {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.choice:active { background: var(--navy-2); }

.choice.do-nothing {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
}

.choice.pass {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
}

.choice:disabled { opacity: 0.55; }

.write-in { display: flex; gap: 8px; margin-top: 12px; }
.write-in input {
  flex: 1;
  min-height: 52px;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.write-in button {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 10px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.worker-line, .dept-line { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.worker-line:last-child, .dept-line:last-child { border-bottom: none; }
.worker-name { font-weight: 700; min-width: 118px; }
.dept-name { font-weight: 700; }
.dept-blurb { color: var(--muted); font-size: 15.5px; }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 8px;
}
.plain-list .when { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }
.plain-list .picked { font-weight: 700; }

.queue-item { display: flex; gap: 10px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.queue-item:last-child { border-bottom: none; }
.queue-status {
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.queue-status.ready { background: #e3efe6; color: var(--ok); }
.queue-status.blocked { background: #f7e8d5; color: #8a5a12; }
.queue-status.done { background: #e6e8ee; color: var(--muted); }
.queue-team { color: var(--muted); font-size: 14.5px; display: block; }

.big-button {
  display: block;
  width: 100%;
  min-height: 58px;
  border-radius: 12px;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 16px;
  cursor: pointer;
  margin-top: 14px;
}

.signin-box { text-align: left; padding: 18px 2px; }
.signin-box h1 { font-size: 26px; margin: 10px 0; }

textarea {
  width: 100%;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  background: var(--navy);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar .tab {
  flex: 1;
  min-height: 60px;
  background: transparent;
  border: none;
  color: #cfd6e4;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
}

.tabbar .tab.active { color: #fff; box-shadow: inset 0 3px 0 var(--gold); }
