/* Shared icon geometry, interaction states, and responsive navigation. */
.goal-inputs {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.goal-inputs label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.goal-inputs input {
  width: 110px;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
.goal-settings .hint-line {
  margin-top: 16px;
}
.period-goal {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6c5489;
  font-size: 12px;
  margin: 0 0 15px;
}
.period-goal .icon {
  width: 16px;
  height: 16px;
}
.member-select {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}
.member-select select {
  max-width: 300px;
  min-height: 44px;
}
.member-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: #f1ecf8;
  border: 1px solid #ded4eb;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
}
.member-detail-summary > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-detail-summary strong {
  font-size: 16px;
  font-weight: 600;
}
.member-detail-summary span:not(.badge):not(.badge span) {
  font-size: 11px;
  color: var(--muted);
}
.detail-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 24px;
}
.detail-days {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 500px;
  overflow-y: auto;
  padding: 2px;
}
button.detail-day {
  display: grid;
  grid-template-columns: 1fr 14px;
  gap: 7px;
  justify-items: start;
  background: #f6f2fa;
  border: 1px solid #e4deeb;
  color: #604e76;
  padding: 12px;
  text-align: left;
  min-height: 66px;
}
button.detail-day > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
button.detail-day .icon {
  width: 14px;
  height: 14px;
}
button.detail-day > strong {
  grid-column: 1;
  font-size: 12px;
  font-weight: 500;
}
button.detail-day > .icon {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
button.detail-day:hover:not(:disabled),
button.detail-day.selected {
  background: #e7dbf4;
  border-color: #c3addf;
  color: #492e6a;
}
.detail-sessions {
  min-width: 0;
}
.detail-sessions h3 {
  margin: 0;
  font-size: 14px;
}
.detail-sessions .panel-head {
  align-items: flex-start;
  flex-wrap: wrap;
}
.person-name .member-detail-link {
  display: flex;
  font-size: 10px;
  min-height: 28px;
  padding: 3px 0;
}
.person-name .member-detail-link .icon {
  width: 12px;
  height: 12px;
}
#member-details,
#admin-day-sessions {
  scroll-margin-top: 20px;
}
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
  }
  .member-select select {
    max-width: 235px;
  }
}
@media (max-width: 700px) {
  .goal-inputs {
    gap: 10px;
  }
  .goal-inputs label {
    flex: 1;
  }
  .goal-inputs input {
    width: 100%;
  }
  .goal-inputs button {
    width: 100%;
    margin-top: 3px;
  }
  .member-select {
    width: 100%;
    flex-wrap: wrap;
  }
  .member-select select {
    max-width: 100%;
    flex: 1;
    min-width: 0;
  }
  .member-detail-summary {
    gap: 20px;
    padding: 14px;
  }
  .member-detail-summary strong {
    font-size: 14px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 230px;
  }
  .detail-sessions h3 {
    font-size: 13px;
  }
  .period-goal {
    font-size: 11px;
  }
}
:root {
  --ink: #20142e;
  --muted: #756c7f;
  --line: #e3dee9;
  --radius: 20px;
}
html {
  scroll-padding-bottom: 100px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
button,
.button {
  min-height: 44px;
  gap: 9px;
  border: 1px solid transparent;
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
  line-height: 1.4;
}
button:hover:not(:disabled),
.button:hover {
  background: #382a4a;
}
button:active:not(:disabled),
.button:active {
  transform: translateY(1px);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #8564ad;
  outline-offset: 4px;
}
button.secondary,
.button.secondary {
  background: #ede8f4;
  border-color: #e3dceb;
  color: #503a6a;
}
button.secondary:hover,
.button.secondary:hover {
  background: #e1d7ed;
}
button.danger:hover {
  background: #fbe3dc;
}
button.small,
.button.small {
  min-height: 38px;
}
.small .icon,
.text-button .icon {
  width: 16px;
  height: 16px;
}
button.icon-button {
  min-width: 42px;
  min-height: 42px;
  padding: 10px;
}
button.text-button {
  min-height: 38px;
  background: transparent;
  color: #5d457b;
  padding: 8px 3px;
  font-size: 12px;
}
button.text-button:hover {
  color: #372151;
  background: #eee7f7;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 50;
  padding: 12px;
  background: white;
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
.content:focus,
h1:focus {
  outline: none;
}
.loading {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
}
.loading-spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #dcd2e9;
  border-top-color: #644986;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.is-busy .icon:first-child {
  animation: pulse 0.8s ease-in-out infinite;
}
.is-busy[data-action="refresh-stats"] .icon {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
.shell {
  grid-template-columns: 238px 1fr;
}
.sidebar {
  height: 100dvh;
  padding-bottom: 24px;
}
.sidebar-brand {
  padding-left: 5px;
}
.brand {
  gap: 12px;
  color: #f7f3fc;
}
.brand-sub {
  margin: 7px 0 48px 45px;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #9387a0;
}
.nav button {
  gap: 13px;
  position: relative;
  border-radius: 12px;
  font-size: 13px;
}
.nav button > .icon {
  width: 19px;
  height: 19px;
  opacity: 0.85;
}
.nav button:hover:not(:disabled) {
  background: #2e213e;
  color: #eae1f4;
}
.nav button.active {
  background: #392b4b;
  color: #e0cff5;
}
.nav button.active > .icon {
  color: #ba94e8;
  opacity: 1;
}
.nav button.active:before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  background: #ba94e8;
  border-radius: 4px;
}
.nav-short,
.mobile-account {
  display: none;
}
.sidebar-note {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: auto;
  margin-bottom: 24px;
  padding: 17px 12px;
  border: 1px solid #3f334e;
  border-radius: 13px;
  color: #9d83bd;
}
.sidebar-note strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #c5b3da;
}
.sidebar-note span {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #8b7e9b;
}
.sidebar-foot {
  margin-top: 0;
  padding-left: 8px;
}
.user-line strong {
  font-weight: 500;
  color: #e4dbef;
}
.user-line small {
  display: block;
  color: #9486a6;
  font-size: 10px;
}
.sidebar-foot button {
  min-height: 32px;
  gap: 9px;
  font-size: 11px;
}
.sidebar-foot button:hover {
  background: transparent;
  color: white;
}
.sidebar-foot .icon {
  width: 16px;
  height: 16px;
}
.topbar {
  gap: 15px;
}
.crumb,
.topbar-date {
  display: flex;
  align-items: center;
  gap: 9px;
}
.crumb > .icon {
  width: 17px;
  height: 17px;
  color: #7b6c8e;
}
.crumb > .icon:nth-of-type(2) {
  width: 12px;
  height: 12px;
  color: #a59ab2;
}
.crumb > span:last-child {
  color: #554865;
}
.topbar-date {
  font-size: 11px;
}
.topbar-date > .icon {
  width: 15px;
  height: 15px;
}
.timezone {
  font-size: 10px;
  border-left: 1px solid #d7cfe1;
  padding-left: 10px;
}
.page-head h1 {
  font-size: 30px;
  letter-spacing: -0.7px;
  line-height: 1.45;
}
.page-head p {
  font-size: 12px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 3px;
}
.badge .icon {
  width: 14px;
  height: 14px;
}
.badge.live {
  background: #e7ddf3;
  color: #513277;
  border-color: #d5c4ea;
}
.badge.gray {
  background: #f0ecf4;
  border-color: #e4dfea;
}
.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card,
.panel {
  min-width: 0;
  box-shadow: 0 3px 16px #2c1d3e03;
}
.card {
  padding-top: 22px;
  padding-bottom: 22px;
}
.card-label {
  gap: 10px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #f0ebf7;
  border: 1px solid #e8e0f2;
  border-radius: 10px;
  color: #7e669c;
}
.primary .metric-icon {
  background: #ebe1f8;
  border-color: #d8c9ec;
  color: #68488f;
}
.metric-icon .icon {
  width: 18px;
  height: 18px;
}
.metric {
  margin-top: 18px;
}
.sync-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #857894;
  font-size: 10px;
  margin: 13px 2px 0;
}
.sync-line .icon {
  width: 12px;
  height: 12px;
}
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.section-title > .icon {
  width: 18px;
  height: 18px;
  color: #84719b;
}
.panel-head h2 {
  font-size: 17px;
}
.progress-meta {
  gap: 10px;
}
.progress-meta strong {
  font-weight: 600;
}
.progress-meta > span {
  color: #7e708e;
}
.progress-track > i {
  transition: width 0.35s ease;
}
.progress-caption strong {
  font-weight: 500;
  color: #603d8a;
}
.chart-bar {
  max-width: 38px;
  transition: height 0.35s ease;
}
.chart-day .today-label {
  color: #57397a;
  font-weight: 600;
}
.device-illustration {
  position: relative;
  width: max-content;
  margin: 4px 0 22px;
}
.device-illustration .device-icon {
  margin: 0;
  width: 66px;
  height: 66px;
  border-radius: 19px;
}
.device-icon > .icon {
  width: 31px;
  height: 31px;
  stroke-width: 1.5;
}
.device-seal {
  position: absolute;
  right: -7px;
  bottom: -5px;
  background: #5f4184;
  color: #fff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid white;
}
.device-seal .icon {
  width: 13px;
  height: 13px;
}
.device-summary h3 {
  margin-bottom: 9px;
}
.device-meta > .icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}
.device-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #ebe6f2;
  padding-top: 16px;
  margin-top: 21px;
  font-size: 11px;
  color: #755998;
}
.device-rule .icon {
  width: 16px;
  height: 16px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.notice > .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.notice.error {
  background: #fff1ec;
  border-color: #f0d8ce;
  color: #a05b43;
}
.notice a {
  font-weight: 600;
}
.hint-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.9;
  color: #7b6d8d;
  margin: 20px 0 0;
}
.hint-line .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.table-wrap {
  max-width: 100%;
  overscroll-behavior-x: contain;
}
tbody tr {
  transition: background 0.12s;
}
tbody tr:hover {
  background: #f8f5fc;
}
.table-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.table-date .icon {
  width: 14px;
  height: 14px;
  color: #8b75a5;
}
.rank-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 33px;
  gap: 5px;
  color: #88789b;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  padding: 0 7px;
  border-radius: 9px;
}
.rank-mark .icon {
  width: 17px;
  height: 17px;
}
.rank-1 {
  background: #f8f1df;
  color: #a58947;
}
.rank-2 {
  background: #f0eff2;
  color: #7e9590;
}
.rank-3 {
  background: #f7eee5;
  color: #b18c6b;
}
.me-row:hover {
  background: #ece3f7;
}
.avatar {
  flex: none;
}
.you-tag {
  font-size: 9px;
  color: #6f588b;
  border: 1px solid #d7c8ea;
  background: #ece3f7;
  padding: 1px 5px;
  border-radius: 4px;
}
.duration-cell {
  font-weight: 500;
  color: #46345c;
}
.segmented {
  border: 1px solid #e2daeb;
  border-radius: 11px;
}
.segmented button {
  min-height: 35px;
  gap: 6px;
  border-radius: 8px;
}
.segmented button .icon {
  width: 14px;
  height: 14px;
}
.segmented button:hover {
  background: #f0ebf7;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ddd4e8;
  border-radius: 10px;
  background: #fff;
  padding: 0 10px;
  color: #89779f;
}
.filter-label .icon {
  width: 15px;
  height: 15px;
}
.filter-label input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 12px;
  min-height: 42px;
}
.date-range {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #806f94;
}
.date-range .icon {
  width: 13px;
  height: 13px;
}
.empty {
  padding: 28px 18px 36px;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 12px;
}
.empty-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f2eef7;
  border: 1px solid #e9e3f2;
  color: #947cb1;
  margin-bottom: 15px;
}
.empty-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.empty strong {
  font-size: 13px;
  font-weight: 500;
  color: #665080;
}
.empty p {
  font-size: 11px;
  margin: 7px 0 0;
  max-width: 380px;
}
.binding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.binding-steps > div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ebe3f4;
  border: 1px solid #e0d7eb;
  padding: 16px 20px;
  border-radius: 13px;
  color: #7c619c;
}
.binding-steps > div > .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.5;
}
.binding-steps span {
  font-size: 12px;
  color: #604c78;
}
.binding-steps small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #8e7ca5;
  margin-bottom: 4px;
}
.mac-display {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 16px;
  background: #f4f0f9;
  border: 1px dashed #daccea;
  border-radius: 12px;
  margin-bottom: 14px;
  min-width: 0;
}
.mac-display .mono {
  margin: 8px 0 0;
  font-size: 16px;
  letter-spacing: 1px;
  user-select: all;
  line-height: 1.6;
}
.field-label {
  font-size: 10px;
  color: #847398;
}
.steps li:before {
  border-radius: 9px;
  border: 1px solid #d9c7ee;
}
.steps li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 13px;
  top: 34px;
  bottom: 7px;
  border-left: 1px dashed #d8cce7;
}
.guide-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 27px;
}
.guide-heading h2 {
  margin: 0 0 3px !important;
}
.guide-heading small {
  font-size: 11px;
}
.platform-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #eeedf0;
  border: 1px solid #e1dce8;
  color: #766986;
  border-radius: 12px;
}
.platform-icon.android {
  background: #ece3f7;
  color: #794daf;
  border-color: #dcceec;
}
.platform-icon .icon {
  width: 24px;
  height: 24px;
}
.faq details {
  border-top: 1px solid #ebe6f2;
}
.faq details:first-child {
  border-top: 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  min-height: 50px;
  padding: 16px 0;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  width: 16px;
  height: 16px;
  color: #8b75a6;
  transition: transform 0.15s;
}
.faq details[open] summary .icon {
  transform: rotate(90deg);
}
.faq p {
  margin-right: 27px;
}
.footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer .icon {
  width: 12px;
  height: 12px;
}
.admin-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6a4d8e;
  font-size: 11px;
}
.admin-label .icon {
  width: 15px;
  height: 15px;
}
.login-page {
  min-height: 100dvh;
}
.login-copy {
  padding: 40px 0;
}
.login-highlights {
  display: flex;
  gap: 20px;
  margin-top: 35px;
}
.login-highlights span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #a98fc9;
  font-size: 11px;
}
.login-highlights .icon {
  width: 16px;
  height: 16px;
}
.orbits {
  pointer-events: none;
}
.welcome-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #e6ddf2;
  border: 1px solid #dacde9;
  color: #694594;
  border-radius: 16px;
  margin-bottom: 28px;
}
.welcome-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}
.login-button span {
  flex: 1;
}
.login-button > .icon:last-child {
  width: 17px;
  height: 17px;
}
.login-notes > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.login-notes .icon {
  width: 18px;
  height: 18px;
  color: #896cac;
}
.login-form > small {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.login-form > small > .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.login-form .notice {
  margin-top: 12px;
  margin-bottom: 0;
}
.state-box .actions {
  justify-content: center;
}
.device-icon.error {
  color: #ab705c;
  background: #fbefe7;
}
#toast {
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #503d68;
  line-height: 1.7;
  z-index: 50;
}
#toast > .icon {
  width: 18px;
  height: 18px;
  color: #b691e4;
  margin-top: 2px;
}
#toast.toast-error {
  background: #724d38;
  border-color: #99775d;
}
#toast.toast-error > .icon {
  color: #f3d9aa;
}
.skeleton {
  padding-top: 37px;
}
.skeleton-head {
  width: 47%;
  height: 33px;
  border-radius: 8px;
  margin: 30px 0 35px;
}
.skeleton-card {
  height: 168px;
  border-radius: 20px;
}
.skeleton-panel {
  height: 285px;
  border-radius: 20px;
  margin-top: 25px;
}
.skeleton-head,
.skeleton-card,
.skeleton-panel {
  background: #e7e0f0;
  animation: skeleton 1.5s ease-in-out infinite;
}
@keyframes skeleton {
  50% {
    opacity: 0.4;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 208px 1fr;
  }
  .sidebar {
    padding-left: 17px;
    padding-right: 17px;
  }
  .main {
    padding-left: 28px;
    padding-right: 28px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 27px;
  }
}
@media (max-width: 900px) {
  .topbar-date .timezone {
    display: none;
  }
  .binding-steps {
    gap: 8px;
  }
  .binding-steps > div {
    padding: 14px;
    gap: 9px;
  }
  .binding-steps span {
    font-size: 11px;
  }
  .device-summary .device-illustration {
    float: left;
    margin-right: 23px;
    margin-top: 6px;
  }
  .device-summary .device-rule {
    clear: both;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    padding: 19px 20px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .sidebar-brand {
    padding: 0;
  }
  .brand {
    font-size: 18px;
    gap: 9px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .brand-sub {
    display: block;
    font-size: 7px;
    letter-spacing: 2px;
    margin: 3px 0 0 38px;
  }
  .sidebar-foot,
  .sidebar-note {
    display: none;
  }
  .mobile-account {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .mobile-account .avatar {
    width: 29px;
    height: 29px;
    font-size: 11px;
  }
  .mobile-name {
    font-size: 11px;
    max-width: 70px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #c2b0d9;
  }
  .mobile-account .icon-button {
    min-width: 36px;
    min-height: 38px;
    padding: 8px;
    background: #322542;
    color: #ad9bc3;
  }
  .mobile-account .icon {
    width: 17px;
    height: 17px;
  }
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: space-around;
    gap: 2px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #dfd6ea;
    background: #faf8fd;
    box-shadow: 0 -4px 25px #36274806;
  }
  .nav button {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 7px 3px;
    border-radius: 11px;
    min-width: 0;
    min-height: 52px;
    color: #89779f;
    font-size: 10px;
    background: transparent;
  }
  .nav button > .icon {
    width: 21px;
    height: 21px;
    opacity: 1;
  }
  .nav button.active {
    background: #eae0f6;
    color: #4c2d72;
  }
  .nav button.active > .icon {
    color: #684494;
  }
  .nav button.active:before {
    display: none;
  }
  .nav button:hover:not(:disabled) {
    background: #eee6f7;
    color: #4c2d72;
  }
  .nav-label {
    display: none;
  }
  .nav-short {
    display: block;
  }
  .main {
    padding: 0 17px calc(103px + env(safe-area-inset-bottom));
  }
  .topbar {
    height: 55px;
    gap: 8px;
  }
  .topbar .crumb {
    gap: 6px;
    font-size: 10px;
  }
  .crumb > .icon:first-child {
    display: none;
  }
  .topbar-date {
    gap: 5px;
    font-size: 9px;
  }
  .topbar-date > .icon {
    width: 12px;
    height: 12px;
  }
  .page-head {
    margin: 26px 0 22px;
    gap: 16px;
    flex-direction: column;
  }
  .page-head h1 {
    font-size: 24px;
    letter-spacing: -0.6px;
  }
  .page-head p {
    font-size: 11px;
  }
  .page-head .eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
    letter-spacing: 2.2px;
  }
  .head-actions {
    justify-content: space-between;
    width: 100%;
    padding-bottom: 0;
  }
  .head-actions .icon-button {
    min-height: 36px;
    min-width: 36px;
    padding: 8px;
  }
  .head-actions .icon {
    width: 17px;
    height: 17px;
  }
  .card {
    padding: 14px 12px;
  }
  .card-label {
    font-size: 10px;
    gap: 4px;
    align-items: flex-start;
  }
  .metric-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .metric-icon .icon {
    width: 14px;
    height: 14px;
  }
  .metric {
    font-size: 29px;
    letter-spacing: -1px;
    margin: 17px 0 9px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 3px;
  }
  .metric span {
    font-size: 9px;
    margin-left: 3px;
  }
  .card small {
    font-size: 9px;
    line-height: 1.8;
    display: block;
  }
  .sync-line {
    margin-top: 11px;
    font-size: 9px;
    gap: 5px;
    align-items: flex-start;
  }
  .sync-detail {
    display: none;
  }
  .panel-head {
    align-items: center;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .section-title {
    gap: 8px;
  }
  .section-title > .icon {
    width: 17px;
    height: 17px;
  }
  .panel-head small {
    font-size: 9px;
  }
  .progress-meta,
  .progress-caption {
    font-size: 11px;
  }
  .badge {
    font-size: 10px;
    padding: 6px 9px;
  }
  .badge > .icon {
    width: 13px;
    height: 13px;
  }
  .device-summary .device-illustration {
    margin-right: 19px;
  }
  .device-summary h3 {
    font-size: 14px;
  }
  .device-meta {
    font-size: 11px;
  }
  .device-illustration .device-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }
  .device-icon > .icon {
    width: 28px;
    height: 28px;
  }
  .device-rule {
    font-size: 10px;
  }
  .notice {
    padding: 13px 14px;
    font-size: 11px;
    gap: 9px;
    margin-bottom: 18px;
  }
  .notice > .icon {
    width: 16px;
    height: 16px;
  }
  .toolbar {
    width: 100%;
    gap: 9px;
    justify-content: space-between;
  }
  .segmented button {
    font-size: 11px;
    padding: 8px 12px;
    min-height: 36px;
  }
  .segmented button .icon {
    width: 13px;
    height: 13px;
  }
  .filter-label {
    padding: 0 9px;
    gap: 4px;
    min-width: 0;
  }
  .filter-label input {
    font-size: 11px;
    width: 116px;
    min-height: 43px;
    padding: 8px 0;
  }
  .filter-label > .icon {
    display: none;
  }
  .date-range {
    font-size: 9px;
  }
  table {
    font-size: 11px;
  }
  th {
    font-size: 10px;
    padding: 12px 7px;
  }
  td {
    padding: 14px 7px;
  }
  .person {
    gap: 6px;
  }
  .person .avatar {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }
  .you-tag {
    font-size: 8px;
    padding: 1px 4px;
  }
  .rank-mark {
    min-width: 25px;
    padding: 0 5px;
    font-size: 11px;
    gap: 3px;
    height: 30px;
  }
  .rank-mark > .icon {
    width: 14px;
    height: 14px;
  }
  .summary-table .badge {
    padding: 5px 7px;
    font-size: 9px;
  }
  .summary-table .badge > .icon {
    display: none;
  }
  .summary-table .duration-cell {
    font-size: 10px;
  }
  .table-date {
    gap: 6px;
  }
  .table-date > .icon {
    display: none;
  }
  button.small,
  .button.small {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 11px;
  }
  button.text-button {
    min-height: 42px;
    padding: 8px 2px;
    font-size: 11px;
  }
  .hint-line {
    font-size: 10px;
    margin-top: 16px;
  }
  .binding-steps {
    gap: 7px;
  }
  .binding-steps > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 12px;
  }
  .binding-steps span {
    font-size: 10px;
    line-height: 1.7;
  }
  .binding-steps small {
    display: inline;
    margin-right: 5px;
    font-size: 8px;
  }
  .binding-steps > div > .icon {
    width: 20px;
    height: 20px;
  }
  .mac-display {
    padding: 13px;
  }
  .mac-display .mono {
    font-size: 14px;
    letter-spacing: 0.6px;
  }
  .steps li {
    font-size: 11px;
  }
  .faq summary {
    font-size: 12px;
  }
  .footer {
    font-size: 8px;
  }
  .footer > span:last-child {
    display: none;
  }
  .login-copy {
    padding: 0;
  }
  .login-highlights,
  .welcome-icon {
    display: none;
  }
  #toast {
    bottom: calc(83px + env(safe-area-inset-bottom));
    font-size: 11px;
  }
  .skeleton {
    padding-top: 26px;
  }
  .skeleton-head {
    margin: 18px 0 30px;
    width: 80%;
    height: 30px;
  }
  .skeleton-card {
    height: 135px;
    border-radius: 14px;
  }
}
@media (max-width: 370px) {
  .mobile-name {
    display: none;
  }
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .card {
    padding: 13px 9px;
  }
  .card-label {
    font-size: 9px;
  }
  .metric-icon {
    width: 23px;
    height: 23px;
  }
  .metric {
    font-size: 26px;
  }
  .toolbar {
    gap: 7px;
  }
  .segmented button {
    padding: 8px 10px;
  }
  .filter-label {
    padding: 0 7px;
  }
  .filter-label input {
    width: 110px;
  }
  .summary-table .person .avatar {
    display: none;
  }
  .binding-steps > div {
    padding: 12px 9px;
  }
  .binding-steps span {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Cyber Attend: purple and white identity. */
:root { --ink: #341753; --accent: #7c3aed; --brand-soft: #e9d5ff; --muted: #746781; --line: #ece5f4; color: #30233d; background: #faf8ff; }
body { background: #faf8ff; }
.login-form { background: #fff; }
.login-art { background: #3b1763; }
.login-button { background: #7c3aed; }
.login-button:hover:not(:disabled) { background: #6d28d9; }
.sidebar { background: #321550; }
.nav button.active { background: #e9d5ff; color: #4c1d95; }
.progress i, .bar span { background: #8b5cf6; }


.management-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.management-form label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; min-width: 180px; max-width: 100%; }
.management-form select { min-height: 44px; max-width: 100%; }
.personal-goal-inputs { margin-top: 18px; }
.admin-people { display: grid; gap: 10px; }
.admin-person { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #faf8ff; }
.admin-person small { display: block; margin-top: 7px; }
.row-target { display: block; margin-top: 8px; font-size: 11px; white-space: nowrap; }
#individual-targets, #administrator-settings { scroll-margin-top: 20px; }
.management-dialog { width: min(440px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.management-dialog::backdrop { background: #24103577; }
.management-dialog p { color: var(--muted); }
.management-dialog .actions { justify-content: flex-end; }
.overtime-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
#overtime-settings { scroll-margin-top: 20px; }
#overtime-summary { min-height: 84px; }
@media (max-width: 600px) { .management-form label { width: 100%; } .admin-person { flex-wrap: wrap; } }

/* Company interface: original logo, white chrome, concise labels. */
.brand img { display: block; width: 48px; max-width: 100%; height: auto; object-fit: contain; padding: 0; border-radius: 0; background: transparent; flex-shrink: 0; }
.brand { color: var(--ink); }
.sidebar { background: #fff; border-right: 1px solid var(--line); color: var(--muted); }
.sidebar-brand { padding: 0; }
.brand-sub { margin: 12px 0 30px; font-size: 13px; letter-spacing: 0; color: var(--ink); }
.nav button { color: var(--muted); }
.nav button:hover:not(:disabled) { background: #f4effa; color: var(--ink); }
.nav button.active { background: #eee5fb; color: #642d90; }
.nav button.active > .icon { color: #7c3aed; }
.sidebar-note { border-color: var(--line); color: var(--muted); }
.sidebar-note strong, .user-line strong, .mobile-name { color: var(--ink); }
.sidebar-note span, .user-line small { color: var(--muted); }
.sidebar-foot { border-color: var(--line); }
.sidebar-foot button, .sidebar-foot button:hover { color: var(--ink); }
.mobile-account .icon-button { background: #f4effa; color: var(--ink); }
.login-page.simple-login { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: 24px; }
.simple-login .login-form { width: 100%; max-width: 440px; padding: 36px; border: 1px solid var(--line); border-radius: 16px; margin: 0; }
.simple-login .brand img { width: 72px; }
.simple-login h1 { font-size: 24px; margin: 28px 0 12px; }
.simple-login .login-form .button { margin-top: 16px; }
.simple-login .login-form small { margin-top: 20px; }
@media (max-width: 900px) {
  .brand img { width: 40px; height: auto; }
  .brand-sub { margin: 6px 0 0; font-size: 11px; letter-spacing: 0; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .simple-login .login-form { padding: 28px; }
}
