/* ArcConnect — shared look. Monochrome from the ArcStructural logo, one working accent. */

:root {
  --ink:      #15181E;   /* main text, dark bars */
  --ink-2:    #3A4048;   /* secondary text */
  --muted:    #5B6069;   /* labels */
  --faint:    #8A93A3;
  --line:     #D5D8DE;   /* borders */
  --line-2:   #E4E6EB;
  --ground:   #E7E9ED;   /* page background */
  --paper:    #FFFFFF;
  --logo-grey:#9A9A9A;
  --accent:   #FFFFFF;   /* active tabs on the dark header */
  --kicker:   #A7ACB4;   /* small grey label above page titles */
  --ok:       #2B8A3E;
  --warn:     #F0B400;
  --bad:      #C92A2A;
  --link:     #15181E;
  --radius:   8px;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Top bar — as the original Project Look Ahead header ---------------------- */
.topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--ink); color: #F3F4F6;
}
.tb-logo { display: block; flex-shrink: 0; width: 40px; height: 40px; border-radius: 6px; background: #E6E6E6; padding: 3px; }
.tb-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tb-id { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.tb-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--kicker); font-weight: 600; }
.tb-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }
.tb-right { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.tb-who { font-family: var(--mono); font-size: 11px; color: #8A93A3; margin: 0 4px 0 8px; }
.tb-btn {
  padding: 8px 16px; border-radius: 8px; border: 1px solid #4A5160;
  background: transparent; color: #D8DBE1; font-size: 13px; font-weight: 600; text-decoration: none;
}
.tb-btn:hover { border-color: #8A93A3; color: #fff; }
.tb-btn.on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.auth-head { text-align: center; }
.auth-head .tb-kicker { color: #5B6069; }
.auth-title { font-size: 26px; font-weight: 700; margin-top: 4px; }

/* Generic ------------------------------------------------------------- */
.page { max-width: 1180px; margin: 20px auto; padding: 0 16px 32px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.sub { color: var(--muted); font-size: 13px; }
.label {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--muted); margin-bottom: 5px; text-transform: uppercase;
}
.input {
  width: 100%; padding: 8px 10px; border: 1px solid #CBD0D8; border-radius: var(--radius);
  background: #fff; font-size: 13px;
}
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius); border: 1px solid #CBD0D8;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.btn:hover { background: #F1F2F5; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #2A2F37; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: default; }
.chip {
  padding: 5px 11px; border-radius: 99px; border: 1px solid #CBD0D8; background: #fff;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill { font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #EDEFF3; color: var(--ink-2); }
.msg { font-size: 12px; font-weight: 600; margin-top: 8px; }
.msg.err { color: #A61E1E; }
.msg.ok { color: #1B6E2A; }

/* Auth screen -------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(400px, 100%); padding: 28px; }
.auth-logo { display: block; width: 120px; margin: 0 auto 18px; }
.auth form { display: grid; gap: 12px; margin-top: 14px; }
.auth .switch { margin-top: 14px; font-size: 13px; text-align: center; color: var(--muted); }
.auth .switch button { border: none; background: none; color: var(--link); font-weight: 600; padding: 0; }

/* Hub ------------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.tile:hover { border-color: var(--faint); }
.tile-title { font-size: 15px; font-weight: 700; }
.tile-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }

@media print { .noprint { display: none !important; } body { background: #fff; } }

/* Phones ---------------------------------------------------------------- */
@media (max-width: 720px) {
  .topbar { gap: 8px 10px; padding: 8px 12px; }
  .tb-logo { width: 34px; height: 34px; padding: 2px; }
  .tb-id { min-width: 0; flex: 1; }
  .tb-kicker { font-size: 10px; letter-spacing: 1.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-who { display: none; }
  .tb-right { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .tb-right::-webkit-scrollbar { display: none; }
  .tb-btn { flex-shrink: 0; min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .page { margin: 14px auto; padding: 0 12px 24px; }
  .h1 { font-size: 19px; }
  .btn { min-height: 40px; }
  .grid { grid-template-columns: 1fr; }
  .auth .card { padding: 22px 18px; }
}

/* Touch: no double-tap zoom delay, no grey tap flash, no page bounce while dragging. */
html, body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea, label { touch-action: manipulation; }
@media (max-width: 720px) {
  /* 16px stops phones zooming the whole page when a field is tapped. */
  input, select, textarea { font-size: 16px !important; }
}
