:root {
  --brand-lavender: #96a8fe;
  --brand-lavender-deep: #7d8ff8;
  --brand-lavender-soft: #dce3ff;
  --brand-lavender-mist: #eef1ff;
  --brand-ink: #242424;
  --brand-ink-2: #3a3a3a;
  --brand-paper: #f8f8f6;
  --brand-line: #deded8;
  --brand-white: #ffffff;
  --text-sub: #6e6e73;
  --text-faint: #9a9aa0;
  --success: #34c759;
  --warning: #ff9500;
  --error: #ff3b30;
  --info: #007aff;
  --radius-xs: 9px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(36, 36, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(125, 143, 248, 0.16);
  --shadow-lg: 0 18px 50px rgba(36, 36, 36, 0.16);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(150, 168, 254, 0.22), transparent 30%),
    radial-gradient(circle at 82% 88%, rgba(220, 227, 255, 0.58), transparent 34%),
    #efefed;
  color: var(--brand-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.34);
  outline-offset: 2px;
}

.prototype-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
}

.prototype-panel {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.76);
  border-right: 1px solid rgba(222, 222, 216, 0.88);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  overflow: hidden;
  z-index: 90;
}

.prototype-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 20px;
}

.prototype-brand__mark,
.app-brand__mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, var(--brand-lavender), var(--brand-lavender-deep));
  box-shadow: var(--shadow-md);
}

.prototype-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 21px;
}

.prototype-brand__copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.prototype-brand__copy span {
  display: block;
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 11.5px;
}

.prototype-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.prototype-summary__item {
  padding: 11px 12px;
  border: 1px solid rgba(150, 168, 254, 0.22);
  border-radius: 13px;
  background: var(--brand-lavender-mist);
}

.prototype-summary__item strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.prototype-summary__item span {
  display: block;
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 11px;
}

.panel-section {
  margin-bottom: 14px;
}

.panel-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 4px 8px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: #ececea;
}

.segmented button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.segmented button.active {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.state-segmented {
  grid-template-columns: repeat(2, 1fr);
}

.role-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding: 2px 4px 16px;
  scrollbar-width: thin;
}

.role-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 13px;
  color: var(--brand-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.role-button:hover {
  background: rgba(150, 168, 254, 0.10);
}

.role-button:active {
  transform: scale(0.985);
}

.role-button.active {
  background: linear-gradient(135deg, rgba(150, 168, 254, 0.22), rgba(238, 241, 255, 0.82));
  box-shadow: inset 0 0 0 1px rgba(125, 143, 248, 0.20);
}

.role-dot {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--role-color, var(--brand-lavender)), var(--role-color-deep, var(--brand-lavender-deep)));
}

.role-button__copy {
  min-width: 0;
}

.role-button__copy strong,
.role-button__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-button__copy strong {
  font-size: 12.5px;
}

.role-button__copy span {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 10.5px;
}

.stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.stage-meta {
  width: min(100%, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 12px;
}

.stage-meta__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(222, 222, 216, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
}

.phone {
  width: 390px;
  height: min(844px, calc(100vh - 96px));
  min-height: 700px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 8px solid #202024;
  border-radius: 40px;
  background: var(--brand-paper);
  box-shadow: 0 28px 70px rgba(36, 36, 36, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.phone::before {
  content: "";
  width: 92px;
  height: 24px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #202024;
  z-index: 80;
  pointer-events: none;
}

.app-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 30px 14px 108px;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.app-header__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  font-size: 20px;
}

.app-header__copy {
  min-width: 0;
}

.app-header__copy h1 {
  max-width: 218px;
  overflow: hidden;
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-heading {
  margin: 4px 2px 13px;
}

.page-heading__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-heading h2 {
  color: var(--brand-ink);
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.compact-ui-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
}

.compact-ui-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-ui-label .icon {
  width: 0.9em;
  height: 0.9em;
  flex: 0 0 0.9em;
  color: var(--brand-lavender-deep);
}

.date-chip,
.status-chip,
.task-priority,
.record-status,
.human-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.date-chip {
  padding: 6px 9px;
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
  font-size: 10.5px;
}

.attendance-card {
  padding: 13px;
  margin-bottom: 13px;
  overflow: hidden;
  border: 1px solid rgba(150, 168, 254, 0.24);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #f7f8ff 100%);
  box-shadow: 0 10px 26px rgba(125, 143, 248, 0.12);
}

.attendance-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}

.attendance-card__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-lavender), var(--brand-lavender-deep));
  box-shadow: 0 8px 16px rgba(125, 143, 248, 0.25);
}

.attendance-card__copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.attendance-card__copy strong {
  font-size: 13px;
  font-weight: 850;
}

.attendance-card__copy > span {
  overflow-wrap: anywhere;
  color: var(--text-sub);
  font-size: 9.5px;
  line-height: 1.35;
}

.attendance-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
  color: #248a3d;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.attendance-card__verified .icon {
  width: 10px;
  height: 10px;
}

.attendance-card__status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}

.attendance-card__status.waiting {
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
}

.attendance-card__status.working {
  color: #1d7544;
  background: #eaf8ef;
}

.attendance-card__status.done {
  color: #54606f;
  background: #eef1f4;
}

.attendance-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.attendance-action {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.attendance-action.is-active {
  color: #fff;
  background: linear-gradient(145deg, var(--brand-lavender), var(--brand-lavender-deep));
  box-shadow: 0 8px 18px rgba(125, 143, 248, 0.28);
  cursor: pointer;
}

.attendance-action.is-active:active {
  transform: scale(0.98);
}

.attendance-action.is-complete {
  color: var(--brand-lavender-deep);
  border-color: rgba(150, 168, 254, 0.28);
  background: var(--brand-lavender-mist);
}

.attendance-action.is-disabled {
  color: #9ba2ad;
  border-color: #ebecef;
  background: #f4f5f7;
}

.attendance-action:disabled {
  cursor: default;
}

.attendance-action__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.attendance-action.is-complete .attendance-action__icon {
  background: rgba(150, 168, 254, 0.18);
}

.attendance-action.is-disabled .attendance-action__icon {
  background: #e7e9ed;
}

.attendance-action__icon .icon {
  width: 15px;
  height: 15px;
}

.attendance-action__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.attendance-action__copy small {
  font-size: 8px;
  font-weight: 700;
  opacity: 0.78;
}

.attendance-action__copy strong {
  overflow: hidden;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-exception-link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(230, 122, 0, 0.18);
  border-radius: 13px;
  color: #a95d00;
  background: #fff8ed;
  text-align: left;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 800;
}

.attendance-exception-link span {
  min-width: 0;
  flex: 1;
}

.attendance-exception-link .icon {
  width: 15px;
  height: 15px;
}

.attendance-exception-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.attendance-exception-summary > div {
  min-width: 0;
  padding: 10px;
  border-radius: 13px;
  background: var(--brand-lavender-mist);
}

.attendance-exception-summary span,
.attendance-exception-summary strong {
  display: block;
}

.attendance-exception-summary span {
  margin-bottom: 3px;
  color: var(--text-sub);
  font-size: 8px;
}

.attendance-exception-summary strong {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 13px;
}

.metric-card {
  min-width: 0;
  padding: 15px 10px 12px;
  border: 1px solid rgba(222, 222, 216, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: center;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.metric-card:active {
  transform: scale(0.98);
}

.metric-card__label {
  min-height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.metric-card__value {
  overflow: hidden;
  color: var(--brand-ink);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card__trends {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 9px;
}

.trend {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 7px;
  color: #248a3d;
  background: rgba(52, 199, 89, 0.10);
  font-size: 8.3px;
  font-weight: 800;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 13px;
}

.quick-action {
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px;
  border: 1px solid rgba(222, 222, 216, 0.72);
  border-radius: 15px;
  color: var(--brand-ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.quick-action__icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
}

.quick-action__icon .icon {
  width: 15px;
  height: 15px;
}

.quick-action strong {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1;
}

.quick-action > span:last-child {
  width: 100%;
  overflow: hidden;
  color: var(--text-sub);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-lavender), var(--brand-lavender-deep));
  box-shadow: 0 8px 20px rgba(125, 143, 248, 0.26);
}

.quick-action.primary .quick-action__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.quick-action.primary > span:last-child {
  color: rgba(255, 255, 255, 0.92);
}

.trend.down {
  color: #d70015;
  background: rgba(255, 59, 48, 0.09);
}

.metric-card__note {
  margin-top: 7px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-card {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(222, 222, 216, 0.66);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.section-card.ai-tint {
  border-color: rgba(150, 168, 254, 0.30);
  background: linear-gradient(155deg, #f4f5ff, #e9edff);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 13px 10px;
}

.section-head__title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.section-head__icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
}

.icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.section-link {
  padding: 5px;
  color: var(--brand-lavender-deep);
  background: transparent;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 700;
}

.task-list,
.record-list,
.insight-list {
  padding: 0 12px 7px;
}

.task-row,
.record-row {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 1px;
  border-top: 1px solid #f0f0ee;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.task-row:first-child,
.record-row:first-child {
  border-top: 0;
}

.task-row.urgent {
  margin: 3px -5px;
  padding: 11px 7px;
  border: 1px solid rgba(255, 59, 48, 0.18);
  border-radius: 13px;
  background: rgba(255, 59, 48, 0.055);
}

.task-indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--brand-lavender);
  box-shadow: 0 0 0 4px rgba(150, 168, 254, 0.13);
}

.task-row.urgent .task-indicator {
  background: var(--error);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12);
}

.task-row.high .task-indicator {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.12);
}

.task-copy,
.record-copy {
  min-width: 0;
  flex: 1;
}

.task-copy strong,
.record-copy strong {
  display: block;
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.4;
}

.task-copy span,
.record-copy span {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--text-sub);
  font-size: 9.5px;
  line-height: 1.35;
  white-space: normal;
}

.task-side,
.record-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.task-priority,
.record-status {
  padding: 3px 6px;
  font-size: 8.5px;
}

.task-priority.urgent,
.record-status.urgent {
  color: #d70015;
  background: rgba(255, 59, 48, 0.10);
}

.task-priority.high,
.record-status.warning,
.record-status.returned {
  color: #a86100;
  background: rgba(255, 149, 0, 0.12);
}

.task-priority.normal,
.record-status.pending {
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
}

.record-status.success {
  color: #248a3d;
  background: rgba(52, 199, 89, 0.11);
}

.record-value {
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 700;
}

.chevron {
  flex: 0 0 auto;
  color: var(--text-faint);
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
}

.insight-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.insight-index {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
  font-size: 9px;
  font-weight: 900;
}

.insight-row p {
  color: var(--brand-ink-2);
  font-size: 10.5px;
  line-height: 1.48;
}

.filter-row {
  display: flex;
  gap: 7px;
  margin: 0 -14px 12px;
  padding: 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: var(--text-sub);
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.filter-chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
  box-shadow: var(--shadow-md);
}

.compact-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.compact-metric {
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid rgba(222, 222, 216, 0.70);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.compact-metric strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-metric span {
  display: block;
  min-height: 26px;
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 8.5px;
  line-height: 1.35;
}

.chart-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(222, 222, 216, 0.70);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  margin-bottom: 15px;
  font-size: 12.5px;
  font-weight: 800;
}

.bar-chart {
  height: 112px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 10px 2px 0;
  border-bottom: 1px solid var(--brand-line);
  background: repeating-linear-gradient(to top, transparent 0, transparent 27px, rgba(222, 222, 216, 0.42) 28px);
}

.bar-group {
  height: 100%;
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.bar {
  width: min(10px, 44%);
  min-height: 8px;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(to top, var(--brand-lavender-deep), var(--brand-lavender));
  box-shadow: 0 2px 7px rgba(125, 143, 248, 0.20);
}

.bar.secondary {
  background: #d9d9de;
  box-shadow: none;
}

.primary-action {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.ai-summary {
  margin-bottom: 12px;
  padding: 17px;
  border: 1px solid rgba(150, 168, 254, 0.28);
  border-radius: 20px;
  background: linear-gradient(150deg, #f5f6ff 0%, #e7ebff 100%);
  box-shadow: var(--shadow-sm);
}

.ai-orbit {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
  box-shadow: 0 10px 24px rgba(125, 143, 248, 0.28);
}

.ai-summary h3 {
  font-size: 15px;
}

.ai-summary p {
  margin-top: 7px;
  color: var(--brand-ink-2);
  font-size: 11px;
  line-height: 1.58;
}

.ai-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.ai-risk {
  padding: 9px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.ai-risk strong {
  display: block;
  font-size: 17px;
}

.ai-risk span {
  display: block;
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 8.5px;
}

.human-gate {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 149, 0, 0.20);
  border-radius: 13px;
  color: #8b5900;
  background: rgba(255, 149, 0, 0.08);
  font-size: 9.5px;
  line-height: 1.45;
}

.prompt-grid {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.prompt-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(150, 168, 254, 0.25);
  border-radius: 13px;
  color: var(--brand-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 700;
}

.ai-input-box {
  display: flex;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background: #fff;
}

.ai-input-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10.5px;
}

.ai-input-box button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
  cursor: pointer;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #aab7ff, #7789f1);
  box-shadow: var(--shadow-md);
}

.profile-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 19px;
  color: var(--brand-lavender-deep);
  background: rgba(255, 255, 255, 0.90);
  font-size: 17px;
  font-weight: 900;
}

.profile-hero__copy {
  min-width: 0;
}

.profile-hero__copy h3 {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero__copy p {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.45;
  opacity: 0.9;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.profile-stat {
  min-width: 0;
  padding: 11px 7px;
  border: 1px solid rgba(222, 222, 216, 0.68);
  border-radius: 13px;
  background: #fff;
  color: var(--brand-ink-2);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-top: 1px solid #f0f0ee;
}

.info-row:first-of-type {
  border-top: 0;
}

.info-row__icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
}

.info-row__copy {
  min-width: 0;
  flex: 1;
}

.info-row__copy strong {
  display: block;
  font-size: 10.5px;
}

.info-row__copy span {
  display: block;
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 9px;
  line-height: 1.4;
}

.info-row__action {
  align-self: center;
  color: var(--text-faint);
}

.settings-entry {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-top: 1px solid #f0f0ee;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.settings-entry:first-of-type {
  border-top: 0;
}

.settings-entry strong {
  flex: 1;
  font-size: 10.5px;
}

.settings-entry span {
  color: var(--text-faint);
  font-size: 9px;
}

.app-tabbar {
  height: calc(79px + var(--safe-bottom));
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 7px calc(10px + var(--safe-bottom));
  border-top: 0.5px solid rgba(222, 222, 216, 0.84);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 40;
}

.tab-button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 13px;
  color: var(--text-faint);
  background: transparent;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 700;
}

.tab-button .icon {
  width: 20px;
  height: 20px;
}

.tab-button span {
  width: 100%;
  overflow: hidden;
  padding: 0 2px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-button.active {
  color: var(--brand-lavender-deep);
  background: linear-gradient(180deg, rgba(238, 241, 255, 0.25), rgba(238, 241, 255, 0.94));
}

.ai-fab {
  width: 50px;
  height: 50px;
  position: absolute;
  right: 15px;
  bottom: calc(88px + var(--safe-bottom));
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
  box-shadow: 0 11px 28px rgba(125, 143, 248, 0.42);
  cursor: pointer;
  z-index: 38;
}

.ai-fab::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  right: 2px;
  top: 2px;
  border: 2px solid var(--brand-paper);
  border-radius: 50%;
  background: var(--success);
}

.overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(23, 23, 27, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
}

.overlay.show {
  display: flex;
}

.overlay--center {
  align-items: center;
  padding: 14px;
}

.overlay--lifted {
  align-items: flex-end;
  padding: 14px 12px 54px;
}

.sheet {
  width: 100%;
  max-height: 86%;
  overflow-y: auto;
  border-radius: 25px 25px 0 0;
  background: var(--brand-paper);
  box-shadow: var(--shadow-lg);
  animation: sheetUp 230ms cubic-bezier(0.32, 0.72, 0, 1);
}

.sheet--lifted {
  max-height: 78%;
  border-radius: 25px;
}

.modal-card {
  width: calc(100% - 28px);
  align-self: center;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modalIn 180ms ease-out;
}

.modal-card--scrollable {
  max-height: 78%;
  overflow-y: auto;
}

.attendance-modal .overlay-header h3 {
  display: flex;
  align-items: center;
  gap: 7px;
}

.attendance-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.attendance-facts > div {
  min-width: 0;
  padding: 10px;
  border-radius: 13px;
  background: var(--brand-paper);
}

.attendance-facts span,
.attendance-facts strong {
  display: block;
}

.attendance-facts span {
  color: var(--text-faint);
  font-size: 8.5px;
}

.attendance-facts strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.attendance-status {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(150, 168, 254, 0.22);
  border-radius: 16px;
  background: var(--brand-lavender-mist);
}

.attendance-status__icon,
.gps-spinner {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-lavender-deep);
  background: #fff;
}

.attendance-status > div {
  min-width: 0;
}

.attendance-status strong,
.attendance-status span {
  display: block;
}

.attendance-status strong {
  font-size: 12px;
}

.attendance-status > div span {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--text-sub);
  font-size: 9.5px;
  line-height: 1.35;
}

.attendance-status.success {
  border-color: rgba(52, 199, 89, 0.24);
  background: rgba(52, 199, 89, 0.09);
}

.attendance-status.success .attendance-status__icon {
  color: var(--success);
}

.attendance-status.error {
  border-color: rgba(255, 59, 48, 0.20);
  background: rgba(255, 59, 48, 0.07);
}

.attendance-status.error .attendance-status__icon {
  color: var(--error);
}

.gps-spinner {
  border: 3px solid rgba(150, 168, 254, 0.18);
  border-top-color: var(--brand-lavender-deep);
  animation: spin 780ms linear infinite;
}

.attendance-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.attendance-timeline > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 7px;
  align-items: center;
  padding: 9px;
  border-radius: 12px;
  color: var(--text-faint);
  background: var(--brand-paper);
}

.attendance-timeline > div > span {
  grid-row: 1 / 3;
}

.attendance-timeline strong,
.attendance-timeline small {
  font-size: 9px;
}

.attendance-timeline small {
  color: var(--text-sub);
}

.attendance-timeline .complete {
  color: var(--success);
}

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 8px auto 4px;
  border-radius: 999px;
  background: #d1d1d3;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 15px 10px;
}

.overlay-header h3 {
  font-size: 15px;
}

.close-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-sub);
  background: #ececea;
  cursor: pointer;
}

.overlay-body {
  padding: 4px 15px 18px;
}

.detail-hero {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid rgba(150, 168, 254, 0.25);
  border-radius: 15px;
  background: var(--brand-lavender-mist);
}

.detail-hero strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

.detail-hero span {
  display: block;
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 10px;
  line-height: 1.45;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.form-stack {
  display: grid;
  gap: 11px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: var(--text-sub);
  font-size: 9.5px;
  font-weight: 750;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  font-size: 10.5px;
}

.form-field input,
.form-field select {
  height: 42px;
  padding: 0 11px;
}

.form-field textarea {
  min-height: 82px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.5;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--brand-lavender-deep);
  box-shadow: 0 0 0 3px rgba(150, 168, 254, 0.14);
}

.upload-box {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px dashed rgba(125, 143, 248, 0.50);
  border-radius: 13px;
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
  cursor: pointer;
  text-align: left;
}

.upload-box strong,
.upload-box span {
  display: block;
}

.upload-box strong {
  font-size: 10.5px;
}

.upload-box span {
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 9px;
}

.collaboration-list {
  overflow: hidden;
  border: 1px solid rgba(222, 222, 216, 0.66);
  border-radius: 16px;
  background: #fff;
}

.collaboration-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid #f0f0ee;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.collaboration-row:first-child {
  border-top: 0;
}

.collaboration-row__count {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
  font-size: 13px;
  font-weight: 900;
}

.collaboration-row__copy {
  min-width: 0;
  flex: 1;
}

.collaboration-row__copy strong,
.collaboration-row__copy span {
  display: block;
}

.collaboration-row__copy strong {
  font-size: 10.5px;
}

.collaboration-row__copy span {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--text-sub);
  font-size: 9px;
  white-space: normal;
}

.detail-field {
  padding: 10px;
  border-radius: 12px;
  background: #f1f1ef;
}

.detail-field span,
.detail-field strong {
  display: block;
}

.detail-field span {
  color: var(--text-faint);
  font-size: 8.5px;
}

.detail-field strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 10.5px;
}

.approval-steps {
  margin: 12px 0;
}

.approval-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
}

.approval-step__dot {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
}

.approval-step.pending .approval-step__dot {
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
}

.approval-step__copy strong,
.approval-step__copy span {
  display: block;
}

.approval-step__copy strong {
  font-size: 10.5px;
}

.approval-step__copy span {
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 9px;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 15px 15px;
  border-top: 1px solid #ededeb;
}

.action-button {
  min-height: 43px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.action-button.secondary {
  color: var(--brand-ink);
  background: #efefed;
}

.action-button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
}

.action-button.danger {
  color: #d70015;
  background: rgba(255, 59, 48, 0.10);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #ededeb;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand-lavender-deep);
  background: var(--brand-lavender-mist);
}

.setting-row__copy {
  min-width: 0;
  flex: 1;
}

.setting-row__copy strong,
.setting-row__copy span {
  display: block;
}

.setting-row__copy strong {
  font-size: 11px;
}

.setting-row__copy span {
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 9px;
}

.switch {
  width: 40px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  background: #d7d7d5;
  cursor: pointer;
}

.switch::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(36, 36, 36, 0.18);
  transition: transform 160ms ease;
}

.switch.on {
  background: var(--brand-lavender-deep);
}

.switch.on::after {
  transform: translateX(16px);
}

.ai-chat-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.ai-chat-header {
  flex: 0 0 auto;
  padding: 24px 15px 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
}

.ai-chat-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-chat-header h3 {
  font-size: 16px;
}

.ai-chat-header p {
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.9;
}

.ai-chat-header .close-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.ai-chat-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 14px;
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 15px;
  font-size: 10.5px;
  line-height: 1.5;
}

.chat-bubble.ai {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: var(--brand-lavender-soft);
}

.chat-bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  color: #fff;
  background: var(--brand-lavender-deep);
}

.ai-chat-input {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px 13px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--brand-line);
  background: var(--brand-paper);
}

.ai-chat-input input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  font-size: 10.5px;
}

.ai-chat-input button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
  cursor: pointer;
}

.page-state {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  text-align: center;
}

.page-state__visual {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 23px;
  color: var(--brand-lavender-deep);
  background: linear-gradient(145deg, #f3f5ff, #e1e7ff);
  box-shadow: var(--shadow-md);
}

.page-state__visual.loading .icon {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-state h3 {
  font-size: 17px;
}

.page-state p {
  max-width: 280px;
  margin-top: 7px;
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.55;
}

.page-state button {
  min-width: 128px;
  min-height: 42px;
  margin-top: 18px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-lavender-deep));
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.toast {
  max-width: calc(100% - 34px);
  position: absolute;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  z-index: 130;
  padding: 9px 13px;
  border-radius: 12px;
  color: #fff;
  background: rgba(36, 36, 36, 0.90);
  box-shadow: var(--shadow-lg);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-prototype-button {
  display: none;
}

.role-drawer {
  display: none;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .prototype-layout {
    grid-template-columns: 246px minmax(0, 1fr);
  }

  .prototype-panel {
    padding-inline: 13px;
  }

  .stage {
    padding: 26px 18px;
  }
}

@media (max-width: 720px) {
  body {
    background: var(--brand-paper);
  }

  .prototype-layout {
    display: block;
    min-height: 100dvh;
  }

  .prototype-panel,
  .stage-meta {
    display: none;
  }

  .stage {
    display: block;
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before {
    display: none;
  }

  .app-scroll {
    padding-top: calc(12px + env(safe-area-inset-top));
  }

  .mobile-prototype-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 12px;
    color: var(--brand-lavender-deep);
    background: var(--brand-lavender-mist);
    cursor: pointer;
  }

  .app-brand__mark {
    display: none;
  }

  .app-header__copy h1,
  .app-header__copy p {
    max-width: calc(100vw - 124px);
  }

  .role-drawer {
    display: block;
  }
}

@media (max-width: 360px) {
  .app-scroll {
    padding-inline: 12px;
  }

  .metric-card__value {
    font-size: 18px;
  }

  .compact-metrics,
  .profile-stat-grid {
    gap: 5px;
  }

  .tab-button {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
