[hidden] { display: none !important; }
:root {
  --bg: #0d120f; --panel: #151c18; --panel2: #1b241f; --line: #253029; --line2: #303d35;
  --text: #e6efe9; --muted: #8ea396; --dim: #5d6d63;
  --accent: #8fd8ac; --bad: #ff6b78; --ok: #4fd18b; --warn: #ffc65c;
  font-family: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { background: radial-gradient(1200px 600px at 50% -200px, #18261e 0%, var(--bg) 70%) fixed, var(--bg); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
svg.i { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { font-family: 'Fredoka', sans-serif; font-weight: 500; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 11px;
  padding: 9px 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; color: var(--text); transition: background .15s, transform .1s; }
.btn:hover { background: #223029; border-color: #3b4c42; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: #2b5a40; border-color: #3a7553; }
.btn.primary:hover { background: #326a4b; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn.quiet:hover { background: var(--panel2); color: var(--text); }
.btn.danger:hover { background: #3a1f24; border-color: #5a2d34; color: #ffc2c8; }
.btn.wide { width: 100%; padding: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 800; color: var(--muted); }
.field input, .field select { background: #0f1512; border: 1px solid var(--line2); border-radius: 11px; padding: 11px 13px; font-size: 15.5px; outline: none; transition: border-color .15s; }
.field input:focus, .field select:focus { border-color: #4b7d61; }
/* the browser's saved-password fill: keep the green look instead of its light blue */
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text); -webkit-box-shadow: 0 0 0 100px #0f1512 inset; box-shadow: 0 0 0 100px #0f1512 inset; transition: background-color 9999s; }
input:autofill { background-color: #0f1512; color: var(--text); }
.msg { min-height: 20px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
.ver { font-size: 11.5px; font-weight: 800; color: var(--dim); letter-spacing: .02em; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.login-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.login-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 4px; }
.login-head img { width: 72px; height: 72px; animation: float 4.5s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4)); }
.login-head h1 { font-size: 27px; }
.login-head p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.hint { background: var(--panel2); border-radius: 12px; padding: 11px 13px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.hint code { color: var(--text); font-size: 13px; }
.login-foot { text-align: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- home ---------- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); background: rgba(13, 18, 15, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top img { width: 32px; height: 32px; }
.top h1 { font-size: 20px; white-space: nowrap; }
.top .btn, .top .ver { white-space: nowrap; }
.top .grow { flex: 1; }
.who { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.role { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: #1d3328; border-radius: 99px; padding: 3px 9px; }
.role.viewer { color: var(--muted); background: var(--panel2); }

main { width: min(1060px, 100%); margin: 0 auto; padding: 28px 20px 60px; display: flex; flex-direction: column; gap: 34px; }
.hello h2 { font-size: 30px; }
.hello p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
section > h3 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
section > h3 .count { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; color: var(--muted); }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, border-color .2s; }
.tool.live:hover { transform: translateY(-2px); border-color: #3a5a47; }
.tool .ti { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(160deg, #3b7a58, #1e3d2f); color: #fff; }
.tool .ti svg { width: 26px; height: 26px; }
.tool.later .ti { background: var(--panel2); color: var(--muted); }
.tool h4 { margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 17.5px; }
.tool p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
.tool .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.chip { font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 3px 9px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.chip.on { background: #1d3328; color: var(--ok); }

.dl { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dl .ti { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--panel2); color: var(--accent); }
.dl .ti svg { width: 28px; height: 28px; }
.dl > div:not(.ti) { flex: 1; min-width: 220px; }
.dl .ti { flex: none; }
.dl b { font-size: 16px; }
.dl p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.cards2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel h4 { margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 16.5px; }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 13px; padding: 9px 10px 9px 12px; flex-wrap: wrap; }
.person .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #24382d; color: var(--accent); font-weight: 800; font-size: 14px; text-transform: uppercase; flex: none; }
.person .nm { flex: 1; min-width: 100px; }
.person .nm b { display: block; font-size: 14.5px; }
.person .nm span { font-size: 12px; color: var(--dim); font-weight: 700; }
.person select { background: #0f1512; border: 1px solid var(--line2); border-radius: 9px; padding: 5px 8px; font-size: 13px; font-weight: 700; }
.seat { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line2); border-radius: 13px; padding: 10px 12px; color: var(--dim); font-size: 13.5px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row .field input, .form-row .field select { padding: 9px 11px; font-size: 14.5px; }

.foot { display: flex; justify-content: center; gap: 14px; color: var(--dim); font-size: 12.5px; font-weight: 700; flex-wrap: wrap; }

.modal { position: fixed; inset: 0; background: rgba(5, 7, 12, .6); display: grid; place-items: center; z-index: 30; padding: 16px; }
.modal-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.modal-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.modal-card .acts { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 760px) {
  .cards2 { grid-template-columns: 1fr; }
  .top { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .top .nmtxt, .top .ver { display: none; }
  .top h1 { font-size: 18px; }
  main { padding: 22px 16px 50px; gap: 28px; }
  .hello h2 { font-size: 25px; }
  .form-row { grid-template-columns: 1fr; }
}

/* QR sign-in */
.or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12.5px; font-weight: 800; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr-box img { width: 220px; height: 220px; border-radius: 14px; background: #fff; padding: 6px; }
.qr-box p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.scan-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #000; }
.scan-frame { position: relative; }
.scan-frame::after { content: ''; position: absolute; inset: 18%; border: 3px solid rgba(143, 216, 172, .9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
.approve-dev { background: var(--panel2); border-radius: 12px; padding: 12px 14px; }
.approve-dev b { display: block; font-size: 16px; }
.approve-dev span { color: var(--muted); font-size: 13px; }

/* ---------- what's new ---------- */
.news { display: flex; align-items: flex-start; gap: 14px; background: linear-gradient(160deg, #1b3326, var(--panel) 70%); border: 1px solid #2f5440; border-radius: 18px; padding: 16px 16px 16px 18px;
  animation: news-in .45s cubic-bezier(.2, .9, .3, 1.2) both; transition: opacity .25s, transform .25s; }
.news.going { opacity: 0; transform: translateY(-8px) scale(.98); }
.news .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #2b5a40; color: #d6ffe6; flex: none; }
.news .ti svg { animation: twinkle 3.2s ease-in-out infinite; }
.news-body { flex: 1; min-width: 0; }
.news-body b { font-size: 15.5px; }
.news-body ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
@keyframes news-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(12deg); } }

/* ---------- activity + team ---------- */
.feed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.feed-grid > div > h3 { font-size: 19px; margin-bottom: 14px; }
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fchip { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.fchip:hover { color: var(--text); border-color: var(--line2); }
.fchip.on { background: #1d3328; border-color: #2f5440; color: var(--accent); }
.feed { display: flex; flex-direction: column; gap: 10px; }
.feed-empty { background: var(--panel); border: 1.5px dashed var(--line2); border-radius: 16px; padding: 22px; text-align: center; color: var(--dim); font-weight: 700; font-size: 14px; }
.more { align-self: center; margin-top: 10px; }
.act { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; animation: act-in .3s ease both; }
@keyframes act-in { from { opacity: 0; transform: translateY(6px); } }
.act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.act-line { font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.act-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.tchip { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--panel2); color: var(--muted); border-radius: 99px; padding: 2px 8px; }
.act-pic { display: block; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0f1512; cursor: zoom-in; max-width: 420px; transition: border-color .15s, transform .15s; }
.act-pic:hover { border-color: #3a5a47; transform: translateY(-1px); }
.act-pic img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 300; object-fit: cover; }
.act-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.act-acts svg.i { width: 17px; height: 17px; }
.cmts { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.cmts > .btn { align-self: flex-start; }
.cmt { display: flex; gap: 9px; }
.cmt .av { width: 28px; height: 28px; font-size: 12px; }
.cmt-body { flex: 1; min-width: 0; background: var(--panel2); border-radius: 12px; padding: 8px 11px; }
.cmt-body > div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cmt-body p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.cmt .x { margin-left: auto; background: none; border: 0; padding: 3px; border-radius: 7px; color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.cmt .x:hover { background: #3a1f24; color: #ffc2c8; }
.cmt .x svg.i { width: 14px; height: 14px; }
.cmt-new { display: flex; gap: 8px; align-items: flex-end; }
.cmt-new textarea { flex: 1; resize: none; background: #0f1512; border: 1px solid var(--line2); border-radius: 11px; padding: 9px 11px; font: inherit; font-size: 14px; color: var(--text); outline: none; min-height: 38px; }
.cmt-new textarea:focus { border-color: #4b7d61; }
.dim { color: var(--dim); font-weight: 700; }
.grow { flex: 1; }

.av { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #24382d; color: var(--accent); font-weight: 800; font-size: 14px; text-transform: uppercase; flex: none; }
.av svg.i { width: 17px; height: 17px; }
.av.on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--panel); animation: breathe 2.6s ease-in-out infinite; }
.person .av.on::after, .cmt-body .av.on::after { border-color: var(--panel2); }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 209, 139, .45); } 50% { box-shadow: 0 0 0 4px rgba(79, 209, 139, 0); } }
.person .nm span.live { color: var(--ok); }
.person.invite .av { background: var(--panel); color: var(--muted); }
.seat { background: transparent; width: 100%; text-align: left; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; transition: border-color .15s, color .15s; }
.seat:hover { border-color: #3b4c42; color: var(--muted); }
.seat svg.i { width: 18px; height: 18px; }
.seat-pick { display: flex; flex-direction: column; gap: 10px; background: var(--panel2); border-radius: 14px; padding: 13px; }
.seat-pick p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.seat-pick .field input, .seat-pick .field select { padding: 8px 10px; font-size: 14px; }
.seat-pick .form-row .btn { height: 38px; }
.inv-link { display: flex; flex-direction: column; gap: 8px; }
.inv-link input { background: #0f1512; border: 1px solid #3a7553; border-radius: 10px; padding: 9px 10px; font-size: 13px; color: var(--accent); width: 100%; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.side .form-row { grid-template-columns: 1fr; }

.health { display: flex; flex-direction: column; gap: 10px; }
.hrow { display: flex; align-items: center; gap: 10px; }
.hrow svg.i { color: var(--accent); width: 24px; height: 24px; }
.hrow b { display: block; font-size: 15px; }
.hrow span { font-size: 12.5px; color: var(--dim); font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3a7553, var(--accent)); transition: width .6s ease; }
.bar.warn i { background: linear-gradient(90deg, #a8742a, var(--warn)); }
.hline { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 700; }
.hline b { color: var(--text); text-align: right; }

.devices { display: flex; flex-direction: column; gap: 8px; }
.device { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 13px; padding: 9px 10px 9px 12px; }
.device .nm { flex: 1; min-width: 0; }
.device .nm b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device .nm span { font-size: 12px; color: var(--dim); font-weight: 700; }
.dv-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #24382d; color: var(--accent); flex: none; }
.dv-i svg.i { width: 19px; height: 19px; }

.pic-modal { background: rgba(5, 7, 12, .78); }
.modal-card.wide { width: min(900px, 100%); padding: 12px; }
.modal-card.wide img { width: 100%; height: auto; border-radius: 12px; background: #0f1512; }
.modal-card .acts { align-items: center; }

@media (max-width: 900px) {
  .feed-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .side .form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .act { padding: 12px; gap: 10px; }
  .act-pic { max-width: none; }
  .news { padding: 14px; }
  .side .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .news, .act, .av.on::after, .news .ti svg { animation: none; } }
.inv-make { display: flex; flex-direction: column; gap: 10px; }
.inv-make .btn { align-self: flex-start; }
