* { margin:0; padding:0; box-sizing:border-box; }
[hidden] { display:none !important; }
body {
  font-family:"Source Sans 3","Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;
  background:#f7f7f7; color:#454545; font-size:13.5px; -webkit-font-smoothing:antialiased;
}

/* ---------- sign-in ---------- */
.auth-wrap {
  position:fixed; inset:0; z-index:10; display:flex; align-items:center; justify-content:center;
  padding:20px;
  background:radial-gradient(1100px 750px at 18% -8%, #2e9aa0 0%, #17565b 46%, #0d3336 100%);
}
.auth-card {
  position:relative; width:100%; max-width:400px; text-align:center;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16);
  border-radius:18px; padding:34px 30px 30px;
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.auth-logo {
  height:104px; width:104px; border-radius:50%; padding:16px; margin:0 auto;
  background:rgba(255,255,255,.9);
  box-shadow:0 8px 24px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.5);
}
.auth-word { font-family:Quicksand,sans-serif; color:#fff; font-size:22px; font-weight:700; letter-spacing:.28em; margin-top:16px; text-indent:.28em; }
.auth-sub { color:#9fd6da; font-size:10.5px; font-weight:600; letter-spacing:.52em; text-transform:uppercase; margin-top:3px; text-indent:.52em; }
.pw-hint { color:rgba(232,246,247,.75); font-size:12.5px; margin-top:18px; }

.who { display:flex; gap:12px; margin:26px 0 16px; }
.person {
  flex:1; font:inherit; background:rgba(255,255,255,.05); border:1.5px solid rgba(255,255,255,.18);
  border-radius:12px; padding:13px 8px 11px; cursor:pointer; transition:border-color .15s, background .15s;
}
.person .av {
  width:40px; height:40px; border-radius:50%; margin:0 auto 7px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.13); color:#fff;
  font-family:Quicksand,sans-serif; font-weight:700; font-size:17px;
  transition:background .15s, color .15s;
}
.person b { display:block; font-family:Quicksand,sans-serif; font-size:14px; color:#e8f6f7; }
.person .em { display:block; font-size:9.5px; color:rgba(232,246,247,.45); margin-top:3px; overflow-wrap:anywhere; }
.person.sel { border-color:#68ccd1; background:rgba(104,204,209,.15); }
.person.sel .av { background:#68ccd1; color:#0d3336; }
@media (max-width: 430px){ .person .em { display:none; } }

.auth-card input[type="password"] {
  display:block; width:100%; font:inherit; font-size:16px; color:#fff;
  background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.22); border-radius:10px;
  padding:12px 14px; margin-top:12px;
}
.auth-card input::placeholder { color:rgba(232,246,247,.4); }
.auth-card input:focus { outline:2px solid #68ccd1; border-color:#68ccd1; }
.auth-card button[type="submit"] {
  width:100%; font:inherit; font-size:15px; font-weight:700; color:#062a2d;
  background:linear-gradient(180deg,#7fd7db,#4db4ba); border:none; border-radius:10px;
  padding:12px; cursor:pointer; margin-top:16px;
}
.auth-card button[type="submit"]:hover { filter:brightness(1.05); }
.auth-card button[type="submit"]:disabled { opacity:.6; }
.auth-err {
  margin-top:14px; font-size:12.5px; color:#ffd9d1; text-align:left;
  background:rgba(176,68,52,.25); border:1px solid rgba(255,150,130,.35); border-radius:8px; padding:9px 12px;
}

/* ---------- app header ---------- */
header {
  background:#68ccd1; color:#fff; padding:8px 16px;
  display:flex; align-items:center; gap:12px;
}
header img.logo { height:40px; width:auto; display:block; filter:drop-shadow(0 1px 2px rgba(28,95,99,.5)); }
.wordmark { font-family:Quicksand,sans-serif; font-size:14.5px; font-weight:700; letter-spacing:.08em; color:#fff; white-space:nowrap; }
.wordmark span { color:#1c5f63; }
.section-chip {
  font-family:Quicksand,sans-serif; font-size:11px; font-weight:700; letter-spacing:.06em;
  background:rgba(255,255,255,.28); color:#0d4448; border-radius:12px; padding:3px 11px;
}
.signout {
  margin-left:auto; font:inherit; font-size:11.5px; font-weight:600; color:#1c5f63;
  background:rgba(255,255,255,.75); border:none; border-radius:6px; padding:5px 10px; cursor:pointer;
}

/* ---------- tabs ---------- */
nav#tabs { display:flex; gap:2px; background:#e6f3f4; padding:6px 16px 0; border-bottom:1px solid #cfe4e6; overflow-x:auto; }
nav#tabs button {
  font:inherit; font-size:13px; font-weight:600; border:1px solid #cfe4e6; border-bottom:none;
  background:#d9ecee; color:#3f6d70; padding:7px 16px 6px; cursor:pointer; border-radius:6px 6px 0 0;
  white-space:nowrap;
}
nav#tabs button.active { background:#f7f7f7; color:#463939; border-color:#bfdadc; border-top:2px solid #2e9aa0; position:relative; top:1px; }
nav#tabs button .count { font-weight:400; color:#7ba3a6; margin-left:6px; font-size:11px; }

.boardbar { padding:8px 16px 0; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.boardbar h1 { font-family:Quicksand,"Source Sans 3",sans-serif; font-size:14.5px; font-weight:700; color:#463939; }
.boardbar .note { font-size:11.5px; color:#8a8a8a; }

/* ---------- columns ---------- */
.cols { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; padding:10px 16px 6px; align-items:start; }
@media (max-width: 980px){ .cols { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px){ .cols { grid-template-columns:1fr; } }
.col { background:#ececec; border:1px solid #ddd; border-radius:8px; padding:8px; min-height:120px; }
.col.dragover { background:#e0eff0; border-color:#68ccd1; }
.col h2 {
  font-family:Quicksand,"Source Sans 3",sans-serif; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.06em; color:#5f5757; padding:0 2px 7px;
  display:flex; justify-content:space-between;
}
.col h2 .n { color:#9a9a9a; font-weight:600; }
.add {
  width:100%; font:inherit; font-size:16px; border:1px dashed #b5b5b5; border-radius:6px;
  background:#f4f4f4; color:#463939; padding:7px 9px; margin-bottom:8px;
}
.add::placeholder { color:#8a8a8a; font-size:12px; }
.add:focus { outline:2px solid #68ccd1; border-color:#68ccd1; background:#fff; }

/* ---------- cards ---------- */
.card {
  background:#fff; border:1px solid #dfdfdf; border-radius:7px; padding:8px 9px 7px;
  margin-bottom:7px; box-shadow:0 1px 1px rgba(70,57,57,.05); position:relative; cursor:grab;
}
.card.dragging { opacity:.45; }
.card .row1 { display:flex; gap:8px; align-items:flex-start; }
.tick {
  flex:none; width:16px; height:16px; margin-top:1px; border:1.5px solid #a3a3a3; border-radius:50%;
  cursor:pointer; background:#fff;
}
.tick:hover { border-color:#2e9aa0; background:#e7f4f5; }
.card.done-card .tick { background:#2e9aa0; border-color:#2e9aa0; }
.card.done-card .title { color:#8a8a8a; text-decoration:line-through; }
.title { font-size:13.5px; line-height:1.35; font-weight:600; color:#463939; overflow-wrap:anywhere; }
.meta { font-size:11px; color:#8a8a8a; margin-top:5px; overflow-wrap:anywhere; }
.chips { display:flex; gap:5px; margin-top:6px; flex-wrap:wrap; }
.chip {
  font-size:10px; font-weight:700; padding:2px 7px; border-radius:9px;
  background:#f0f0f0; color:#6a6a6a; border:1px solid #e0e0e0;
}
.chip.urgent { background:#fdeae7; color:#b04434; border-color:#f5cfc8; }
.chip.stale { background:#f6efdc; color:#7d5f1c; border-color:#eadfc0; }
.chip.tiger { background:#e7f4f5; color:#20686d; border-color:#cfe7e9; }
.tignote {
  margin-top:6px; font-size:11px; color:#20686d; background:#eaf5f6;
  border:1px solid #cfe7e9; border-radius:5px; padding:4px 7px; overflow-wrap:anywhere;
}
.del {
  position:absolute; top:5px; right:7px; border:none; background:none; color:#c0c0c0;
  font-size:14px; line-height:1; cursor:pointer; padding:4px;
}
.del:hover { color:#b04434; }

footer { padding:10px 16px 16px; font-size:10.5px; color:#9a9a9a; }
#liveDot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#c9c9c9; margin-right:7px; vertical-align:1px; }
#liveDot.on { background:#2e9aa0; }
