:root {
  --bg: #f6f7f2;
  --paper: #fff;
  --ink: #202b28;
  --muted: #81908a;
  --line: #e5e9e1;
  --green: #244b3d;
  --lime: #d9eb99;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #94b89d;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  display: grid;
  grid-template-columns: 222px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fbfcf8;
  border-right: 1px solid var(--line);
  padding: 32px 21px;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 222px;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 5px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #e4eecc;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  font-size: 25px;
  letter-spacing: 0;
}
.side-label {
  font-size: 10px;
  color: #9aa39b;
  letter-spacing: 2px;
  margin: 49px 14px 17px;
}
.nav {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 9px;
  color: #6c7972;
  margin: 4px 0;
}
.nav.active {
  background: #eaf0e4;
  color: var(--green);
  font-weight: 600;
}
.nav .count {
  margin-left: auto;
  font-size: 11px;
  background: #dce6d3;
  padding: 2px 6px;
  border-radius: 5px;
}
.side-project {
  padding: 13px;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
}
.dot {
  width: 7px;
  height: 7px;
  background: #79a387;
  border-radius: 50%;
  display: inline-block;
}
.side-bottom {
  margin-top: auto;
}
.personal {
  background: #f0f3ea;
  border: 1px solid #e2e8da;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.personal strong {
  font-size: 12px;
}
.personal p {
  color: #8a9487;
  font-size: 11px;
  line-height: 1.8;
  margin: 9px 0 0;
}
.user {
  border-top: 1px solid var(--line);
  padding: 21px 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  background: #e3e9da;
  color: #50664a;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.user small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.main {
  grid-column: 2;
  padding: 0 38px 30px;
  max-width: 1700px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #879187;
  font-size: 12px;
}
.crumb {
  display: flex;
  gap: 16px;
  align-items: center;
}
.crumb strong {
  color: #425047;
  font-weight: 500;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.prototype {
  font-size: 10px;
  border: 1px solid #d8e1cf;
  background: #eef3e6;
  border-radius: 6px;
  padding: 6px 9px;
  color: #718264;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 37px 0 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #819078;
  margin: 0 0 12px;
}
.heading h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 11px;
  font-weight: 600;
}
.heading p {
  color: #849086;
  font-size: 13px;
  margin: 0;
}
.primary {
  background: var(--green);
  color: white;
  padding: 12px 17px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.primary:hover {
  background: #32624f;
}
.secondary {
  color: var(--ink);
  border: 1px solid #dde3d7;
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
}
.hero {
  border-radius: 16px;
  background: #eaf0df;
  min-height: 207px;
  padding: 30px 34px;
  display: flex;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 12px;
  letter-spacing: -0.7px;
}
.hero p {
  color: #7c8b72;
  font-size: 12px;
  margin: 0 0 19px;
}
.hero .hero-link {
  font-size: 12px;
  border-bottom: 1px solid #9fac8d;
  padding: 0 0 6px;
}
.hero-art {
  width: 330px;
  position: relative;
  margin: -30px -10px -30px 0;
  flex-shrink: 0;
}
.ring {
  position: absolute;
  width: 165px;
  height: 165px;
  border: 1px solid #b5c5a0;
  border-radius: 50%;
  top: 23px;
  left: 81px;
  transform: rotate(-28deg) scaleX(0.53);
}
.ring.two {
  transform: rotate(28deg) scaleX(0.53);
}
.ring.three {
  transform: rotate(90deg) scaleX(0.53);
}
.core {
  position: absolute;
  left: 141px;
  top: 76px;
  font-size: 60px;
  color: #4b6947;
}
.float {
  position: absolute;
  background: #f8faef;
  border: 1px solid #d6dfc7;
  box-shadow: 0 8px 20px #64804c09;
  border-radius: 10px;
  font-size: 11px;
  padding: 10px 15px;
}
.float.one {
  top: 34px;
  left: 10px;
  transform: rotate(-8deg);
}
.float.two {
  right: 0;
  bottom: 45px;
  transform: rotate(7deg);
}
.art-caption {
  position: absolute;
  bottom: 13px;
  left: 81px;
  font-size: 8px;
  letter-spacing: 3px;
  color: #a2ae93;
}
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0 31px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  font-size: 12px;
  color: #899284;
}
.stat strong {
  display: block;
  font-size: 27px;
  font-weight: 500;
  margin-top: 8px;
}
.stat strong small {
  font-size: 11px;
  color: #95a08b;
  margin-left: 10px;
}
.stat-icon {
  background: #f0f4e9;
  border-radius: 10px;
  padding: 12px;
  color: #819373;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 27px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 19px;
}
.section-title h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
}
.section-title small {
  font-size: 10px;
  color: #8d9788;
  margin-left: 8px;
  font-weight: 400;
}
.section-title button {
  color: #7c8c72;
  font-size: 11px;
}
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 4px;
}
.tab {
  font-size: 12px;
  color: #8b9486;
  padding: 8px 12px;
  border-radius: 6px;
}
.tab.selected {
  background: #e8eddf;
  color: #3c5739;
}
.search {
  display: flex;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fbfcf8;
  border-radius: 7px;
  padding: 8px 10px;
  max-width: 170px;
}
.search svg {
  width: 15px;
  color: #96a08e;
}
.search input {
  width: 100%;
  border: 0;
  background: none;
  outline: 0;
  font-size: 11px;
}
.project {
  border: 1px solid #dfe6d6;
  border-radius: 13px;
  background: white;
  overflow: hidden;
}
.project-art {
  background: #f0f3e8;
  height: 138px;
  position: relative;
  padding: 25px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-art .tiny {
  font-size: 8px;
  letter-spacing: 2px;
  color: #8a997e;
}
.project-art .word {
  font-size: 35px;
  font-weight: 550;
  letter-spacing: 2px;
  color: #334d32;
  margin: 7px 0;
}
.project-art .slogan {
  font-size: 10px;
  color: #8a997e;
}
.presence-art {
  position: relative;
  right: 28px;
  font-size: 100px;
  line-height: 1;
  color: #869d68;
}
.badge {
  position: absolute;
  right: 15px;
  top: 14px;
  font-size: 9px;
  background: #fff8;
  border: 1px solid #dce6ce;
  padding: 4px 7px;
  border-radius: 5px;
  color: #718561;
}
.project-body {
  padding: 19px 22px;
}
.project-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-title h3 {
  font-size: 17px;
  margin: 0;
}
.tag {
  font-size: 9px;
  background: #edf2e4;
  color: #82976a;
  padding: 4px 7px;
  border-radius: 4px;
}
.project-body p {
  color: #879181;
  font-size: 12px;
  line-height: 1.8;
  margin: 11px 0 16px;
}
.chips {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.chip {
  background: #f6f7f2;
  padding: 5px 9px;
  border-radius: 5px;
  color: #8b9582;
  font-size: 10px;
}
.project-foot {
  border-top: 1px solid #edf0e8;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #96a08d;
  font-size: 10px;
}
.project-foot button {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}
.add-project {
  margin-top: 15px;
  width: 100%;
  border: 1px dashed #d5deca;
  border-radius: 11px;
  padding: 18px;
  color: #829177;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.right-panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcf8;
  padding: 21px;
}
.right-panel h3 {
  font-size: 14px;
  margin: 0 0 21px;
}
.activity {
  padding-left: 17px;
  border-left: 1px solid #e0e6d7;
  position: relative;
  margin-left: 3px;
  padding-bottom: 24px;
}
.activity:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b4c1a4;
  border: 2px solid #fbfcf8;
}
.activity strong {
  font-size: 11px;
  font-weight: 500;
}
.activity p {
  font-size: 10px;
  color: #909b87;
  margin: 7px 0;
  line-height: 1.8;
}
.activity time {
  color: #a8b19f;
  font-size: 9px;
}
.mini-note {
  margin-top: 22px;
  background: #edf1e5;
  border-radius: 12px;
  padding: 22px;
}
.mini-note .quote {
  font-family: Georgia, serif;
  font-size: 38px;
  color: #9faf8a;
  line-height: 1;
}
.mini-note p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0 0 14px;
  color: #6b7d5e;
}
.mini-note small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #a0ad94;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: #a0aa98;
  font-size: 9px;
  margin-top: 28px;
}
.view[hidden],
.shell[hidden],
.login[hidden] {
  display: none;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-art {
  background: #e8efdc;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-art h1 {
  font-size: 47px;
  line-height: 1.5;
  font-weight: 500;
  margin: 110px 0 20px;
  letter-spacing: -2px;
}
.login-art p {
  color: #7d8b71;
  line-height: 2;
}
.login-art .hero-art {
  height: 210px;
  width: 330px;
  align-self: center;
  margin: 35px 0;
}
.login-art footer {
  margin-top: auto;
  font-size: 9px;
  letter-spacing: 2px;
  color: #94a182;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  width: 340px;
}
.login-card h2 {
  font-size: 27px;
  font-weight: 500;
  margin: 12px 0;
}
.login-card p {
  font-size: 12px;
  color: #8c9685;
  line-height: 1.8;
}
.field {
  display: block;
  margin-top: 23px;
  font-size: 12px;
  color: #68775f;
}
.field input,
.field select {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 13px;
  border: 1px solid #dde4d4;
  border-radius: 8px;
  background: #fcfdf9;
  color: #4a5842;
}
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8a9780;
  margin: 18px 0 26px;
}
.login-card .primary {
  justify-content: center;
  width: 100%;
}
.login-card .demo-entry {
  width: 100%;
  font-size: 12px;
  margin: 17px 0;
  color: #708165;
}
.demo-note {
  font-size: 10px !important;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px !important;
}
.detail-card {
  padding: 27px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}
.detail-top h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 8px 0;
}
.detail-top p {
  font-size: 12px;
  color: #89957f;
}
.live {
  background: var(--green);
  color: white;
  border-radius: 14px;
  padding: 31px;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 30px;
  margin: 25px 0;
}
.live h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 12px 0;
}
.live p {
  font-size: 11px;
  color: #aec2ae;
  line-height: 1.8;
}
.live-num {
  font-size: 62px;
  font-weight: 300;
  margin: 20px 0;
}
.live-num small {
  font-size: 19px;
  color: #a8c0a5;
}
.progress {
  height: 5px;
  border-radius: 5px;
  background: #ffffff26;
}
.progress span {
  display: block;
  background: #d9eb99;
  width: 87.5%;
  height: 100%;
  border-radius: 5px;
}
.qr-empty {
  background: #fff1;
  border: 1px dashed #96ae8d;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #d9e5ca;
  padding: 15px;
  font-size: 11px;
  line-height: 2;
}
.qr-empty svg {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-weight: 400;
  color: #929c88;
  background: #f6f8f1;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid #edf0e7;
}
.status {
  font-size: 10px;
  color: #688458;
  background: #edf3e5;
  border-radius: 5px;
  padding: 5px 8px;
}
.empty-result {
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed #d6dfca;
  border-radius: 12px;
  color: #89967d;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #244b3d;
  color: #fff;
  padding: 13px 23px;
  border-radius: 9px;
  z-index: 20;
  box-shadow: 0 8px 30px #0002;
  font-size: 12px;
}
.toast[hidden] {
  display: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 750px;
}
.back {
  font-size: 12px;
  color: #7b8c70;
  margin-bottom: 20px;
  padding: 0;
}
.view {
  animation: enter 0.3s ease;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1450px) {
  .main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .project-art {
    height: 167px;
  }
}
@media (max-width: 1100px) {
  .main {
    padding: 0 25px 25px;
  }
  .sidebar {
    width: 190px;
    padding: 28px 15px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: none;
  }
  .hero-art {
    width: 250px;
  }
  .float.two {
    right: -15px;
  }
  .hero {
    padding: 28px;
  }
  .search {
    max-width: 150px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 19px;
  }
  .side-label,
  .side-project,
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin-top: 18px;
  }
  .nav {
    padding: 10px;
    justify-content: center;
    font-size: 12px;
  }
  .nav svg,
  .nav .count {
    display: none;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0 18px 25px;
  }
  .topbar {
    height: 58px;
  }
  .crumb {
    gap: 8px;
  }
  .top-actions {
    gap: 10px;
  }
  .heading {
    padding: 27px 0;
  }
  .heading h1 {
    font-size: 25px;
  }
  .heading .primary {
    font-size: 11px;
    padding: 10px;
  }
  .hero {
    min-height: 170px;
    padding: 24px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero-art {
    display: none;
  }
  .stats {
    gap: 7px;
  }
  .stat {
    padding: 14px 10px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat strong {
    font-size: 22px;
  }
  .stat-icon,
  .stat strong small {
    display: none;
  }
  .project-art {
    padding: 20px;
  }
  .presence-art {
    right: 10px;
  }
  .footer {
    gap: 15px;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 24px;
    min-height: 240px;
  }
  .login-art h1 {
    margin: 35px 0 5px;
    font-size: 30px;
  }
  .login-art p,
  .login-art .hero-art,
  .login-art footer {
    display: none;
  }
  .login-form {
    padding: 40px 24px;
  }
  .live {
    grid-template-columns: 1fr;
  }
  .qr-empty {
    min-height: 120px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .detail-top {
    display: block;
  }
  .detail-card {
    padding: 20px;
  }
  .heading p {
    font-size: 11px;
  }
}

.sidebar {
  top: 0;
}
.field-row,
.detail-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.field-row .field {
  flex: 1;
  min-width: 140px;
}
.detail-actions {
  margin-top: 18px;
}
.auth-message {
  font-size: 12px;
  color: #a46048;
  line-height: 1.8;
}
.security-note {
  font-size: 11px;
  color: #8e9a82;
  line-height: 1.8;
}
.setup-qr {
  width: 180px;
  height: 180px;
  margin: 15px 0;
}
.catalog-text {
  width: 100%;
  height: 200px;
  padding: 12px;
  border: 1px solid #dce4d4;
  border-radius: 8px;
  margin: 15px 0;
}
.qr-image {
  width: 145px;
  height: 145px;
  border-radius: 8px;
}
.notice-box {
  background: #edf2e5;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}
.roster-actions button {
  border: 1px solid #dce4d4;
  border-radius: 4px;
  padding: 5px;
  font-size: 10px;
  margin: 2px;
}
.history-row {
  padding: 12px 0;
  border-bottom: 1px solid #e5ebdc;
  color: #809071;
  font-size: 12px;
}
.history-list {
  margin-top: 20px;
}

button:disabled { cursor: not-allowed; }
.secondary:disabled { background: #e9ede6; color: #606e65; border-color: #c8d2c7; }
.primary:disabled { background: #697c70; color: #fff; }
.secondary:not(:disabled):hover { background: #edf3e7; }
.live .secondary { color: #244b3d; }
.live .secondary:disabled { color: #5b6a60; background: #e4ebe1; }
.live-action-note { color: #d9e5ca; font-size: 12px; }
.summary-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
[hidden] { display: none !important; }
@media (max-width: 650px) { .summary-actions { align-items: flex-start; flex-direction: column; gap: 8px; } }
/* Presence in motion — local Animate.css and canvas-confetti, no external CDN. */
:root { --animate-duration: .6s; }
.animate__animated { animation-delay: var(--stagger, 0ms); }
button,a,input,select { transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
button:not(:disabled):hover { transform: translateY(-2px); }
button:not(:disabled):active { transform: scale(.97); }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px #244b3d14; }
.project-card { transition: transform .3s, box-shadow .3s; }
#presence { padding-bottom: 150px; }
.presence-toolbar { display:flex; gap:8px; flex-wrap:wrap; }
.connection-note { margin:0 0 18px; padding:10px 16px; border-radius:10px; color:#60745f; background:#eaf0df; font-size:12px; }
.live { grid-template-columns:minmax(0,1fr) minmax(190px,245px); padding:32px; border-radius:22px; overflow:hidden; position:relative; background:radial-gradient(ellipse at 100% 0,#3d705c 0,transparent 50%),#244b3d; }
.live:before { content:'✦'; position:absolute; left:50%; top:20px; font-size:150px; color:#fff; opacity:.035; pointer-events:none; transform:rotate(15deg); }
.live h3 { font-size:28px; font-weight:550; }
.progress span { transition:width .8s cubic-bezier(.2,.8,.2,1); }
.live-num { font-variant-numeric:tabular-nums; }
.qr-empty { min-width:0; padding:20px; border-radius:18px; background:#ffffff0d; align-self:center; }
.qr-content { width:100%; min-width:0; }
.qr-frame { width:100%; max-width:220px; aspect-ratio:1; margin:0 auto; padding:10px; border-radius:14px; background:#fff; display:grid; place-items:center; color:#60735e; overflow:hidden; box-shadow:0 12px 35px #142e2530; }
.qr-frame .qr-image { display:block; width:100%; height:auto; max-width:100%; max-height:100%; aspect-ratio:1; object-fit:contain; border-radius:4px; }
#qr-placeholder { padding:10px; font-size:11px; line-height:1.7; }
#qr-placeholder svg { color:#6d8765; }
#qr-note { margin:12px 0 0; color:#d9e5ca; }
.pool-heading { display:flex; justify-content:space-between; align-items:center; margin:34px 0 18px; gap:16px; }
.pool-heading h2 { font-size:22px; margin:7px 0 0; }
.pool-heading>span { color:#6c8362; background:#edf3e3; border-radius:30px; padding:9px 15px; font-size:12px; white-space:nowrap; }
.spark-icon { color:#9fba64; display:inline-block; animation:spark-turn 12s linear infinite; }
.arrival-pool { min-height:180px; display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; padding:24px; border:1px solid #e1e9d9; border-radius:20px; background:radial-gradient(circle at 3px 3px,#cbd6bd 1px,transparent 1.5px) 0 0/20px 20px,#f8faf3; }
.arrival-card { padding:16px; display:flex; align-items:center; gap:10px; border:1px solid #d8e5cb; background:#fff; border-radius:15px; box-shadow:0 5px 18px #334b3410; transition:transform .3s,box-shadow .3s; }
.arrival-card:hover { transform:rotate(-1.5deg) translateY(-4px); box-shadow:0 12px 22px #334b3418; }
.arrival-avatar { width:42px; height:42px; flex-shrink:0; display:grid; place-items:center; background:#e7efda; border-radius:13px; color:#4c6b3d; font-size:13px; font-weight:600; }
.arrival-card strong { display:block; font-size:14px; }
.arrival-card small { display:block; color:#95a08c; font-size:10px; margin-top:5px; }
.arrival-badge { font-size:10px; margin-left:auto; color:#537942; white-space:nowrap; }
.fresh-arrival { animation:card-burst .75s cubic-bezier(.17,.89,.24,1.2) both; }
.pool-empty { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; gap:12px; padding:18px; color:#718164; }
.pool-empty strong { font-weight:500; }
.pool-empty small { color:#9aa48d; }
.waiting-orb { width:48px; height:48px; display:grid; place-items:center; background:#e9f1da; color:#90a45e; border-radius:50%; font-size:28px; animation:orb-float 4s ease-in-out infinite; }
.review-panel { margin:24px 0 34px; border:1px solid #e3e8da; border-radius:14px; padding:18px; }
.review-panel summary { cursor:pointer; font-size:14px; font-weight:550; }
.review-panel summary small { margin-left:12px; color:#8a957e; font-weight:400; }
.review-panel summary>span { float:right; color:#8a957e; font-size:12px; }
.review-panel[open]>.section-title { margin-top:24px; }
.insight-hero { position:relative; overflow:hidden; border-radius:22px; padding:28px 32px; margin:22px 0; background:linear-gradient(120deg,#e3edcd,#f3f4dd); display:grid; grid-template-columns:1fr auto; gap:20px; }
.insight-hero h3 { font-size:28px; margin:12px 0; letter-spacing:1px; }
.insight-hero p { color:#84916f; font-size:12px; margin:0; }
.hero-rate { display:flex; flex-direction:column; justify-content:center; align-items:center; z-index:1; }
.hero-rate strong { font-size:44px; color:#426334; font-weight:550; }
.hero-rate span { font-size:11px; color:#899a76; margin-top:5px; }
.insight-metrics { display:flex; gap:30px; grid-column:1/-1; padding-top:16px; border-top:1px solid #ccd7b780; z-index:1; }
.insight-metrics span { font-size:12px; color:#82906d; }
.insight-metrics b { color:#416331; font-size:22px; margin-right:6px; }
.insight-spark { position:absolute; right:110px; top:-50px; font-size:200px; color:#91ad50; opacity:.08; animation:spark-turn 28s linear infinite; font-style:normal; pointer-events:none; }
.stats-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.student-orbit { padding:22px; background:#fff; border:1px solid #e4e8dc; border-radius:20px; box-shadow:0 4px 16px #243f2e04; transition:transform .3s,box-shadow .3s,border-color .3s; }
.student-orbit:hover { transform:translateY(-6px) rotate(-.7deg); box-shadow:0 18px 35px #243f2e12; border-color:#baca9d; }
.orbit-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.orbit-initial { height:33px; width:33px; display:grid; place-items:center; border-radius:11px; background:#edf0e4; color:#84956d; font-size:13px; }
.star-badge { font-size:10px; border-radius:20px; background:#f2f5e6; color:#90a05c; padding:6px 10px; }
.orbit-main { display:flex; justify-content:space-between; align-items:center; margin:18px 0; gap:12px; }
.orbit-main h3 { font-size:18px; margin:0 0 6px; font-weight:550; }
.orbit-main small { font-size:10px; color:#9aa48e; }
.rate-ring { width:75px; height:75px; flex-shrink:0; border-radius:50%; background:conic-gradient(#8eab55 var(--rate),#edf1e6 0); display:grid; place-items:center; transform:rotate(0); animation:ring-bloom .8s both; }
.rate-ring strong { width:59px; height:59px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; color:#45632e; }
.rate-ring small { margin-left:2px; font-size:9px; }
.attendance-dots { display:flex; gap:5px; flex-wrap:wrap; min-height:12px; margin:0 0 18px; }
.attendance-dots i { display:block; width:9px; height:9px; border-radius:3px; background:#a6bf72; animation:dot-bloom .8s both; }
.attendance-dots .missed { background:#d9aa91; }.attendance-dots .excused { background:#e6d28e; }
.student-orbit footer { display:flex; justify-content:space-between; border-top:1px solid #eef0e8; padding-top:13px; color:#a2aa96; font-size:10px; }
.student-orbit footer b { color:#647757; font-weight:500; }
.insight-empty { grid-column:1/-1; padding:40px; text-align:center; color:#8a9b76; border:1px dashed #cfdabc; border-radius:18px; line-height:2; }
.session-command { position:fixed; bottom:18px; left:260px; right:38px; padding:18px 22px; border-radius:20px; background:#fcfff8ee; backdrop-filter:blur(20px); border:1px solid #d7e1ce; box-shadow:0 12px 55px #16352423; display:flex; gap:20px; align-items:center; justify-content:space-between; z-index:35; }
.command-info { min-width:0; }.command-info strong { font-size:13px; color:#4b6441; }.command-info p { font-size:11px; color:#849578; margin:7px 0 0; line-height:1.6; max-width:650px; }.command-buttons { display:flex; gap:10px; flex-shrink:0; }
body.focus-mode .sidebar,body.focus-mode .topbar { display:none; }body.focus-mode .shell { display:block; }body.focus-mode .main { padding:28px; max-width:1600px; }.focus-mode .session-command { left:28px; right:28px; }
#presence:fullscreen { background:var(--bg); overflow:auto; padding:32px 40px 150px; }#presence:fullscreen .session-command { left:40px; right:40px; }
@keyframes card-burst { 0% { opacity:0; transform:scale(.15) rotate(-16deg); filter:blur(8px); } 60% { opacity:1;transform:scale(1.09) rotate(4deg);filter:blur(0); } 100% { transform:scale(1) rotate(0); } }
@keyframes orb-float { 0%,100% { transform:translateY(0); }50% { transform:translateY(-7px); } }
@keyframes spark-turn { to { transform:rotate(360deg); } }
@keyframes ring-bloom { from { transform:scale(.65) rotate(-70deg);opacity:0; }to{transform:scale(1) rotate(0);opacity:1;} }
@keyframes dot-bloom { from { transform:scale(0);opacity:0; }to{transform:scale(1);opacity:1;} }
@media(max-width:1100px){.session-command{left:228px;right:24px;}.live{grid-template-columns:minmax(0,1fr) 200px;padding:24px;gap:22px;}.stats-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}}
@media(max-width:900px){.session-command{left:20px;right:20px;}}
@media(max-width:650px){.heading{gap:14px;flex-wrap:wrap;}.presence-toolbar{width:100%;}.presence-toolbar button{flex:1;font-size:11px;padding:10px;}.live{grid-template-columns:1fr;gap:24px;padding:25px;}.qr-empty{width:100%;max-width:280px;justify-self:center;}.qr-frame{max-width:220px;}.arrival-pool{padding:14px;grid-template-columns:1fr;}.pool-heading{align-items:flex-start;}.pool-heading h2{font-size:20px;}.pool-heading>span{font-size:10px;padding:8px 10px;}.stats-cards{grid-template-columns:1fr;}.insight-hero{padding:24px;gap:12px;}.insight-hero h3{font-size:24px;}.hero-rate strong{font-size:34px;}.insight-metrics{gap:15px;}.insight-metrics b{font-size:18px;}.session-command{left:12px;right:12px;bottom:12px;padding:14px;gap:12px;flex-wrap:wrap;}.command-info{width:100%;}.command-buttons{width:100%;}.command-buttons button{flex:1;font-size:12px;}.command-info p{font-size:10px;max-height:34px;overflow:auto;}.student-orbit{padding:20px;}#presence:fullscreen{padding:20px 14px 170px;}.focus-mode .session-command,#presence:fullscreen .session-command{left:12px;right:12px;}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
.celebration-canvas { position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:60; }
@media(min-width:901px) and (max-width:1100px){.session-command{left:228px;}}
/* Compact name / student-number chips, sized to content rather than the grid. */
.arrival-pool { display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:9px;padding:18px;min-height:120px; }
.arrival-card { flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:9px 13px;border-radius:11px;min-height:49px;max-width:100%; }
.arrival-card strong { font-size:13px;line-height:1.3;white-space:nowrap; }
.arrival-card small { font-size:10px;line-height:1.3;margin:0;color:#839176;white-space:nowrap; }
.pool-empty { flex:1 0 100%;padding:14px; }
@media(max-width:650px){.arrival-pool{display:flex;padding:12px;gap:8px;}.arrival-card{padding:8px 11px;min-height:46px;}}

/* Dashboard: independent CSS adaptation of Magic UI Bento Grid layout ideas. */
.desk-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:12px 0 34px}.desk-heading h1{font-size:42px;letter-spacing:-1.8px;font-weight:550;margin:14px 0}.desk-heading p{color:#8a9485;font-size:13px;line-height:1.8;margin:0}.desk-heading-spark{display:inline-block;color:#95a876;margin-left:18px;font-size:32px;animation:desk-spin 28s linear infinite}.desk-status{border:1px solid #dbe3d2;background:#f0f4e9;border-radius:50px;padding:10px 15px;font-size:11px;white-space:nowrap;color:#637954;display:flex;align-items:center;gap:8px}.desk-status-dot{width:6px;height:6px;background:#7d9b5d;border-radius:50%;box-shadow:0 0 0 4px #7d9b5d14}
.desk-bento{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(240px,1fr);gap:22px;align-items:stretch}.desk-main{min-width:0;position:relative;border:1px solid #e0e6d8;border-radius:26px;padding:22px;background:#fdfefb;box-shadow:0 6px 30px #244b3d05;animation:desk-enter .65s both}.desk-project-label{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;color:#4e6546;font-size:13px}.desk-project-label small{font-size:9px;letter-spacing:2px;color:#9ca78f}
#dashboard-project .project{border:none;box-shadow:none;overflow:hidden;border-radius:19px;margin:0;transition:transform .45s cubic-bezier(.2,.8,.2,1)}#dashboard-project .project:hover{transform:translateY(-3px)}#dashboard-project .project-art{min-height:240px;padding:30px;position:relative;background:radial-gradient(ellipse at 100% 0,#c6d8ab55,transparent 65%),#edf2e4;overflow:hidden}#dashboard-project .project-art:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#84987230 1px,transparent 1px);background-size:18px 18px;mask-image:linear-gradient(90deg,transparent,#000);pointer-events:none}#dashboard-project .presence-art{font-size:150px;right:20px;opacity:.5;transition:transform .7s;color:#93aa78;animation:desk-float 8s ease-in-out infinite}#dashboard-project .project:hover .presence-art{color:#78975d}#dashboard-project .word{font-size:65px;position:relative}#dashboard-project .project-body{padding:26px 8px 4px}#dashboard-project .project-title h3{font-size:20px}#dashboard-project .project-body p{line-height:1.9;color:#86917d}#dashboard-project .project-foot{padding-top:23px}#dashboard-project .project-foot button{background:#244b3d;color:white;padding:12px 18px;border-radius:12px;display:flex;align-items:center;gap:12px;font-size:12px}#dashboard-project .project-foot button:hover{background:#396450;box-shadow:0 6px 16px #244b3d22}#dashboard-project .project-foot button svg{color:inherit}
.desk-shortcuts{display:grid;grid-template-rows:1fr 1fr;gap:22px}.desk-shortcut{position:relative;overflow:hidden;text-align:left;display:flex;flex-direction:column;justify-content:space-between;gap:36px;min-height:210px;border-radius:26px;padding:25px;border:1px solid #dfe6d5;background:#eaf0df;animation:desk-enter .65s .1s both;transition:transform .35s,box-shadow .35s,border-color .35s}.desk-shortcut:hover{transform:translateY(-5px)!important;box-shadow:0 14px 35px #244b3d12;border-color:#b9c8a7}.desk-shortcut-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.desk-symbol{font-size:30px;color:#617c4e}.desk-arrow{width:34px;height:34px;border:1px solid #aebf9760;border-radius:50%;display:grid;place-items:center;font-size:19px;color:#607c4e;transition:transform .35s}.desk-shortcut:hover .desk-arrow{transform:rotate(45deg)}.desk-shortcut-copy{display:flex;flex-direction:column;gap:9px;position:relative;z-index:1}.desk-shortcut-copy small{font-size:8px;letter-spacing:2px;color:#96a384}.desk-shortcut-copy strong{font-size:24px;font-weight:550;color:#425936}.desk-shortcut-copy>span{font-size:11px;color:#86957a}.desk-shortcut-account{background:#f2f1e9;border-color:#e5e4d9;animation-delay:.18s}.desk-grid-art{position:absolute;right:-15px;top:60px;width:160px;height:160px;transform:rotate(-15deg);background:repeating-linear-gradient(0deg,transparent 0 28px,#8da47120 28px 29px),repeating-linear-gradient(90deg,transparent 0 28px,#8da47120 28px 29px);mask-image:linear-gradient(90deg,transparent,#000);transition:transform .7s}.desk-shortcut:hover .desk-grid-art{transform:rotate(0deg) scale(1.1)}.desk-orbit-art{position:absolute;width:190px;height:190px;border:1px solid #b9b58e35;border-radius:50%;right:-65px;top:35px;box-shadow:0 0 0 22px #b9b58e09,0 0 0 44px #b9b58e06;animation:desk-float 10s ease-in-out infinite}
@keyframes desk-enter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes desk-spin{to{transform:rotate(360deg)}}@keyframes desk-float{50%{transform:translateY(-10px) rotate(8deg)}}
@media(max-width:1050px){.desk-bento{grid-template-columns:minmax(0,1.6fr) minmax(210px,1fr);gap:16px}.desk-main{padding:18px}.desk-shortcuts{gap:16px}.desk-shortcut{padding:22px}#dashboard-project .project-foot{gap:12px;flex-wrap:wrap}}
@media(max-width:760px){.desk-heading{margin:8px 0 24px;align-items:flex-start;flex-direction:column;gap:16px}.desk-heading h1{font-size:34px}.desk-bento{grid-template-columns:1fr}.desk-shortcuts{grid-template-columns:1fr 1fr;grid-template-rows:auto}.desk-shortcut{min-height:200px;padding:20px;gap:26px}.desk-shortcut-copy strong{font-size:20px}#dashboard-project .project-art{min-height:200px}.desk-status{font-size:10px}}
@media(max-width:420px){.desk-shortcuts{grid-template-columns:1fr}.desk-shortcut{min-height:175px}.desk-main{padding:15px}#dashboard-project .project-art{padding:23px}#dashboard-project .word{font-size:54px}#dashboard-project .presence-art{font-size:115px;right:10px}#dashboard-project .project-body{padding:22px 3px 4px}.desk-heading p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.desk-main,.desk-shortcut,.desk-heading-spark,.desk-orbit-art,#dashboard-project .presence-art{animation:none}.desk-shortcut,.desk-grid-art,#dashboard-project .project{transition:none}}

.review-note{font-size:12px;color:#829174;line-height:1.8}.review-select{min-width:100px;border:1px solid #d6dfcb;border-radius:9px;padding:8px 10px;background:#f7f9f2;color:#365235;font:inherit;font-size:12px}.review-select:focus{outline:2px solid #a3b68a;outline-offset:2px}.review-source{display:block;font-size:9px;color:#9aa58f;margin-top:5px}.review-status-present{background:#e4f0d6;color:#547638}.review-status-late{background:#fff0d6;color:#9e721f}.review-status-absent{background:#f8e7e2;color:#aa6654}.review-status-excused{background:#e8eaf3;color:#777b9b}
