:root {
  --motion-fast: 180ms;
  --motion-medium: 300ms;
  --motion-slow: 500ms;
  --motion-ease: cubic-bezier(.2,.8,.2,1);
  --motion-spring: cubic-bezier(.3,1.4,.5,1);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  font-size: 17px;
  color-scheme: light dark;
  --page-bg: #F2F2F7;
  --surface: #fff;
  --sheet-bg: #F2F2F7;
  --sheet-person-bg: #fff;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --blue: #0066CC;
  --blue-fill: #0066CC;
  --border: #E5E5EA;
  --disabled-text: #767676;
  --segment-bg: #E3E3E8;
  --control-bg: #E9E9EE;
  --neutral-bg: #EFEFF4;
  --leave-text: #6E6E73;
  --leave-mark-bg: #FFFFFF;
  --leave-mark-text: #6E6E73;
  --segment-selected: #fff;
  --separator: #C7C7CC;
  --arrow: #8E8E93;
  --orange-text: #A84B00;
  --orange-soft-bg: #FDEEDC;
  --orange-soft-border: #F3D3B0;
  --blue-soft-bg: #E8F1FB;
  --blue-soft-text: #0058B0;
  --blue-soft-border: #C4DBF3;
  --green-soft-bg: #E3F3E7;
  --green-text: #1E7B34;
  --red-soft-bg: #FCEBEA;
  --red-text: #B3261E;
  --red-fill: #B3261E;
  --neutral-text: #545458;
  --secondary-text: #3A3A3C;
  --notice-bg: #1D1D1F;
  --backdrop: #00000052;
  --progress-track: #E1E1E6;
  --stamp-later-outline: #545458;
  --stamp-late-fill: #A84B00;
  --stamp-later-fill: #545458;
  --tint-on-time: #0066CC;
  --tint-late: #E07A1F;
  --tint-later: #8E8E93;
  --white: #fff;
  --transparent: transparent;
  --segment-shadow: 0 1px 3px #0000001f;
  --card-shadow: 0 14px 36px #0000001a;
  --next-card-shadow: 0 6px 18px #0000000f;
  --notice-shadow: 0 4px 16px #0003;
  --hud-error: #C25700;
  --hud-bg: #FFFFFFD1;
  --profile-shadow: 0 18px 50px #00000029;
  --profile-placeholder: #A1A1A6;
  --hud-shadow: 0 10px 40px #00000024;
}

@media (prefers-color-scheme: dark) {
  :root {
    --profile-shadow: none;
    --profile-placeholder: #6E6E73;
    --page-bg: #000000;
    --surface: #1C1C1E;
    --sheet-bg: #1C1C1E;
    --sheet-person-bg: #2C2C2E;
    --text: #FFFFFF;
    --muted: #98989D;
    --blue: #0A84FF;
    --blue-fill: #0071E3;
    --border: #38383A;
    --disabled-text: #8E8E93;
    --segment-bg: #1C1C1E;
    --control-bg: #2C2C2E;
    --neutral-bg: #2C2C2E;
    --leave-text: #AEAEB2;
    --leave-mark-bg: #FFFFFF;
    --segment-selected: #636366;
    --separator: #48484A;
    --orange-text: #FFB340;
    --orange-soft-bg: #3D2A10;
    --orange-soft-border: #6B4A1A;
    --blue-soft-bg: #10294A;
    --blue-soft-text: #6CB4FF;
    --blue-soft-border: #1D4F80;
    --green-soft-bg: #14301C;
    --green-text: #4CD675;
    --red-soft-bg: #3D1A18;
    --red-text: #FF6961;
    --neutral-text: #AEAEB2;
    --secondary-text: #AEAEB2;
    --notice-bg: #3A3A3C;
    --backdrop: #00000099;
    --progress-track: #38383A;
    --stamp-later-outline: #98989D;
    --stamp-late-fill: #C25700;
    --stamp-later-fill: #636366;
    --segment-shadow: none;
    --card-shadow: none;
    --next-card-shadow: none;
    --notice-shadow: none;
    --hud-error: #FFB340;
    --hud-bg: #2C2C2ED9;
    --hud-shadow: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.safe-area-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--page-bg);
  pointer-events: none;
  z-index: 10;
}

button, input {
  font: inherit;
}

button, a, input, .haptic {
  -webkit-tap-highlight-color: var(--transparent);
}

button, a, .haptic {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: 0;
}

button:disabled {
  cursor: default;
  opacity: .55;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a, button {
  transition: filter 120ms ease, transform 120ms ease;
}

button:hover:not(:disabled), a:hover {
  filter: brightness(.96);
}

/* 第四段丙-1（X-01）：按下缩小只给按钮和胶囊；列表行、可点卡片按下不缩小，改成变底色（见文件末尾“列表行按下变底色”）。 */
button:active:not(:disabled):not(:where(.stats-row, .r-row, .account-row, .prow, .gt-li, .gt-row, .gt-line, .ap-row, .role-row, .record-open, .staff-link, .wk-col)),
a:active:where(.primary, .pill-btn, .setup-get, .setup-web, .top-action, .resume, .back, .tc-no, .tc-back) {
  transform: scale(.98);
}

:focus {
  outline: none;
}

html[data-input="keyboard"] :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

#app {
  max-width: 430px;
  min-height: 100dvh;
  margin: auto;
  outline: none;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.25;
}

h2 {
  font-size: 20px;
}

button {
  min-height: 44px;
}

svg {
  flex-shrink: 0;
}

input {
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  border: 0;
  background: var(--transparent);
  color: var(--text);
}

input[type=date] {
  text-align: right;
  color: var(--muted);
  padding: 4px;
}

input[type=time] {
  width: 92px;
  padding: 4px 6px;
  background: var(--neutral-bg);
  border-radius: 999px;
  font-size: 17px;
}

html[data-input="keyboard"] input:focus-visible {
  outline-offset: 1px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  align-items: center;
  min-height: 60px;
  padding: 8px 8px 0;
  padding-top: max(8px, env(safe-area-inset-top));
  gap: 4px;
}

.topbar h1 {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.back, .top-action {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 17px;
}

.top-action {
  justify-content: flex-end;
  background: var(--transparent);
  color: var(--blue);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 16px 0;
  flex: 1;
}

.footer {
  padding: 12px 16px max(34px, env(safe-area-inset-bottom));
  margin-top: auto;
}

.primary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px;
  border-radius: 999px;
  background: var(--blue-fill);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
}

.primary:disabled {
  background: var(--border);
  color: var(--disabled-text);
  opacity: 1;
}

.panel {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 4px 16px;
  font-size: 17px;
}

.field + .field {
  border-top: 1px solid var(--border);
}

.vertical {
  align-items: stretch;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
}

.segment {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--segment-bg);
  border-radius: 999px;
}

.segment button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border-radius: 999px;
  background: var(--transparent);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 4px 7px;
  white-space: nowrap;
}

.segment button[aria-pressed=true] {
  background: var(--segment-selected);
  box-shadow: var(--segment-shadow);
}

.field .segment {
  width: 184px;
  background: var(--control-bg);
  flex-shrink: 0;
}

.field .segment button {
  font-size: 15px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  gap: 10px;
  min-height: 44px;
}

.section-title h2 {
  font-size: 17px;
  font-weight: 600;
}

.section-title .large {
  font-size: 20px;
  font-weight: 700;
}

.section-title h2 small {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.text-button {
  background: var(--transparent);
  color: var(--blue);
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  font-size: 15px;
}

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

.extra-leave-list { margin-top: 12px; padding-inline: 16px; }
.extra-leave-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
}
.extra-leave-row > span { min-width: 0; overflow-wrap: anywhere; }
.extra-leave-row small { display: block; }
.extra-leave-row .text-button { min-height: 44px; flex-shrink: 0; }

.person {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  font-size: 15px;
  padding: 7px 2px;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.person[aria-pressed=true] {
  background: var(--blue-fill);
  border-color: var(--blue-fill);
  color: var(--white);
}

.roster .person[aria-pressed=true] {
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  border-color: var(--blue-soft-border);
}

.person.late {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
  border-color: var(--orange-soft-border);
}

.empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.home {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: max(40px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

.home-head {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 112px;
  height: 112px;
  padding: 16px;
  border-radius: 22px;
  background: var(--blue-fill);
  color: var(--white);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero strong {
  font-size: 22px;
}

.attendance-hero {
  background: var(--blue-soft-bg);
  color: var(--text);
}

.attendance-hero .hero-top {
  color: var(--blue);
}

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

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 112px;
  height: 112px;
  padding: 16px;
  background: var(--surface);
  border-radius: 22px;
  color: var(--text);
}

.home-icon {
  color: var(--blue);
}

.tile strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 3px;
}

.tile small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.recent-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.recent-title a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}

.record-row {
  display: flex;
  align-items: center;
  min-height: 62px;
}

.record-open {
  background: transparent;
  color: var(--text);
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 16px;
  text-align: left;
}

.record-icon {
  flex: 0 1 24px;
  min-width: 20px;
}

.record-icon > svg {
  width: 100%;
  height: auto;
}

.record-open > svg {
  flex-shrink: 0;
  color: var(--arrow);
}

.record-row:active {
  background: var(--control-bg);
}

@media (hover: hover) {
  .record-row:hover {
    background: var(--control-bg);
  }
}

.record-row + .record-row {
  border-top: 1px solid var(--border);
}

.record-copy {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.record-copy strong {
  font-size: 17px;
  font-weight: 600;
  display: block;
}

.record-copy small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

.pill {
  flex-shrink: 0;
  font-size: 13px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.pill.returned {
  padding: 4px 10px;
  background: var(--orange-soft-bg);
  color: var(--orange-text);
}

.pill.failed {
  padding: 4px 10px;
  background: var(--red-soft-bg);
  color: var(--red-text);
}

.record-row > .tap {
  margin-right: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.retry {
  min-height: 44px;
  background: var(--red-fill);
  color: var(--white);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  gap: 10px;
}

.group-title h2 {
  font-size: 15px;
  font-weight: 600;
}

.record-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.records-content {
  padding-bottom: 34px;
}

.summary {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary small {
  color: var(--muted);
  font-size: 15px;
}

.counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.counts strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  color: var(--blue-soft-text);
}

.counts .late strong {
  color: var(--orange-text);
}

.counts span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 2px;
}

.progress-block {
  padding: 8px 16px 0;
}

.progress {
  height: 4px;
  border-radius: 999px;
  background: var(--progress-track);
  overflow: hidden;
}

.progress > div {
  height: 4px;
  background: var(--blue-fill);
  transition: width 240ms ease-out;
}

.card-counts {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.card-counts strong {
  color: var(--text);
}

.card-counts .on-time {
  color: var(--blue-soft-text);
}

.card-counts .late {
  color: var(--orange-text);
}

.card-page {
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
}

.card-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 20px 16px max(34px, env(safe-area-inset-bottom));
  gap: 18px;
}

.card-stack {
  position: relative;
  flex: 1;
  min-height: 280px;
  container-type: size;
}

.swipe-card, .next-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--surface);
  border-radius: 28px;
}

.swipe-card {
  box-shadow: var(--card-shadow);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: 50% 90%;
  will-change: transform;
  cursor: grab;
}

.swipe-card:active {
  cursor: grabbing;
}

.next-card {
  box-shadow: var(--next-card-shadow);
  transform: translateY(14px) scale(.94);
  transform-origin: 50% 100%;
  color: var(--secondary-text);
  overflow: hidden;
}

.avatar {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 44px;
  font-weight: 600;
  pointer-events: none;
}

.card-name {
  position: relative;
  max-width: 95%;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  pointer-events: none;
  text-align: center;
  overflow-wrap: anywhere;
}

.tint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

.tint.on_time {
  background: var(--tint-on-time);
}

.tint.late {
  background: var(--tint-late);
}

.tint.later {
  background: var(--tint-later);
}

.stamp {
  position: absolute;
  padding: 4px 14px;
  border: 3px solid currentColor;
  border-radius: 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  color: var(--blue);
  top: 28px;
  left: 24px;
  transform: rotate(-12deg);
}

.stamp.late {
  left: auto;
  right: 24px;
  color: var(--orange-text);
  transform: rotate(12deg);
}

.stamp.later {
  top: auto;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--stamp-later-outline);
}

.stamp.is-filled {
  color: var(--white);
  background: var(--blue-fill);
}

.stamp.late.is-filled {
  background: var(--stamp-late-fill);
}

.stamp.later.is-filled {
  background: var(--stamp-later-fill);
}

.card-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card-buttons button {
  height: 60px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
}

.card-buttons .late {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
}

.card-buttons .later {
  background: var(--border);
  color: var(--secondary-text);
}

.card-buttons .on_time {
  background: var(--blue-fill);
  color: var(--white);
}

.completed {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--surface);
  border-radius: 28px;
  min-height: 280px;
}

.completed .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-soft-bg);
  color: var(--blue);
  font-size: 36px;
}

.completed h2 {
  font-size: 28px;
}

.completed p {
  color: var(--muted);
  font-size: 17px;
}

.error {
  color: var(--red-text);
  font-size: 15px;
  line-height: 1.5;
}

.error:has(+ .text-button[data-action="refresh"]) {
  text-align: center;
}

.login-page {
  max-width: 430px;
  margin: auto;
  padding: 60px 20px;
}

.login-page h1 {
  margin-bottom: 24px;
}
.login-page > p > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
}

.login-page form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-page .login-help {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.login-page :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.login-page .field input:focus-visible {
  outline-offset: -2px;
}

/* 第四段丙-2（X-02）：密码“显示/隐藏” */
.login-page .pw-row { display: flex; align-items: center; gap: 8px; }
.login-page .pw-row input { flex: 1; min-width: 0; }
.login-page .pw-toggle { flex: none; min-height: 44px; min-width: 44px; padding: 0 4px; background: var(--transparent); color: var(--blue); font-size: 15px; font-weight: 600; }

#notice:not(.register-toast) {
  position: fixed;
  left: calc((100% + var(--safe-left) - var(--safe-right)) / 2);
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100% - 32px - var(--safe-left) - var(--safe-right));
  padding: 12px 18px;
  border-radius: 22px;
  background: var(--notice-bg);
  color: var(--white);
  z-index: 20;
  box-shadow: var(--notice-shadow);
  text-align: center;
  pointer-events: none;
}

#notice:not(.register-toast):empty {
  display: none;
}

.resume {
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  border-radius: 999px;
  min-height: 48px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.times {
  display: flex;
  gap: 4px;
  align-items: center;
}

.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;
}

@media (max-width: 350px) {
  .content > .segment button[data-key="type"] {
    padding-inline: 2px;
  }

  .field {
    padding-left: 12px;
    padding-right: 12px;
    gap: 6px;
  }

  .field .segment {
    width: 174px;
  }

  .record-open {
    padding-left: 12px;
    padding-right: 12px;
    gap: 6px;
  }

  .card-name {
    font-size: 28px;
  }

  .card-counts {
    gap: 14px;
  }

  .tile {
    padding: 14px;
  }

}

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

.note-field input {
  flex: 1;
  width: 0;
  text-align: right;
}
.quantity, .selection-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.quantity {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.stepper {
  display: flex;
  align-items: center;
  background: var(--control-bg);
  border-radius: 999px;
  padding: 2px;
}
.stepper button {
  width: 46px;
  min-height: 44px;
  padding: 0;
  background: var(--transparent);
  color: var(--text);
}
.stepper .tap + .tap,
.stepper > button + .tap,
.stepper > .tap + button,
.stepper > button + button {
  border-left: 1px solid var(--separator);
}
.role-row {
  width: 100%;
  background: var(--transparent);
  color: var(--text);
  text-align: left;
}
.role-row > svg {
  color: var(--arrow);
}
.role-value {
  min-width: 0;
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-sheet {
  position: fixed;
  inset: auto var(--safe-right) 0 var(--safe-left);
  width: min(430px, calc(100% - var(--safe-left) - var(--safe-right)));
  max-width: 100%;
  max-height: 85dvh;
  margin: auto auto 0;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--sheet-bg);
  color: var(--text);
  padding: 8px 16px max(34px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
body:has(.role-sheet[open]),
body:has(.person-sheet[open]) {
  overflow: hidden;
}
.role-sheet::backdrop,
.person-sheet::backdrop {
  background: var(--backdrop);
  opacity: calc(1 - var(--drag, 0));
}
.sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: var(--separator);
}
.sheet-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  margin-bottom: 14px;
  text-align: center;
}
.sheet-header h2 {
  font-size: 17px;
}
.sheet-header p {
  font-size: 13px;
}
.sheet-header button {
  text-align: right;
  font-size: 17px;
  font-weight: 600;
}
.role-sheet .person:not([aria-pressed=true]) {
  background: var(--sheet-person-bg);
}

.role-person {
  flex-wrap: wrap;
  padding-inline: 4px;
}
.role-person small {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.role-person[aria-pressed=true] small {
  color: var(--white);
}
@media (max-width: 350px) {
  .role-person small {
    flex-basis: 100%;
  }
  .selection-actions {
    gap: 6px;
    font-size: 13px;
  }
}


.session-content {
  gap: 14px;
}
.session-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  background: var(--transparent);
  text-align: left;
}
.session-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 17px;
}
.session-heading strong {
  font-weight: 600;
}
.session-count {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.session-count.unselected {
  color: var(--blue);
}
.session-count svg {
  color: var(--arrow);
}
.session-summary {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.scan-area {
  padding: 0 16px 14px;
}
.scan-button, .scan-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  font-size: 17px;
}
.scan-button {
  width: 100%;
  border-radius: 999px;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-weight: 600;
}
.scan-progress {
  margin: 0 16px 14px;
  border-radius: 14px;
  background: var(--page-bg);
  color: var(--muted);
  font-size: 15px;
}
.scan-progress svg {
  animation: session-spin .9s linear infinite;
}
@keyframes session-spin {
  to { transform: rotate(360deg); }
}
.session-source {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px 0 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.session-source > span {
  min-width: 0;
  flex: 1;
  padding-block: 8px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.session-source .text-button {
  flex-shrink: 0;
  padding-inline: 8px;
  font-size: 15px;
}
.session-source.mismatch {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
}
@media (max-width: 350px) {
  .hero {
    padding: 14px;
  }
  .tile small {
    font-size: 13px;
  }
}

.tap {
  position: relative;
  display: block;
}

.haptic {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: inherit;
}

.haptic input {
  position: absolute;
  min-height: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.tap:hover > button:not(:disabled) {
  filter: brightness(.96);
}

.tap:active > button:not(:disabled) {
  transform: scale(.98);
}

.footer > .tap {
  width: 100%;
  border-radius: 999px;
}

.card-buttons > .tap {
  min-width: 0;
  border-radius: 999px;
}

.card-buttons > .tap > button {
  width: 100%;
}

.stepper > .tap {
  width: 46px;
  flex-shrink: 0;
}

.stepper > .tap > button {
  width: 100%;
}

.hud {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 168px;
  min-height: 168px;
  padding: 26px 14px 20px;
  border-radius: 22px;
  background: var(--hud-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--hud-shadow);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  text-align: center;
  transform: translate(-50%, -50%) scale(.9);
  opacity: 0;
  transition: opacity .18s ease-out, transform .24s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: none;
  z-index: 30;
}
.hud.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.hud.leaving {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.96);
  transition-duration: .22s;
}
.hud.failed {
  pointer-events: auto;
  cursor: pointer;
}
.hud strong {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
}
.hud span {
  white-space: pre-line;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.ring {
  width: 64px;
  height: 64px;
  overflow: visible;
}
.ring circle {
  fill: none;
  stroke-width: 4;
}
.ring .track {
  stroke: var(--progress-track);
}
.ring .arc {
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 118;
  transition: stroke .2s ease;
}
.spin {
  transform-origin: 32px 32px;
  transform-box: view-box;
}
.ring path {
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  opacity: 0;
}
.ring .check {
  stroke: var(--blue);
}
.ring .bang {
  stroke: var(--hud-error);
}
.hud.is-error .arc {
  stroke: var(--hud-error);
}
.hud.done .check, .hud.failed .bang {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .26s cubic-bezier(.4, 0, .2, 1) .04s;
}
.hud.done .ring, .hud.failed .ring {
  animation: pop .34s cubic-bezier(.2, .9, .3, 1.4);
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud, .hud.leaving {
    transition: opacity .15s linear;
    transform: translate(-50%, -50%);
  }
  .hud.show {
    transform: translate(-50%, -50%);
  }
  .hud.done .ring, .hud.failed .ring {
    animation: none;
  }
  .primary {
    transition: none;
  }
}

/* Personnel session statistics, matching the approved trial. */
.stats-month {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: var(--surface);
  border-radius: 999px;
  min-height: 48px;
}
.stats-month strong {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stats-month button {
  background: var(--transparent);
  padding: 0;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.stats-month button:disabled {
  opacity: 1;
  color: var(--separator);
  cursor: default;
}
.stats-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 4px;
  margin-bottom: -10px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.stats-row {
  background: var(--transparent);
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px 8px 16px;
  text-align: left;
  position: relative;
}
.stats-row + .stats-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 62px;
  right: 0;
  border-top: 1px solid var(--border);
}
.stats-row:active {
  background: var(--neutral-bg);
}
.stats-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-weight: 600;
}
.stats-row .stats-avatar {
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.stats-row .stats-name {
  flex: 1;
  min-width: 0;
  font-size: 17px;
}
.stats-count {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.stats-count b {
  font-size: 17px;
  font-weight: 600;
}
.stats-count span {
  color: var(--muted);
  font-size: 15px;
}
.stats-count.zero b {
  color: var(--muted);
  font-weight: 400;
}
.stats-row > svg {
  color: var(--arrow);
  flex-shrink: 0;
}

/* 个人卡片：底部升起 */
.person-sheet {
  position: fixed;
  inset: auto var(--safe-right) 0 var(--safe-left);
  width: min(430px, calc(100% - var(--safe-left) - var(--safe-right)));
  max-width: 100%;
  max-height: 88dvh;
  margin: auto auto 0;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--sheet-bg);
  color: var(--text);
  padding: 8px 16px max(34px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.person-sheet[open] {
  animation: rise .34s cubic-bezier(.2, .8, .2, 1);
}
.person-sheet[open]::backdrop {
  background: var(--backdrop);
  animation: fade .34s ease;
  opacity: calc(1 - var(--drag, 0));
}
.person-sheet.dragging {
  user-select: none;
  -webkit-user-select: none;
}
.handle-zone {
  touch-action: none;
  cursor: grab;
  padding-top: 2px;
}
.person-sheet.closing {
  animation: sink .24s cubic-bezier(.4, 0, 1, 1) forwards;
}
.person-sheet.closing::backdrop {
  animation: fade-out .24s ease forwards;
}
@keyframes rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes sink {
  from {
    transform: none;
  }
  to {
    transform: translateY(100%);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.person-sheet .panel {
  background: var(--sheet-person-bg);
}
.person-sheet .sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: var(--separator);
}

.record-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 10px;
  padding: 4px 0 2px;
}

.record-sheet-head > div {
  min-width: 0;
}

.record-sheet-head h2 {
  font-size: 22px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.record-sheet-head p {
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.record-sheet-head button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  background: var(--transparent);  /* 2026-11-22：原来没写，吃浏览器默认按钮底（浅色浅灰、深色灰块）；照 .account-sheet-head button */
  color: var(--blue);
  font-size: 17px;
  flex-shrink: 0;
}

.record-facts {
  margin-top: 12px;
}

.record-kv {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
}

.record-kv + .record-kv,
.record-act + .record-act {
  border-top: 1px solid var(--border);
}

.record-kv > span,
.record-act > span {
  color: var(--muted);
  font-size: 15px;
}

.record-kv b {
  font-size: 17px;
  font-weight: 400;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.record-section-label {
  display: flex;
  justify-content: space-between;
  padding: 18px 4px 6px;
  font-size: 13px;
  color: var(--muted);
}

.record-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
}

.record-name {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--neutral-bg);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.record-name.warn {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
  font-weight: 600;
}

.record-act {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 6px 12px 6px 16px;
}

.record-act > span {
  line-height: 34px;
}

.record-act .record-names {
  padding: 0;
}

.record-meta {
  margin-top: 18px;
}

.record-resend {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--red-fill);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
}

/* 2026-11-22 编外退回：卡片内边距照 .record-kv / .ap-reason，两个按钮的形状照 .ap-btn。
   配色照开通链接弹层（.tr-sheet 里的 .tr-message）：嵌在卡片里的输入框和次要按钮用卡片后面那一层的底色——
   记录详情里卡片是 --sheet-person-bg，后面一层是 --sheet-bg（浅色 #F2F2F7 嵌在白卡片里，深色 #1C1C1E 嵌在 #2C2C2E 卡片里），
   两种模式都和卡片分得开；不用 --neutral-bg、--control-bg，它们深色下等于卡片底色（第 2 轮验收）。 */
.record-extra-return {
  margin-top: 18px;
  padding: 14px 16px 16px;
}
.record-extra-return > p {
  font-size: 15px;
  line-height: 1.45;
}
.record-extra-return > p[role="status"] {
  color: var(--text);
  font-weight: 600;
}
.record-extra-return .form-error {
  margin-top: 10px;
}
.record-extra-return > .record-resend {
  margin-top: 14px;
}
.record-extra-return label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.record-extra-return input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--sheet-bg);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 400;
}
.record-extra-return input:focus-visible {
  outline: 2px solid var(--blue-fill);
  outline-offset: 1px;
}
.record-extra-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.record-extra-actions button {
  flex: 1;
  min-height: 50px;
  margin-top: 0;
  border-radius: 999px;
  background: var(--sheet-bg);
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}
.record-extra-actions .record-resend {
  background: var(--red-fill);
  color: var(--white);
}
.record-extra-actions button:disabled {
  opacity: .5;
}
.stats-person-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.stats-person-head .stats-avatar {
  width: 56px;
  height: 56px;
  font-size: 24px;
}
.stats-person-head h2 {
  font-size: 22px;
  font-weight: 700;
}
.stats-person-head p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 2px;
}
.stats-person-head .text-button {
  align-self: start;
  min-height: 44px;
  padding: 0 4px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
}
.stats-total {
  margin-top: 18px;
  padding: 18px 18px 0;
}
.stats-total > p {
  color: var(--muted);
  font-size: 15px;
}
.stats-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 16px;
  font-variant-numeric: tabular-nums;
}
.stats-big b {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.stats-big span {
  font-size: 20px;
  color: var(--muted);
}
.stats-theaters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.stats-theaters div {
  padding: 14px 0 16px;
  display: grid;
  gap: 2px;
}
.stats-theaters div + div {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.stats-theaters p {
  color: var(--muted);
  font-size: 15px;
}
.stats-theaters strong {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stats-theaters strong span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}
.stats-detail-head {
  display: flex;
  justify-content: space-between;
  padding: 22px 4px 8px;
  color: var(--muted);
  font-size: 13px;
}
.stats-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 16px;
}
.stats-detail + .stats-detail {
  border-top: 1px solid var(--border);
}
.stats-detail .stats-date {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  min-width: 4.6em;
}
.stats-detail .stats-week {
  color: var(--muted);
  font-size: 15px;
}
.stats-detail .stats-where {
  margin-left: auto;
  font-size: 15px;
  color: var(--text);
  text-align: right;
}
.stats-tag {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
}
.stats-tag.evening {
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
}

.role-sheet.dragging,
.person-sheet.dragging {
  user-select: none;
  -webkit-user-select: none;
}
.stats-error {
  text-align: center;
  color: var(--muted);
}
.stats-error .text-button {
  min-height: 44px;
}
.stats-person-head h2,
.stats-name {
  overflow-wrap: anywhere;
}
.stats-where {
  overflow-wrap: anywhere;
  min-width: 0;
}
.stats-list-head > span:first-child {
  flex-shrink: 0;
}
.stats-list-head > span:last-child {
  text-align: right;
}
@media (prefers-reduced-motion: reduce) {
  .person-sheet[open],
  .person-sheet[open]::backdrop,
  .person-sheet.closing,
  .person-sheet.closing::backdrop {
    animation: none;
  }
}
.stats-detail .stats-date,
.stats-detail .stats-week,
.stats-detail .stats-tag {
  flex-shrink: 0;
  white-space: nowrap;
}
.stats-person-head .text-button {
  min-width: 44px;
}


.person.on-leave,
.person.on-comp {
  position: relative;
  background: var(--neutral-bg);
  border-color: var(--neutral-bg);
  color: var(--leave-text);
}
.leave-mark {
  position: absolute;
  top: -7px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--leave-mark-bg);
  color: var(--leave-mark-text);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
@media (max-width: 360px) {
  .segment[aria-label="登记类型"] button { font-size: 13px; padding-inline: 3px; }
}

.swipe-content {
  touch-action: pan-y pinch-zoom;
  overflow-x: clip;
}

html[data-nav]::view-transition-old(root),
html[data-nav]::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-timing-function: cubic-bezier(.4,0,.2,1);
  animation-fill-mode: both;
}
html[data-nav="push"]::view-transition-group(root),
html[data-nav="push"]::view-transition-old(root),
html[data-nav="push"]::view-transition-new(root) { animation-duration: 350ms; }
html[data-nav="pop"]::view-transition-group(root),
html[data-nav="pop"]::view-transition-old(root),
html[data-nav="pop"]::view-transition-new(root) { animation-duration: 320ms; }
html[data-nav="push"]::view-transition-old(root) { animation-name: nav-push-old; }
html[data-nav="push"]::view-transition-new(root) { animation-name: nav-push-new; }
html[data-nav="pop"]::view-transition-old(root) { animation-name: nav-pop-old; z-index: 1; }
html[data-nav="pop"]::view-transition-new(root) { animation-name: nav-pop-new; }
html[data-nav="none"]::view-transition-group(root),
html[data-nav="none"]::view-transition-new(root) { animation: none; }
html[data-nav="none"]::view-transition-old(root) { display: none; }
@keyframes nav-push-old {
  from { transform: translateX(0); filter: brightness(1); }
  to { transform: translateX(-30%); filter: brightness(.9); }
}
@keyframes nav-push-new { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes nav-pop-old { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes nav-pop-new {
  from { transform: translateX(-30%); filter: brightness(.9); }
  to { transform: translateX(0); filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-nav]::view-transition-group(root),
  html[data-nav]::view-transition-new(root) { animation: none; }
  html[data-nav]::view-transition-old(root) { display: none; }
}

.type-slide, .cal-slide, .roster-slide, .pb-slide {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.session-content .type-slide {
  gap: 14px;
}

.type-segment {
  position: relative;
}

.type-segment .type-pill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  border-radius: 999px;
  background: var(--segment-selected);
  box-shadow: var(--segment-shadow);
  transition: transform .26s cubic-bezier(.25,.8,.25,1);
  pointer-events: none;
}

.type-segment button {
  position: relative;
}

.type-segment button[aria-pressed=true] {
  background: var(--transparent);
  box-shadow: none;
}

.type-segment.dragging .type-pill {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .type-segment .type-pill {
    transition: none;
  }
}

/* 实习生场次：复用正式人员卡片和原生名单面板。 */
.holiday-field {
  min-height: 52px;
}
.intern-sub {
  border-top: 1px solid var(--border);
}
.intern-sub.scan-area {
  padding-top: 12px;
}
.intern-sub .session-heading-row {
  font-size: 17px;
}
.intern-summary {
  white-space: pre-line;
}
.intern-summary b {
  color: var(--text);
  font-weight: 600;
}
.intern-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--orange-soft-bg);
  color: var(--orange-text);
  border-top: 1px solid var(--orange-soft-border);
  font-size: 15px;
  text-align: left;
  overflow-wrap: anywhere;
}
.intern-warning span {
  flex: 1;
  min-width: 0;
}
.intern-warning svg {
  flex-shrink: 0;
}
.intern-sheet .person {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
}
.intern-sheet .person small {
  font-size: 13px;
  color: var(--muted);
}
.intern-sheet .person[aria-pressed=true] small {
  color: #fff;
}
.intern-sheet .sheet-header h2 {
  overflow-wrap: anywhere;
}
.intern-sheet [data-action=intern-back],
.intern-sheet [data-action=intern-restore],
.intern-sheet [data-action=intern-zhuyan-restore] {
  text-align: left;
}
.intern-sheet:has([data-action=intern-restore], [data-action=intern-zhuyan-restore]) .sheet-header {
  grid-template-columns: 80px minmax(0, 1fr) 44px;
}
.intern-plan-diff {
  margin: 0 16px 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.intern-sheet textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.intern-sheet textarea::placeholder {
  color: var(--muted);
}
.intern-sheet .muted {
  margin-block: 10px;
  font-size: 13px;
}
.intern-unknown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.intern-unknown button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orange-soft-bg);
  border: 1px solid var(--orange-soft-border);
  color: var(--orange-text);
  font-size: 15px;
}
.intern-acts {
  margin-top: 14px;
}
.intern-act {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.intern-act span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.intern-ignore {
  display: block;
  width: 100%;
  margin-top: 14px;
}
.session-batch-note {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.session-hero {
  background: var(--surface);
  color: var(--text);
}
.session-hero .hero-top {
  color: var(--blue);
}
body[data-account=intern] .hero {
  height: auto;
  min-height: 112px;
}
body[data-account=intern] .intern-sub {
  border-top: 0;
}
body[data-account=intern] .intern-sub.scan-area {
  padding-top: 0;
}
body[data-account=intern] .intern-sub.scan-area .session-heading {
  padding-inline: 0;
}
body[data-account=intern] .intern-sub .session-heading-row {
  font-size: 17px;
}
.intern-text-label {
  display: block;
  margin: 12px 0 8px;
  color: var(--text);
  font-size: 17px;
}

.type-count {
  display: inline-block;
  min-width: 17px;
  margin-left: 3px;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.staff-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 16px 0 24px;
  padding: 12px 16px;
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.staff-link > span {
  flex: 1;
}
.staff-link strong,
.staff-link small {
  display: block;
}
.staff-link small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.staff-link > svg:first-child {
  color: var(--blue);
}
.staff-link:active {
  background: var(--control-bg);
}
.calendar-link {
  margin: 0;
}
.calendar-link > svg:last-child {
  color: var(--arrow);
}
.staff-content > .segment {
  margin-bottom: 20px;
}
.staff-label {
  display: block;
  font-size: 20px;
  font-weight: 600;
}
.staff-content textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}
.staff-content input[type=date] {
  min-width: 0;
  max-width: 65%;
}
.staff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.staff-chip {
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  overflow-wrap: anywhere;
}
.staff-chip.warning {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
}
@media (max-width: 360px) {
  .type-segment button {
    padding-inline: 2px;
  }
  .type-count {
    margin-left: 2px;
    padding-inline: 2px;
  }
}


.intern-round-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.intern-round-row .segment {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.intern-round-row .text-button {
  flex-shrink: 0;
}

.stats-place {
  display: inline-block;
  white-space: nowrap;
}

.session-source .session-round {
  display: inline-block;
  white-space: nowrap;
}


.stats-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stats-pair .stats-big b {
  font-size: 34px;
}
.stats-pair > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.stats-pair p {
  color: var(--muted);
  font-size: 15px;
}
.stats-count .stats-dot {
  margin: 0 3px;
}
.intern-detail .stats-where {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.intern-detail {
  gap: 8px;
}
.intern-detail .stats-date {
  min-width: 0;
}

.person.on-leave,
.person.on-comp {
  color: var(--muted);
  opacity: 1;
}
@media (max-width: 360px) {
  .segment[aria-label="假别"] button { padding-inline: 3px; }
}
/* 实习生假别有个四个字的“学校安排”：按字多少分宽度，不出框 */
.intern-kinds .field .segment { width: auto; flex: 0 1 224px; min-width: 0; }
.intern-kinds .field .segment button { flex: 1 1 auto; padding-inline: 6px; }

/* 剧场负责人与日历：沿用定稿试用页。 */
/* 日历公共：周切换条 */
.cal-week {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: var(--surface);
  border-radius: 999px;
  min-height: 48px;
}
.cal-week strong {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cal-week button {
  background: var(--transparent);
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.cal-week button:disabled {
  color: var(--separator);
  cursor: default;
}
.date-num {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.calendar-content .is-today .date-num {
  background: var(--blue-fill);
  color: var(--white);
}
.calendar-content .is-today .wd {
  color: var(--blue);
  font-weight: 600;
}
.calendar-content .is-past .date-num {
  color: var(--muted);
  font-weight: 400;
}
.wd {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
}

/* 日历格 */
.wk {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
}
.wk-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 3px;
  padding: 0 6px;
}
.wk-head {
  padding-block: 10px 8px;
}
.wk-head > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.wk-band-label {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px 6px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.wk-band {
  padding-bottom: 8px;
}
.wk-col {
  background: var(--transparent);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 60px;
  padding: 3px 2px;
  border-radius: 14px;
  min-width: 0;
}
.wk-col:active {
  background: var(--control-bg);
}
.wk-col.rest {
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-size: 11px;
  align-items: center;
  padding-top: 6px;
}
.wk-pill {
  display: block;
  border-radius: 999px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  overflow-wrap: anywhere;
}
.wk-pill.comp {
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
}
.wk-pill.leave {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
}
.wk-pill.half {
  background: var(--transparent);
  box-shadow: inset 0 0 0 1px currentColor;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 0 4px;
  margin-top: -8px;
  font-size: 13px;
  color: var(--muted);
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-legend i {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 999px;
}
.cal-legend i.comp {
  background: var(--blue-soft-bg);
  box-shadow: inset 0 0 0 1px var(--blue-soft-border);
}
.cal-legend i.leave {
  background: var(--orange-soft-bg);
  box-shadow: inset 0 0 0 1px var(--orange-soft-border);
}
.cal-legend i.half {
  box-shadow: inset 0 0 0 1px var(--muted);
}
.intern-calendar-page .cal-sheet-head {
  margin-bottom: 8px;
}
.intern-calendar .wk-head {
  border-bottom: 1px solid var(--border);
}
.intern-calendar .wk-band {
  padding-block: 8px;
}
.intern-calendar .wk-col {
  min-height: 96px;
}
.intern-calendar .cal-legend {
  align-items: center;
}
.intern-calendar .cal-legend .total {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.calendar-content { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.calendar-notice { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.calendar-sheet { max-height: 82dvh; }
.cal-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.cal-sheet-head h2 { font-size: 20px; font-weight: 700; }
.cal-sheet-head button { min-height: 44px; padding: 0 4px; font-size: 17px; font-weight: 600; }
.calendar-sheet .cal-group-label { padding: 14px 4px 6px; }
.calendar-sheet .panel { background: var(--sheet-person-bg); }
.ag-name { overflow-wrap: anywhere; }
.ag-slot, .cal-tag { flex-shrink: 0; }
@media (hover: hover) {
  .wk-col:hover, .cal-strip button:hover { background: var(--control-bg); }
}

/* 日程 */
.cal-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 8px 4px 10px;
  background: var(--surface);
  border-radius: 22px;
}
.cal-strip button {
  background: var(--transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 64px;
  border-radius: 14px;
}
.cal-strip button:active {
  background: var(--control-bg);
}
.cal-strip small.count {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cal-strip small.count.has {
  color: var(--text);
  font-weight: 600;
}
.ag-day {
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 12px;
}
.ag-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 4px;
}
.ag-head h2 {
  font-size: 17px;
  font-weight: 600;
}
.ag-head span {
  font-size: 15px;
  color: var(--blue);
  font-weight: 600;
}
.ag-head.past h2 {
  color: var(--muted);
}
.ag-head .ag-none {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.ag-day:has(.ag-none) {
  margin-bottom: 4px;
}
.cal-group-label {
  padding: 10px 16px 2px;
  font-size: 13px;
  color: var(--muted);
}
.ag-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 16px;
}
.ag-row > .register-icon { flex: 0 1 24px; width: 24px; min-width: 20px; height: auto; }
.ag-row + .ag-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 60px;
  right: 0;
  border-top: 1px solid var(--border);
}
.cal-group-label + .ag-row::before {
  display: none;
}
.cal-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 15px;
  font-weight: 600;
}
.cal-avatar.intern {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}
.ag-name {
  flex: 1;
  min-width: 0;
  font-size: 17px;
}
.ag-slot {
  font-size: 15px;
  color: var(--muted);
}
.cal-tag {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.cal-tag.comp {
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
}
.cal-tag.leave {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
}
.ag-quiet {
  padding: 15px 16px;
  font-size: 15px;
  color: var(--muted);
}
.panel > .cal-group-label:first-child {
  padding-top: 12px;
}
.panel > .ag-quiet + .cal-group-label, .panel > .ag-row + .cal-group-label {
  border-top: 1px solid var(--border);
  margin-top: 0;
}

@media (max-width: 359px) {
  .wk-pill {
    font-size: 11px;
  }
}

/* 人员名单与实习生资料；通用顶栏、分段、日期、发送反馈沿用现有组件。 */
.list-head {
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: -10px;
  font-size: 13px;
  color: var(--muted);
}
.r-row {
  background: transparent;
  color: var(--text);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 16px 6px 12px;
  text-align: left;
}
.r-row + .r-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 48px;
  right: 0;
  border-top: 1px solid var(--border);
}
.r-row:active {
  background: var(--control-bg);
}
.r-seq {
  width: 26px;
  flex-shrink: 0;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.r-name {
  font-size: 17px;
  white-space: nowrap;
}
.r-sub {
  margin-left: auto;
  min-width: 0;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qtag {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.qtag.performer {
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
}
.qtag.learning {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
}
.qtag.neutral {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}
/* 悬浮资料卡：离屏幕四边留 8px、圆角 28，从下方浮起 */
.roster-sheet {
  position: fixed;
  left: max(8px, var(--safe-left));
  right: max(8px, var(--safe-right));
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - max(8px, var(--safe-left)) - max(8px, var(--safe-right)));
  max-width: 414px;
  margin: auto auto 0;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 16px 16px;
  border-radius: 28px;
  background: var(--sheet-bg);
  box-shadow: var(--profile-shadow);
  z-index: 21;
  animation: profile-rise .32s cubic-bezier(.2, .8, .2, 1);
}
@keyframes profile-rise {
  from {
    transform: translateY(40%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.roster-sheet .sheet-handle {
  flex-shrink: 0;
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: var(--separator);
  margin: 2px auto 0;
}
.pc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--control-bg);
  color: var(--muted);
}
.pc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 40px 4px 2px;
}
.pc-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 24px;
  font-weight: 600;
}
.pc-who {
  min-width: 0;
}
.pc-who h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.pc-who p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}
.pc-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0;
  border-radius: 14px;
  background: var(--sheet-person-bg);
}
.pc-facts > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 0 6px;
}
.pc-facts > div + div {
  border-left: 1px solid var(--border);
}
.pc-facts b {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pc-facts small {
  max-width: 100%;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pc-label {
  padding: 4px 16px 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.pc-group {
  border-radius: 14px;
  background: var(--sheet-person-bg);
}
.pc-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 12px 8px 16px;
}
.pc-row + .pc-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  border-top: 1px solid var(--border);
}
.pc-k {
  flex-shrink: 0;
  width: 52px;
  font-size: 15px;
  color: var(--muted);
}
.pc-v {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pc-v.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.pc-text {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.55;
}
.missing {
  color: var(--orange-text);
}
.pc-call {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft-bg);
  color: var(--blue);
}
.pc-call:active {
  opacity: .7;
}
.pc-note {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 15px;
  line-height: 1.5;
}
.pc-edit {
  min-height: 50px;
  border-radius: 999px;
  background: var(--sheet-person-bg);
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
}
.pc-edit:active {
  background: var(--control-bg);
}
/* 表单（入职、修改资料） */
.f-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f-label {
  padding: 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.f-item + .f-item {
  border-top: 1px solid var(--border);
}
.f-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 4px 16px;
  font-size: 17px;
}
.f-k {
  flex-shrink: 0;
  width: 76px;
}
.f-row input:not([type=date]) {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: var(--transparent);
  text-align: right;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.f-row input::placeholder {
  color: var(--profile-placeholder);
}
.f-row input[type=date] {
  margin-left: auto;
  min-height: 44px;
  border: 0;
  background: var(--transparent);
  color: var(--muted);
  font-size: 17px;
  text-align: right;
}
[data-profile-key="qualification_date"] .f-k { min-width: 4em; white-space: nowrap; }
[data-profile-key="qualification_date"] input { min-width: 0; max-width: calc(100% - 80px); }
.f-item.miss .f-k {
  color: var(--orange-text);
}
.f-item.dup input {
  color: var(--orange-text);
}
.f-err {
  padding: 0 16px 10px;
  font-size: 13px;
  color: var(--red-text);
  text-align: right;
}
.f-chips {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 16px 14px;
}
.profile-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.profile-chip {
  min-height: 44px;
  padding: 4px 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  white-space: nowrap;
}
.profile-chip[aria-pressed="true"] {
  background: var(--blue-fill);
  border-color: var(--blue-fill);
  color: var(--white);
}
.profile-chip:active {
  opacity: .8;
}
.profile-page .primary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px;
  border-radius: 999px;
  background: var(--blue-fill);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
}
.profile-page .primary[aria-disabled="true"] {
  background: var(--border);
  color: var(--disabled-text);
}
.staff-seg {
  margin-bottom: 2px;
}
.roster-content { gap: 18px; }
.r-row { flex-wrap: wrap; }
.r-row .r-sub { flex: 1; text-align: right; }
.profile-page .content { gap: 18px; padding-bottom: 130px; }
.profile-footer { position: fixed; bottom: 0; left: var(--safe-left); right: var(--safe-right);
  width: min(430px, calc(100% - var(--safe-left) - var(--safe-right))); margin: auto;
  padding-bottom: max(16px, env(safe-area-inset-bottom)); background: var(--page-bg); z-index: 5; }
.f-row input, .f-item, .profile-chip { scroll-margin-block: 100px; }
/* 第四段丙-2（X-02）：打字时收起底部固定按钮，收键盘后回来。 */
.profile-typing .profile-footer { display: none; }
.f-row .segment { width: 180px; margin-left: auto; flex-shrink: 0; }
.f-row .segment button { font-size: 15px; }
.calendar-state { text-align: center; padding: 24px 0; color: var(--muted); }
.calendar-state button { min-height: 44px; padding: 8px 16px; color: var(--blue); }
.roster-sheet .pc-close { top: 8px; right: 8px; }
.roster-sheet .sheet-handle { margin: 2px auto 0; }
.roster-sheet .pc-head { padding-right: 44px; }
@media (max-width: 359px) {
  .f-k { width: 64px; }
  .f-row .segment { width: 150px; }
  .pc-facts b { font-size: 15px; }
  .profile-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .roster-sheet[open], .roster-sheet::backdrop { animation: none; }
}
.r-name, .pc-who h2 { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.roster-sheet[open] {
  animation: profile-rise .32s cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .roster-sheet[open] { animation: none; }
}

.profile-page .field.miss[data-profile-key="first"] > span,
.profile-page .field.miss[data-profile-key="qualification"] > span {
  color: var(--orange-text);
}

/* Local draft photos; sent records intentionally have no photo viewer. */
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-thumb, .photo-add { width: 76px; height: 76px; border-radius: 14px; }
.photo-thumb { position: relative; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo-add { border: 1px dashed var(--muted); background: transparent; color: var(--blue); font: inherit; font-size: 13px; }
.photo-remove { position: absolute; right: -6px; top: -6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: white; font: inherit; font-size: 22px; text-shadow: 0 1px 3px #000; }
.photo-remove::before { content: ''; position: absolute; width: 24px; height: 24px; inset: 10px; border-radius: 50%; background: #333c; z-index: -1; }
.photo-thumb { isolation: isolate; }
.photo-add:disabled, .photo-remove:disabled { opacity: .5; }

/* 竹村排班：沿用已批准试用页，限定在本页。 */
.date-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: var(--surface);
  border-radius: 999px;
  min-height: 48px;
}
.date-bar strong {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.date-bar button {
  position: relative;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border-radius: 999px;
}
@media (hover: hover) {
  .date-bar button:hover {
    background: var(--control-bg);
  }
}
.today-link {
  background: var(--transparent);
  align-self: flex-end;
  margin-top: -12px;
  min-height: 36px;
  padding: 0 4px;
  color: var(--blue);
  font-size: 15px;
}
.paiban-root .show-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paiban-root .show-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 4px;
  gap: 8px;
}
.paiban-root .show-title h2 {
  font-size: 20px;
  font-weight: 700;
}
.paiban-root .icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--blue);
}
.paiban-root .text-button {
  color: var(--blue);
  min-height: 44px;
  padding: 0 4px;
  font-size: 15px;
}
@media (hover: hover) {
  .paiban-root .icon-btn:hover,
  .paiban-root .text-button:hover {
    background: var(--hover-bg);
  }
}
.paiban-root .panel {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
}
.paiban-root .lineup {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.paiban-root .lineup col.c-label {
  width: 46px;
}
.paiban-root .lineup th {
  font-weight: 400;
}
.paiban-root .lineup tr.head th {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0 2px;
  text-align: center;
  white-space: nowrap;
}
.paiban-root .lineup tr.sep th {
  border-top: 1px solid var(--border);
}
.paiban-root .lineup th[scope='row'] {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.paiban-root .lineup td {
  padding: 2px 1px;
  text-align: center;
}
.paiban-root .lineup tr:last-child td {
  padding-bottom: 6px;
}
.paiban-root .cell {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 0;
}
.paiban-root .cell .nm {
  font-size: 15px;
  white-space: nowrap;
  line-height: 20px;
}
.paiban-root .cell small {
  font-size: 11px;
  line-height: 12px;
  color: var(--orange-text);
  white-space: nowrap;
}
.paiban-root .cell.also small {
  color: var(--blue-soft-text);
}
.paiban-root .cell.gone .nm {
  color: var(--muted);
  text-decoration: line-through;
}
.paiban-root .cell.empty {
  background: var(--orange-soft-bg);
}
.paiban-root .cell.empty .nm {
  color: var(--orange-text);
  font-size: 15px;
  font-weight: 600;
}
.paiban-root .cell.waipin .nm {
  color: var(--muted);
}
.paiban-root button.cell:active {
  background: var(--control-bg);
}
@media (hover: hover) {
  .paiban-root button.cell:hover {
    background: var(--hover-bg);
  }
  .paiban-root button.cell.empty:hover {
    filter: brightness(0.97);
  }
}
.paiban-root .show-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  background: var(--orange-soft-bg);
  color: var(--orange-text);
  font-size: 15px;
}
.paiban-root .show-alert button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--blue-fill);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.paiban-root .show-foot {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.empty-day {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.paiban-root .primary {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: var(--blue-fill);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
}
.paiban-root .primary:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
}
@media (hover: hover) {
  .paiban-root .primary:not(:disabled):hover {
    filter: brightness(1.08);
  }
}
.paiban-root .secondary-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-size: 17px;
}
@media (hover: hover) {
  .paiban-root .secondary-btn:hover {
    background: var(--hover-bg);
  }
}
.paiban-root .type-head {
  font-size: 22px;
  font-weight: 700;
  padding: 6px 4px 0;
}
.paiban-root .role-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paiban-root .role-block h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 4px;
}
.paiban-root .prow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 16px;
  width: 100%;
  text-align: left;
}
.paiban-root .prow + .prow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 60px;
  right: 0;
  border-top: 1px solid var(--border);
}
.paiban-root button.prow:active {
  background: var(--control-bg);
}
@media (hover: hover) {
  .paiban-root button.prow:not(:disabled):hover {
    background: var(--hover-bg);
  }
}
.paiban-root .avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 15px;
  font-weight: 600;
}
.paiban-root .avatar.intern {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}
.paiban-root .pname {
  flex: 1;
  min-width: 0;
  font-size: 17px;
}
.paiban-root .count {
  font-size: 15px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.paiban-root .tag {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
}
.paiban-root .tag.also {
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
}
.paiban-root .tag.out {
  background: var(--orange-soft-bg);
  color: var(--orange-text);
}
.paiban-root .prow.off .pname,
.paiban-root .prow.off .avatar {
  opacity: 0.5;
}
.paiban-root .stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.paiban-root .stepper button {
  position: relative;
  width: 36px;
  height: 32px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
}
.date-bar button::after,
.paiban-root .stepper button::after {
  content: '';
  position: absolute;
  inset: 0;
}
.paiban-root .stepper button:disabled {
  color: var(--disabled-text);
}
.paiban-root .stepper span {
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 10px;
}
.sheet-head h2 {
  font-size: 20px;
  font-weight: 700;
}
.sheet-head button {
  min-height: 44px;
  padding: 0 4px;
  color: var(--blue);
  font-size: 17px;
  flex-shrink: 0;
}
.paiban-root .paiban-sheet .group-label {
  padding: 14px 4px 6px;
  font-size: 13px;
  color: var(--muted);
}
.paiban-root .paiban-sheet .panel {
  background: var(--sheet-row-bg);
}
.paiban-root .paiban-sheet .primary {
  margin-top: 20px;
}
.paiban-root .segment {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  background: var(--segment-bg);
  border-radius: 999px;
  padding: 2px;
}
.paiban-root .segment button {
  min-height: 44px;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
}
.paiban-root .segment button[aria-pressed='true'] {
  background: var(--segment-selected);
  box-shadow: var(--segment-shadow);
  font-weight: 600;
}
.paiban-root .segment button:disabled:not([aria-pressed='true']) {
  color: var(--disabled-text);
}
.paiban-root .choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.paiban-root .choice {
  min-height: 56px;
  border: 1px solid var(--border);
  background: var(--sheet-row-bg);
  border-radius: 999px;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.paiban-root .choice:has(small) {
  border-radius: 14px;
}
.paiban-root .choice small {
  font-size: 13px;
  color: var(--muted);
}
.paiban-root .choice[aria-pressed='true'] {
  background: var(--blue-fill);
  border-color: var(--blue-fill);
  color: var(--white);
}
.paiban-root .choice[aria-pressed='true'] small {
  color: var(--white);
  opacity: 0.85;
}
.paiban-root .choice:disabled {
  opacity: 0.4;
}
@media (hover: hover) {
  .paiban-root .choice:not(:disabled):not([aria-pressed='true']):hover {
    background: var(--hover-bg);
  }
}
.paiban-root .danger {
  margin-top: 18px;
  min-height: 50px;
  border-radius: 999px;
  background: var(--sheet-row-bg);
  color: var(--red-text);
  font-size: 17px;
  width: 100%;
}
@media (hover: hover) {
  .paiban-root .danger:hover {
    background: var(--hover-bg);
  }
}
.paiban-root .menu-row {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  width: 100%;
  font-size: 17px;
  color: var(--blue);
  text-align: left;
}
.paiban-root .menu-row + .menu-row {
  border-top: 1px solid var(--border);
}
.paiban-root .menu-row.red {
  color: var(--red-text);
}
@media (hover: hover) {
  .paiban-root .menu-row:hover {
    background: var(--hover-bg);
  }
}
@media (max-width: 359px) {
  .paiban-root .cell .nm {
    font-size: 13px;
  }
  .paiban-root .lineup col.c-label {
    width: 40px;
  }
  .paiban-root .lineup th[scope='row'] {
    font-size: 13px;
  }
}

.paiban-root .content {
  gap: 18px;
}
.paiban-root .top-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--blue);
  min-height: 44px;
}
.paiban-root .paiban-sheet .panel {
  background: var(--sheet-person-bg);
}
.paiban-root .paiban-sheet .prominent {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  padding-top: 22px;
}
.paiban-root .paiban-sheet .segment button,
.today-link,
.paiban-root .show-alert button {
  min-height: 44px;
}
.paiban-root .stepper button {
  width: 44px;
  height: 44px;
}
.paiban-root .image-wrap {
  padding: 8px 16px 40px;
  max-width: 752px;
  width: 100%;
  margin: 0 auto;
}
.paiban-root .paiban-png {
  display: block;
  width: 100%;
  height: auto;
  background: white;
}
.paiban-root .paiban-sheet {
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
}
.paiban-root .paiban-sheet button:disabled {
  cursor: default;
}

.paiban-root {
  --sheet-row-bg: var(--sheet-person-bg);
  --hover-bg: var(--control-bg);
  --disabled-bg: var(--border);
}

.paiban-root button {
  color: inherit;
  background: transparent;
}

/* 曲水排班：名字流式排列，选人固定四列。 */
.paiban-root .theater-switch {
  margin-bottom: 4px;
}
.paiban-root .qs-show .show-title h2 {
  font-size: 22px;
  font-weight: 700;
}
.paiban-root .qs-block {
  padding: 16px;
}
.paiban-root .qs-block + .qs-block {
  border-top: 1px solid var(--border);
}
.paiban-root .qs-block h3 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}
.paiban-root .qs-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  min-width: 0;
}
.paiban-root .qs-label {
  flex: 0 0 6.3em;
  padding-top: 9px;
  font-size: 15px;
}
.paiban-root .qs-names {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.paiban-root .qs-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--control-bg);
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}
.paiban-root .qs-cell small {
  font-size: 11px;
}
.paiban-root .qs-cell.empty {
  border: 1px dashed var(--muted);
  color: var(--muted);
  background: transparent;
  min-width: 44px;
}
@media (max-width: 440px) {
  .paiban-root .qs-jili {
    flex-direction: column;
  }
  .paiban-root .qs-jili .qs-label {
    flex-basis: auto;
    padding-top: 0;
  }
  .paiban-root .qs-jili .qs-names {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
  }
  .paiban-root .qs-jili .qs-cell {
    min-width: 0;
    padding-inline: 6px;
    border-radius: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.paiban-root .qs-cell.gone,
.paiban-root .qs-cell.consecutive,
.paiban-root .qs-person.consecutive {
  color: var(--orange-text);
  background: var(--orange-soft-bg);
}
.paiban-root .qs-cell.gone > span {
  text-decoration: line-through;
}
.paiban-root .qs-alert {
  padding: 12px 16px;
  color: var(--orange-text);
  background: var(--orange-soft-bg);
  font-size: 15px;
}
.paiban-root .qs-dash {
  padding: 9px;
  color: var(--muted);
}
.paiban-root .qs-sheet.qs-tall {
  height: 86vh;
  height: 86dvh;
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
}
.paiban-root .qs-sheet .sheet-head h2 {
  min-width: 0;
  font-size: 20px;
}
.paiban-root .qs-current {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 4px 12px;
}
.paiban-root .qs-tabs {
  margin-top: 16px;
}
.paiban-root .qs-genders {
  margin-top: 10px;
}
.paiban-root .qs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.paiban-root .qs-person {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 66px;
  padding: 8px 2px;
  border-radius: 14px;
  background: var(--control-bg);
  font-size: 15px;
  line-height: 1.3;
}
.paiban-root .qs-person span {
  white-space: nowrap;
}
.paiban-root .qs-person small {
  font-size: 11px;
  color: var(--muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.paiban-root .qs-person.assigned {
  background: var(--blue-soft-bg);
  box-shadow: inset 0 0 0 1px var(--blue-soft-border);
}
.paiban-root .qs-person.assigned > span,
.paiban-root .qs-person.assigned small {
  color: var(--blue-soft-text);
}
.paiban-root .qs-person.unavailable {
  color: var(--muted);
}
.paiban-root .qs-person.unavailable {
  background: var(--control-bg);
  opacity: 0.6;
}
.paiban-root .qs-person.consecutive small,
.paiban-root .qs-person small .qs-streak {
  color: var(--orange-text);
}
.paiban-root .qs-group-title {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.paiban-root .qs-confirm {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 17px 16px;
  text-align: left;
  min-height: 76px;
}
.paiban-root .qs-confirm + .qs-confirm {
  border-top: 1px solid var(--border);
}
.paiban-root .qs-confirm strong {
  color: var(--blue);
  font-size: 17px;
}
.paiban-root .qs-confirm small {
  font-size: 13px;
  color: var(--muted);
}
.paiban-root .qs-confirm:disabled strong {
  color: var(--muted);
}
.paiban-root .qs-confirm:disabled:hover {
  background: transparent;
}
.paiban-root .qs-blank {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  color: var(--blue);
}
.paiban-root .qs-sheet .primary {
  margin-top: 22px;
}
@media (max-width: 350px) {
  .paiban-root .qs-block {
    padding: 14px 12px;
  }
  .paiban-root .qs-label {
    font-size: 13px;
  }
  .paiban-root .qs-grid {
    gap: 6px;
  }
  .paiban-root .qs-person {
    font-size: 15px;
  }
}

.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: var(--green-soft-bg);
  color: var(--green-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.paiban-root .confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 17px;
  font-weight: 600;
}
.paiban-root .confirm-btn:active {
  opacity: .85;
}
@media (hover: hover) {
  .paiban-root .confirm-btn:hover {
    filter: brightness(.97);
  }
}
.confirm-issues .issue {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  color: var(--orange-text);
  font-size: 15px;
  line-height: 1.45;
}
.confirm-issues .issue + .issue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 44px;
  right: 0;
  border-top: 1px solid var(--border);
}
.confirm-issues .issue svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.confirm-issues .issue span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.confirm-note {
  color: var(--muted);
  line-height: 1.6;
}

.session-source.ok > svg {
  color: var(--green-text);
}
.plan-pending {
  color: var(--orange-text);
}

.image-save-hint {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

/* 首页小组件：沿用用户确认的试用页，样式限定在首页。 */
.widget-home { --on-blue-muted:#FFFFFFE0; --chip-on-soft:var(--surface); --on-blue-line:#FFFFFF38;
  --lift-shadow:var(--card-shadow); --handle:var(--arrow); --handle-ring:var(--page-bg); gap:14px; }
.widget-home .home-head { display:flex; flex-direction:row; justify-content:space-between; align-items:flex-end; gap:8px; flex-wrap:wrap; }
.widget-home .head-actions { display:flex; gap:16px; align-items:center; margin-left:auto; }
.widget-home .head-actions button { background:transparent; padding:0; min-height:44px; color:var(--blue); font-size:17px; }
.widget-home .head-actions :is([data-home="edit"], [data-home="done"]) { position: relative; }
.widget-home .head-actions :is([data-home="edit"], [data-home="done"])::after {
  content: "";
  position: absolute;
  inset: 0 -5px;
}
.widget-home .head-actions .done { font-weight:600; }
.widget-home .home-grid { position: relative; }
.widget-home .home-grid.instant .w { transition: none; }
.widget-home .w { position: absolute; left: 0; top: 0; transition: transform .32s cubic-bezier(.2, .8, .2, 1), width .32s cubic-bezier(.2, .8, .2, 1), height .32s cubic-bezier(.2, .8, .2, 1);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.widget-home .wb { position: relative; width: 100%; height: 100%; border-radius: 22px; background: var(--surface); color: var(--text);
  text-align: left; display: block; transition: transform .2s, box-shadow .2s; }
.widget-home .wb:active { background: var(--control-bg); }
.widget-home .tone-blue .wb { background: var(--blue-fill); color: var(--white); }
.widget-home .tone-blue .wb:active { filter: brightness(.94); background: var(--blue-fill); }
.widget-home .wc { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; transition: opacity .12s; }
.widget-home .ic { color: var(--blue); display: inline-flex; }
.widget-home .tone-blue .ic { color: var(--white); }
.widget-home .chev { color: var(--arrow); display: inline-flex; }
.widget-home .tone-blue .chev { color: var(--white); }
.widget-home .s1 .wb { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; }
.widget-home .s1:not(.tone-blue) .wb { background: var(--surface); }
.widget-home .s1:not(.tone-blue) .wb:active { background: var(--control-bg); filter: none; }
.widget-home .s1:not(.tone-blue) .home-open:focus-visible { outline-color: var(--blue); }
.widget-home .big:has(.ic) { display: flex; align-items: center; gap: 6px; }
.widget-home .cic { position: absolute; inset: 0; display: grid; place-items: center; }
.widget-home .cal-ic { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; line-height: 1; }
.widget-home .cal-ic small { font-size: 11px; font-weight: 600; color: var(--category-calendar); }
.widget-home .cal-ic strong { color: var(--text); font-size: 22px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.widget-home .badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--orange-text); color: var(--page-bg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.widget-home .s1 .wc { overflow: visible; }
.widget-home .t2 { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 14px 16px; }
.widget-home .t2 strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.widget-home .t2 small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.widget-home .tone-blue .t2 small { color: var(--on-blue-muted); }
.widget-home .hero { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 14px 16px; }
.widget-home .hero-top { display: flex; justify-content: space-between; align-items: center; }
.widget-home .hero .big { display: block; font-size: 22px; font-weight: 700; }
.widget-home .hero small { display: block; font-size: 13px; margin-top: 3px; color: var(--muted); }
.widget-home .tone-blue .hero small { color: var(--on-blue-muted); }
.widget-home .info { display: flex; flex-direction: column; height: 100%; padding: 12px 14px; gap: 4px; }
.widget-home .s4 .info { padding: 14px 16px; gap: 8px; }
.widget-home .wh { display: flex; align-items: center; gap: 6px; min-height: 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
.widget-home .wh .ic { color: var(--blue); }
.widget-home .wh .meta { margin-left: auto; font-weight: 400; }
.widget-home .s4 .wh { font-size: 15px; color: var(--text); }
.widget-home .rows { display: flex; flex-direction: column; }
.widget-home .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 25px; font-size: 15px; }
.widget-home .s4 .row { min-height: 30px; border-top: 1px solid var(--border); }
.widget-home .s4 .row:first-child { border-top: 0; }
.widget-home .row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.widget-home .row .sub { color: var(--muted); font-size: 13px; white-space: nowrap; }
.widget-home .tag { font-size: 13px; font-weight: 600; white-space: nowrap; }
.widget-home .tag.ok { color: var(--green-text); }
.widget-home .tag.warn { color: var(--orange-text); }
.widget-home .warn-line { margin-top: auto; font-size: 13px; color: var(--orange-text); background: var(--orange-soft-bg); border-radius: 14px; padding: 6px 10px; }
.widget-home .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.widget-home .stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.widget-home .stat strong { display: block; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.widget-home .stat small { font-size: 13px; color: var(--muted); }
.widget-home .tone-blue .stat small { color: var(--on-blue-muted); }
.widget-home .s3 .stat strong { font-size: 28px; }
.widget-home .strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.widget-home .strip div { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.widget-home .strip .wd { font-size: 11px; color: var(--muted); }
.widget-home .strip .dn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.widget-home .strip .past .dn { color: var(--muted); font-weight: 400; }
.widget-home .strip .today .dn { background: var(--blue-fill); color: var(--white); }
.widget-home .strip .today .wd { color: var(--blue); font-weight: 600; }
.widget-home .strip .ct { font-size: 11px; min-height: 14px; color: var(--orange-text); font-weight: 600; }
.widget-home .chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.widget-home .chips.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.widget-home .chip { min-height: 40px; border-radius: 999px; background: var(--chip-on-soft); color: var(--blue); font-size: 15px; font-weight: 600; }
.widget-home .pill-btn { align-self: flex-start; margin-top: auto; padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--blue-fill); font-size: 15px; font-weight: 600; }
.widget-home .week-line { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.widget-home .late { font-size: 13px; color: var(--on-blue-muted); }
.widget-home .tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.widget-home .tbl th { font-size: 11px; font-weight: 400; color: var(--muted); text-align: right; padding-bottom: 2px; }
.widget-home .tbl th:first-child, .widget-home .tbl td:first-child { text-align: left; }
.widget-home .tbl td { text-align: right; padding: 5px 0; border-top: 1px solid var(--border); }
.widget-home .tbl .none { color: var(--separator); }
.widget-home .handle { position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; display: none; touch-action: none; z-index: 2; }
.widget-home .handle::before { content: ""; position: absolute; inset: -10px 0 0 -10px; }
.widget-home .handle::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 13px; height: 13px;
  border-right: 3.5px solid var(--handle); border-bottom: 3.5px solid var(--handle); border-radius: 0 0 14px 0; }
.widget-home .tone-blue .handle::after { border-color: var(--white); }
.widget-home .s1 .handle { right: -12px; bottom: -12px; }
.widget-home .s1 .handle::after { right: 10px; bottom: 10px; width: 14px; height: 14px; border: 3px solid var(--handle-ring); border-radius: 50%; background: var(--handle); }
.widget-home.editing .handle { display: block; }
.widget-home.editing .wb:active { filter: none; }
.widget-home.editing .tone-blue .wb:active { background: var(--blue-fill); }
.widget-home.editing .w:not(.tone-blue) .wb:active { background: var(--surface); }
@keyframes home-jig { 0% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } 100% { transform: rotate(-1.1deg); } }
@keyframes home-jig-sm { 0% { transform: rotate(-.35deg); } 50% { transform: rotate(.35deg); } 100% { transform: rotate(-.35deg); } }
.widget-home.editing .wb { animation: home-jig .26s ease-in-out infinite; }
.widget-home.editing .s3 .wb { animation-name: home-jig-sm; animation-duration: .3s; }
.widget-home.editing .s4 .wb { animation-name: home-jig-sm; animation-duration: .34s; }
.widget-home .w.lifted { z-index: 30; transition: width .32s, height .32s; }
.widget-home .w.lifted .wb { animation: none; transform: scale(1.05); box-shadow: var(--lift-shadow); }
.widget-home .w.resizing { z-index: 25; }
.widget-home .w.resizing .wb { animation: none; }
.widget-home .edit-hint { text-align: center; font-size: 13px; color: var(--muted); padding-top: 4px; }


.widget-home .home-open { position:absolute; inset:0; z-index:1; border-radius:inherit; }
.widget-home .wc { pointer-events:none; }
.widget-home .wc a, .widget-home .wc button { position:relative; z-index:2; pointer-events:auto; }
.widget-home.editing .wc a, .widget-home.editing .wc button { pointer-events:none; }
.widget-home .hero { background:transparent; border-radius:0; color:inherit; min-height:0; }
.widget-home .hero strong, .widget-home .big { display:block; font-size:22px; font-weight:700; }
.widget-home .hero small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.widget-home .row { min-width:0; flex-shrink:0; }
.widget-home .row > span:first-child { flex:1; }
.widget-home .rows { min-height:0; overflow:hidden; }
.widget-home .info { min-width:0; }
.widget-home .t2 { padding:12px 14px; }
.widget-home .t2 strong, .widget-home .t2 small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.widget-home .t2 > .ic { flex-shrink:0; }
.widget-home .t2 small { font-size:13px; }
.widget-home .wh > span:not(.ic), .widget-home .week-line, .widget-home .late, .widget-home .warn-line {
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.widget-home .wh .meta { flex-shrink:0; }
.widget-home .home-badge { position:absolute; right:-3px; top:-3px; min-width:18px; height:18px; padding:0 5px;
  border-radius:999px; background:var(--orange-text); color:var(--page-bg); font-size:11px; font-weight:700; display:grid; place-items:center; }
.widget-home .warn { color:var(--orange-text); }
.widget-home .ok { color:var(--green-text); }
.widget-home .muted { color:var(--muted); font-size:13px; }
.widget-home .home-records .record-row { min-height:0; border:0; }
.widget-home .home-records .record-open { background:transparent; min-height:25px; height:25px; padding:0; gap:4px; width:100%; }
.widget-home .s4 .home-records .record-open { height:27px; min-height:27px; }
.widget-home .home-records .record-copy { display:flex; align-items:center; gap:6px; min-width:0; }
.widget-home .home-records .record-copy strong { font-size:13px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.widget-home .home-records .record-copy small { flex-shrink:0; max-width:50%; font-size:13px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.widget-home .home-records .pill, .widget-home .home-records .record-open > svg { display:none; }
.widget-home .home-records .record-icon { flex-basis:16px; min-width: 12px; }
.widget-home .home-move { display:flex; flex-wrap:wrap; gap:16px; align-items:center; font-size:13px; color:var(--muted); }
.widget-home .home-move button { min-height:44px; color:var(--blue); }
.widget-home .home-open:focus-visible, .widget-home .handle:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.widget-home .tone-blue .home-open:focus-visible { outline-color:var(--white); outline-offset:-4px; }
@media (prefers-reduced-motion: reduce) {
  .widget-home .w, .widget-home .wb, .widget-home .wc { transition:none !important; animation:none !important; }
}

.widget-home .s4[data-home-key="attendance"] .row { min-height:20px; border:0; font-size:13px; }
.widget-home .s4[data-home-key="paiban"] .row { min-height:24px; }
.widget-home .s4[data-home-key="attendance"] .week-line { padding-top:5px; }

.widget-home .handle { min-height:34px; padding:0; background:transparent; }

/* Duo 第二批：只扩展中档，窄档和第三批宽档保留既有布局。 */
@media (560px <= width < 800px) {
  #app { max-width: 640px; }
  .profile-footer { width: min(640px, calc(100% - var(--safe-left) - var(--safe-right))); }
  .role-sheet, .person-sheet:not(.roster-sheet) {
    width: min(560px, calc(100% - var(--safe-left) - var(--safe-right)));
  }
  .people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (width >= 800px) {
  :root:where(:not([data-app="ios"])) { --side-width: clamp(320px, 40vw, 380px); view-transition-name: none; }
  :where(html:not([data-app="ios"])) #side:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0 auto 0 var(--safe-left);
    width: var(--side-width);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid var(--border);
  }
  :where(html:not([data-app="ios"])) #app {
    max-width: none;
    width: calc(100% - var(--side-width));
    margin: 0 0 0 var(--side-width);
    view-transition-name: page;
  }
  :where(html:not([data-app="ios"])) .topbar > .back[href="#home"] { visibility: hidden; pointer-events: none; }
  :where(html:not([data-app="ios"])) .role-sheet, :where(html:not([data-app="ios"])) .person-sheet {
    left: calc(var(--safe-left) + var(--side-width));
    right: var(--safe-right);
    width: min(560px, calc(100% - var(--safe-left) - var(--side-width) - var(--safe-right)));
  }
  :where(html:not([data-app="ios"])) .roster-sheet {
    left: calc(var(--safe-left) + var(--side-width) + 8px);
    right: max(8px, var(--safe-right));
    width: calc(100% - var(--safe-left) - var(--side-width) - 8px - max(8px, var(--safe-right)));
  }
  :where(html:not([data-app="ios"])) .profile-footer {
    left: calc(var(--safe-left) + var(--side-width));
    width: calc(100% - var(--safe-left) - var(--side-width) - var(--safe-right));
  }
  html:where(:not([data-app="ios"]))[data-nav]::view-transition-old(page), html:where(:not([data-app="ios"]))[data-nav]::view-transition-new(page) {
    mix-blend-mode: normal;
    animation-timing-function: cubic-bezier(.4,0,.2,1);
    animation-fill-mode: both;
  }
  html:where(:not([data-app="ios"]))[data-nav="push"]::view-transition-group(page),
  html:where(:not([data-app="ios"]))[data-nav="push"]::view-transition-old(page),
  html:where(:not([data-app="ios"]))[data-nav="push"]::view-transition-new(page) { animation-duration: 350ms; }
  html:where(:not([data-app="ios"]))[data-nav="pop"]::view-transition-group(page),
  html:where(:not([data-app="ios"]))[data-nav="pop"]::view-transition-old(page),
  html:where(:not([data-app="ios"]))[data-nav="pop"]::view-transition-new(page) { animation-duration: 320ms; }
  html:where(:not([data-app="ios"]))[data-nav="push"]::view-transition-old(page) { animation-name: nav-push-old; }
  html:where(:not([data-app="ios"]))[data-nav="push"]::view-transition-new(page) { animation-name: nav-push-new; }
  html:where(:not([data-app="ios"]))[data-nav="pop"]::view-transition-old(page) { animation-name: nav-pop-old; z-index: 1; }
  html:where(:not([data-app="ios"]))[data-nav="pop"]::view-transition-new(page) { animation-name: nav-pop-new; }
  html:where(:not([data-app="ios"]))[data-nav="none"]::view-transition-group(page),
  html:where(:not([data-app="ios"]))[data-nav="none"]::view-transition-new(page) { animation: none; }
  html:where(:not([data-app="ios"]))[data-nav="none"]::view-transition-old(page) { display: none; }
  @media (prefers-reduced-motion: reduce) {
    html:where(:not([data-app="ios"]))[data-nav]::view-transition-group(page), html:where(:not([data-app="ios"]))[data-nav]::view-transition-new(page) { animation: none; }
    html:where(:not([data-app="ios"]))[data-nav]::view-transition-old(page) { display: none; }
  }
}

/* Personal accounts share the existing panel, sheet and light/dark tokens. */
.account-avatar { display:inline-grid; place-items:center; flex:none; width:44px; height:44px; border-radius:50%; background:var(--blue-soft-bg); color:var(--blue-soft-text); font-size:18px; font-weight:600; text-decoration:none; }
.account-avatar.large { width:56px; height:56px; font-size:22px; }
.account-avatar.pending { background:var(--orange-soft-bg); color:var(--orange-text); }
.account-avatar.off { background:var(--neutral-bg); color:var(--muted); }
.account-role-pill { display:inline-flex; align-items:center; gap:4px; min-height:44px; padding:5px 12px; margin-top:4px; border-radius:999px; background:var(--blue-soft-bg); color:var(--blue-soft-text); font-size:15px; }
.account-role-text { margin:8px 0 0; color:var(--muted); font-size:15px; }
.widget-home.editing .account-role-pill,.widget-home.editing .account-role-text { visibility:hidden; }
.widget-home .home-head { align-items:flex-start; flex-wrap:nowrap; }
.widget-home .home-head>div:first-child { min-width:0; }
.widget-home .head-actions { gap:12px; flex-shrink:0; }
.account-profile { display:flex; align-items:center; gap:14px; padding:24px 4px 28px; }
.account-main { display:block; flex:1; min-width:0; overflow-wrap:anywhere; text-align:left; }
.account-main strong { font-size:22px; }
.account-main small { display:block; margin-top:4px; font-size:13px; font-weight:400; color:var(--muted); }
.account-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.account-tags span { border-radius:999px; padding:3px 9px; background:var(--blue-soft-bg); color:var(--blue-soft-text); font-size:13px; font-weight:600; }
.account-row { display:flex; align-items:center; gap:10px; width:100%; min-height:56px; padding:12px 16px; background:transparent; color:var(--text); font-size:17px; text-align:left; }
.account-row+.account-row { border-top:1px solid var(--border); }
button.account-row:active,.account-switch-label:active { background:var(--neutral-bg); }
.account-row>svg { flex:none; color:var(--arrow); }
.account-row>progress { flex:1 1 60px; min-width:0; }
.account-row:has(>progress)>span { white-space:nowrap; }
.account-row>.muted { margin-left:auto; display:flex; align-items:center; gap:6px; font-size:15px; }
.account-row.center { justify-content:center; text-align:center; }
.account-row.danger { color:var(--red-text); }
.account-row.blue { color:var(--blue); }
.account-row:disabled { color:var(--disabled-text); }
.account-gap { margin-top:20px; }
.account-sheet .account-gap:has(> .account-row:only-child),
.account-page .account-gap:has(> [data-action="account-logout"]:only-child) { border-radius:999px; }
.account-gap > [data-action="account-logout"]:only-child { border-radius:inherit; }
.account-group-title { color:var(--muted); font-size:13px; font-weight:400; padding:0 16px; margin:24px 0 8px; }
.account-group-title:first-child { margin-top:8px; }
.account-note { flex-shrink:1; max-width:42%; color:var(--muted); font-size:13px; line-height:1.5; text-align:right; overflow-wrap:anywhere; }
.account-note.pending { color:var(--orange-text); }
.account-footnote { color:var(--muted); font-size:13px; line-height:1.6; margin:12px 8px 20px; }
.account-sheet-head { display:grid; grid-template-columns:60px minmax(0,1fr) 60px; align-items:center; gap:4px; margin:0 0 16px; }
.account-sheet-head h2 { margin:0; font-size:17px; font-weight:600; text-align:center; }
.account-sheet-head button { min-height:44px; min-width:44px; padding:0 4px; color:var(--blue); font-size:17px; background:transparent; }
.account-sheet-head .account-close { width:auto; justify-content:flex-start; }
.account-sheet-head .account-done { width:auto; justify-self:end; justify-content:flex-end; }
.account-sheet-head button:disabled { color:var(--disabled-text); }
.account-field { flex-direction:column; align-items:stretch; gap:6px; padding:12px 16px; }
.account-field span { font-size:13px; }
.account-field input { width:100%; min-width:0; min-height:44px; background:transparent; color:var(--text); font-size:17px; border:0; border-radius:999px; padding:8px 0; }
.account-field input[aria-invalid=true] { outline:2px solid var(--red-text); outline-offset:2px; }
.account-role-fields { min-width:0; border:0; padding:0; margin:24px 0 0; }
.account-role-fields legend { color:var(--muted); padding:0 16px 8px; font-size:13px; }
.account-switch-label { min-height:60px; cursor:pointer; }
.account-error:empty,.account-status:empty { margin:0; }
.account-status { margin:16px 4px 0; font-size:13px; line-height:1.5; color:var(--muted); }
.account-error { margin:16px 4px 0; font-size:15px; }
.account-lead { margin:24px 4px 16px; font-size:17px; }
.account-linkbox { display:block; width:100%; min-height:104px; margin:0 0 20px; padding:14px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--text); font:17px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap:anywhere; resize:vertical; user-select:text; -webkit-user-select:text; }
.account-confirm { text-align:center; }
.account-confirm h3 { font-size:20px; }
.account-confirm p { line-height:1.6; margin:16px 8px; }
@media (hover:hover) { button.account-row:not(:disabled):hover,.account-switch-label:hover { background:var(--neutral-bg); } }
.account-page .account-profile { padding:16px; margin-bottom:24px; background:var(--surface); border-radius:22px; }

/* Native tab bars overlay the scroll view; keep all web controls above its measured inset. */
html[data-app="ios"] { --app-bottom: 0px; scroll-padding-bottom: var(--app-bottom); }
html[data-app="ios"] body { padding-bottom: var(--app-bottom); }
html[data-app="ios"] :is(.profile-footer, .role-sheet, .person-sheet) { bottom: var(--app-bottom); }
html[data-app="ios"] .roster-sheet { bottom: calc(var(--app-bottom) + 8px); }
html[data-app="ios"] :is(dialog, .hud) { max-height: calc(100dvh - var(--app-bottom) - env(safe-area-inset-top)); }
@media (width >= 560px) {
  html[data-app="ios"] #app { max-width: 640px; }
  html[data-app="ios"] .profile-footer { width: min(640px, calc(100% - var(--safe-left) - var(--safe-right))); }
  html[data-app="ios"] :is(.role-sheet, .person-sheet:not(.roster-sheet)) { width: min(560px, calc(100% - var(--safe-left) - var(--safe-right))); }
  html[data-app="ios"] .people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.zhuyan-acts button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 52px;
  padding: 4px 0;
  font-size: 15px;
}
.zhuyan-acts small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.session-card.absence-conflict { background: var(--orange-soft-bg); border: 1px solid var(--orange-soft-border); }

/* Account deletion requests use the existing account rows and native dialog. */
.account-main .deletion-badge{color:#9a4f00}.privacy-link{display:inline-block;padding:10px;color:var(--muted,#6e6e73);font-size:13px}
@media(prefers-color-scheme:dark){.account-main .deletion-badge{color:#ffb86b}}

/* 2.0 第一步：设密码页与纯演员落脚页（画稿 M1Setup） */
.setup-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: max(64px, env(safe-area-inset-top));
}
.setup-page h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}
.setup-page .setup-icon {
  flex: none;
  color: var(--green-text);
}
.setup-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.setup-head p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 17px;
}
.setup-page form {
  gap: 18px;
}
.setup-fields {
  padding: 0 16px;
}
.setup-row {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 17px;
}
.setup-row + .setup-row {
  border-top: 1px solid var(--border);
}
.setup-key {
  flex: none;
  width: 92px;
}
.setup-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.setup-row input[readonly] {
  color: var(--muted);
}
.setup-row input:focus {
  outline: none;
}
.setup-row:focus-within {
  box-shadow: inset 0 -2px 0 var(--blue);
}
.setup-hint {
  margin: -8px 0 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.setup-hint.error {
  color: var(--red-text);
}
.setup-hint.center {
  margin: 0;
  text-align: center;
}
.setup-go {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
}
.setup-logout {
  background: var(--control-bg);
  color: var(--red-text);
}
.setup-next {
  margin: 6px 0 0;
  font-size: 17px;
}
.setup-steps {
  margin: 0;
  padding: 0 16px;
  list-style: none;
}
.setup-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  font-size: 17px;
}
.setup-step + .setup-step {
  border-top: 1px solid var(--border);
}
.setup-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-soft-bg);
  color: var(--blue-soft-text);
  font-size: 13px;
  font-weight: 700;
}
.setup-text {
  flex: 1;
  min-width: 0;
}
.setup-get {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* 2.0 审批：剧场负责人的“待你审批”卡片和审批页（照画稿 P1MgrHome、P1MgrList、P1MgrDetail、P1Land） */
.ap-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--orange-soft-bg);
  color: var(--text);
  text-decoration: none;
}
.ap-card-ic {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-card-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-card-tx strong { font-size: 20px; font-weight: 700; }
.ap-card-tx small { font-size: 15px; color: var(--orange-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-card-ch { flex: none; }
.ap-card:active { opacity: .7; }
.ap-page { padding-bottom: 0; }
.ap-page .topbar button.back { background: var(--transparent); color: var(--blue); font: inherit; font-size: 17px; }
.ap-list { gap: 8px; padding-bottom: 32px; }
.ap-gh { font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 4px 0; margin: 0; }
.ap-panel { padding: 0 14px; display: flex; flex-direction: column; }
.ap-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  background: var(--transparent);
  color: var(--text);
  text-align: left;
  font: inherit;
}
.ap-row + .ap-row { border-top: 1px solid var(--border); }
.ap-av {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-av.big { width: 56px; height: 56px; border-radius: 50%; font-size: 24px; }
.ap-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-tl { display: flex; align-items: baseline; gap: 8px; }
.ap-tl strong { font-size: 17px; font-weight: 600; }
.ap-tl > span { font-size: 15px; color: var(--secondary-text); }
.ap-tl time { margin-left: auto; font-size: 13px; color: var(--muted); flex: none; }
.ap-bd { font-size: 15px; color: var(--secondary-text); overflow-wrap: anywhere; }
.ap-nt { font-size: 13px; color: var(--muted); }
.ap-nt.good { color: var(--green-text); }
.ap-nt.bad { color: var(--red-text); }
.ap-ch { color: var(--separator); font-size: 22px; flex: none; }
.ap-empty { color: var(--muted); font-size: 15px; padding: 12px 4px; margin: 0; }
.ap-foot { font-size: 13px; color: var(--muted); text-align: center; padding: 8px 0; margin: 0; }
.ap-retry { align-self: center; }
.ap-detail { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ap-scroll { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 132px; }
.ap-head { display: flex; align-items: center; gap: 14px; padding: 2px 4px 4px; }
.ap-head > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-head strong { font-size: 28px; font-weight: 700; line-height: 1.2; }
.ap-head span span { font-size: 17px; color: var(--secondary-text); }
.ap-head small { font-size: 13px; color: var(--muted); }
.ap-why { padding: 13px 16px; gap: 2px; }
.ap-why small { font-size: 13px; color: var(--muted); }
.ap-why > span { font-size: 17px; overflow-wrap: anywhere; }
.ap-muted { color: var(--muted); }
.ap-li { display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: 17px; }
.ap-li + .ap-li, .ap-why-no + .ap-li { border-top: 1px solid var(--border); }
.ap-r { margin-left: auto; color: var(--muted); text-align: right; }
.ap-r.strong { color: var(--text); font-weight: 600; }
.ap-r.yes { color: var(--green-text); }
.ap-r.no { color: var(--red-text); }
.ap-why-no { margin: -6px 0 12px; padding: 8px 10px; border-radius: 14px; background: var(--page-bg); font-size: 15px; }
.ap-foot-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 12px max(16px, var(--safe-right)) max(34px, env(safe-area-inset-bottom)) max(16px, var(--safe-left));
  background: color-mix(in srgb, var(--page-bg) 94%, transparent);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 3;
}
.ap-btn {
  flex: 1;
  min-height: 54px;
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}
.ap-btn.primary-ap { flex: 2; background: var(--blue-fill); color: var(--white); }
.ap-btn.danger { background: #D70015; color: var(--white); }
.ap-btn:disabled { opacity: .5; }
.ap-closed {
  flex: 1;
  min-height: 54px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--muted);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}
.ap-sheet h2 { font-size: 20px; font-weight: 700; padding: 0 4px; margin: 0 0 14px; }
.ap-reason { display: flex; flex-direction: column; padding: 12px 16px; }
.ap-reason small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ap-reason textarea {
  border: 0;
  outline: 0;
  resize: none;
  padding: 6px 0 0;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--transparent);
}
.ap-sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.ap-cols { display: flex; flex: 1; min-height: 0; }
.ap-page.two .ap-list {
  width: 300px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 0 12px 24px 16px;
  border-right: 1px solid var(--border);
}
.ap-page.two .ap-scroll { padding: 8px 28px 132px; }
.ap-row.compact { border-radius: 14px; padding: 10px 8px; }
.ap-row.compact + .ap-row.compact { border-top: 0; }
.ap-row.compact .ap-tl > span, .ap-row.compact .ap-bd { font-size: 13px; color: var(--muted); }
.ap-row.compact.on { background: var(--blue-fill); color: var(--white); }
.ap-row.compact.on .ap-tl > span, .ap-row.compact.on .ap-bd { color: #FFFFFFD9; }
.ap-minis { display: flex; flex-direction: column; padding: 2px 0; }
.ap-mini { text-align: left; background: var(--transparent); color: var(--muted); font: inherit; font-size: 13px;
  line-height: 1.4; padding: 5px 8px; border-radius: 14px; }
.ap-mini .good { color: var(--green-text); }
.ap-mini .bad { color: var(--red-text); }
.ap-mini.on { background: var(--neutral-bg); color: var(--text); }
@media (width >= 800px) {
  :where(html:not([data-app="ios"])) .ap-foot-bar {
    left: calc(var(--safe-left) + var(--side-width));
  }
  :where(html:not([data-app="ios"])) .ap-page.two .ap-foot-bar {
    left: calc(var(--safe-left) + var(--side-width) + 300px);
  }
}

/* 2.0 实习生账号：实习生负责人“我的 → 实习生账号”（画稿 SxAccounts），名单行照账号页的 panel / account-row。 */
.tr-progress { display:flex; flex-direction:column; gap:10px; padding:14px 16px 16px; }
.tr-progress-top { display:flex; align-items:baseline; gap:8px; }
.tr-progress-top strong { font-size:17px; font-weight:600; }
.tr-progress-top span { margin-left:auto; color:var(--muted); font-size:15px; }
.tr-bar { height:6px; border-radius:999px; background:var(--progress-track); overflow:hidden; }
.tr-bar span { display:block; height:6px; border-radius:999px; background:var(--blue-fill); }
.tr-row { min-height:62px; padding:10px 16px; gap:12px; }
.tr-row .account-main > span { font-size:17px; }
.tr-row .account-main small { margin-top:2px; }
.tr-row .account-main small.tr-warn { color:var(--orange-text); }
.tr-avatar { display:inline-grid; place-items:center; flex:none; width:36px; height:36px; border-radius:50%; background:var(--neutral-bg); color:var(--neutral-text); font-size:15px; font-weight:600; }
.tr-avatar.active { background:var(--blue-fill); color:var(--white); }
.tr-avatar.pending { background:var(--orange-soft-bg); color:var(--orange-text); }
.tr-get { position:relative; flex:none; min-width:68px; min-height:34px; padding:0 14px; border:0; border-radius:999px; background:var(--control-bg); color:var(--blue); font-size:15px; font-weight:600; cursor:pointer; }
.tr-get::after { content:""; position:absolute; inset:-5px 0; }
.tr-get:disabled { color:var(--disabled-text); cursor:default; }
.tr-sheet { background:var(--surface); }
.tr-sheet .account-sheet-head { margin-bottom:8px; }
.tr-phone { display:flex; align-items:center; gap:8px; min-height:28px; margin:0 0 14px; font-size:15px; }
.tr-phone span { color:var(--muted); }
.tr-phone strong { margin-left:auto; font-weight:600; font-variant-numeric:tabular-nums; }
.tr-message { display:flex; flex-direction:column; gap:4px; padding:14px 16px; border-radius:14px; background:var(--page-bg); font-size:15px; line-height:1.55; user-select:text; -webkit-user-select:text; overflow-wrap:anywhere; }
.tr-link { color:var(--blue); word-break:break-all; }
.tr-actions { display:flex; gap:12px; margin-top:14px; }
.tr-share { flex:none; width:116px; min-height:50px; border:0; border-radius:999px; background:var(--control-bg); color:var(--text); font-size:17px; font-weight:600; cursor:pointer; }
.tr-copy { flex:1; min-height:50px; border-radius:999px; }

/* 2.0 下一轮 · 演出安排：剧场负责人首页提醒条、排班页两行小标签和当天空白提示（照 App 稿 X3MgrHome、X3Paiban） */
.pb-plan-bar { display:flex; flex-direction:column; margin:0 0 12px; padding:0 16px; border-radius:22px; background:var(--orange-soft-bg); }
.pb-plan-line { display:flex; align-items:center; gap:10px; min-height:52px; color:var(--orange-text); text-decoration:none; }
.pb-plan-line + .pb-plan-line { border-top:1px solid var(--orange-soft-border); }
.pb-plan-line span:first-of-type { flex:1; min-width:0; color:var(--plan-bar-text, #5A3300); font-size:17px; font-weight:600; }
.pb-plan-ch { font-size:22px; color:var(--orange-text); }
.pb-plan-line:active { opacity:.7; }
@media (prefers-color-scheme: dark) { .pb-plan-line span:first-of-type { color:var(--orange-text); } }
.pb-plan-box { display:flex; flex-direction:column; margin-top:-6px; padding:2px 14px 12px; border-radius:14px; background:var(--surface); }
.pb-plan { display:flex; align-items:flex-start; gap:10px; padding:10px 0 0; }
.pb-plan + .pb-plan { padding-top:8px; }
.pb-plan-label { display:flex; align-items:center; gap:6px; flex:none; min-height:34px; color:var(--orange-text); font-size:15px; font-weight:600; }
.pb-plan-mark { width:9px; height:9px; border-radius:50%; border:2px solid var(--orange-text); }
.pb-plan.pending .pb-plan-mark { background:var(--orange-text); }
.pb-plan-chips { display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.pb-plan-chip { min-height:34px; padding:0 14px; border-radius:999px; border:1.5px solid var(--orange-soft-border); background:var(--surface);
  color:var(--orange-text); font-size:15px; font-weight:600; }
.pb-plan.pending .pb-plan-chip { border-color:transparent; background:var(--orange-soft-bg); }
.pb-plan-chip[aria-current="true"] { border-color:var(--orange-text); }
.pb-plan-empty.empty-day { color:var(--orange-text); font-weight:600; }

/* 2.0 下一轮 · 集合通知：首页卡片（X4MgrHome） */
.widget-home .gather-info { gap:8px; }
.widget-home .gather-info .wh { font-size:17px; color:var(--text); }
.widget-home .gather-ic { display:inline-grid; place-items:center; width:28px; height:28px; flex:none; }
.widget-home .gather-write { min-height:44px; padding:0 4px; background:transparent; color:var(--blue); font-size:15px; font-weight:600; }
.widget-home .gather-row { margin-top:auto; font-size:17px; }
.widget-home .gather-count { flex:none; color:var(--blue); font-size:17px; font-weight:700; }

/* 2.0 下一轮 · 集合通知：发过的列表、回执（X4List、X4Receipt） */
.gt-page .top-action.gt-write { font-weight:600; }
.gt-page .topbar button.back { background:var(--transparent); color:var(--blue); font:inherit; font-size:17px; }
.gt-panel { padding:0 14px; display:flex; flex-direction:column; }
.gt-row { display:flex; align-items:center; gap:12px; width:100%; min-height:72px; padding:12px 0; background:var(--transparent);
  color:var(--text); font:inherit; text-align:left; }
.gt-row + .gt-row { border-top:1px solid var(--border); }
.gt-tile { display:inline-grid; place-items:center; flex:none; width:34px; height:34px; }
.gt-tile.off { color: #AEAEB2; }
.gt-tx { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.gt-tx strong { font-size:17px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gt-tx small { font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gt-struck { text-decoration:line-through; color:var(--muted); }
.gt-count { flex:none; display:flex; flex-direction:column; align-items:flex-end; }
.gt-count b { font-size:17px; color:var(--blue); font-variant-numeric:tabular-nums; }
.gt-count.past b { color:var(--muted); }
.gt-count small { font-size:13px; color:var(--muted); }
.gt-chev { color:var(--separator); font-size:22px; flex:none; }
.gt-detail { gap:12px; padding-bottom:40px; }
.gt-title { margin:0; padding:0 4px; font-size:28px; font-weight:700; }
.gt-banner { margin:0; padding:10px 14px; border-radius:22px; background:var(--orange-soft-bg); color:var(--orange-text); font-size:15px; font-weight:600; }
.gt-banner.off { background:var(--neutral-bg); color:var(--text); }
.gt-card { display:flex; flex-direction:column; gap:4px; padding:14px 16px; font-size:17px; overflow-wrap:anywhere; }
.gt-card strong { font-size:20px; font-weight:700; }
.gt-card small { margin-top:6px; padding-top:8px; border-top:1px solid var(--border); font-size:13px; color:var(--muted); }
.gt-progress { display:flex; flex-direction:column; gap:10px; padding:14px 16px 16px; font-size:17px; color:var(--muted); }
.gt-progress b { font-size:34px; color:var(--blue); font-variant-numeric:tabular-nums; }
.gt-gh { margin:4px 0 0; padding:0 4px; font-size:13px; font-weight:600; color:var(--muted); }
.gt-gh.row { display:flex; align-items:center; justify-content:space-between; }
.gt-link { min-height:44px; padding:0 4px; background:var(--transparent); color:var(--blue); font:inherit; font-size:15px; font-weight:600; }
.gt-list { padding:0 16px; display:flex; flex-direction:column; }
.gt-li { display:flex; align-items:center; gap:10px; width:100%; min-height:50px; padding:0; background:var(--transparent); color:var(--text);
  font:inherit; font-size:17px; text-align:left; }
.gt-list > .gt-li + .gt-li { border-top:1px solid var(--border); }
.gt-li > span:first-child { flex:1; min-width:0; }
.gt-li.danger { color:var(--red-text); }
.gt-done { padding:0 16px; background:var(--surface); border-radius:22px; }
.gt-state { flex:none; font-size:13px; color:var(--muted); }
.gt-state.warn { color:var(--orange-text); }
.gt-muted { color:var(--muted); }

/* 2.0 下一轮 · 集合通知：写一条、选人、发出去了、改、取消（半屏弹层，X4Compose、X4Pick、X4Sent） */
.gt-sheet { max-height:94dvh; }
.gt-sheet[open] { display:flex; flex-direction:column; gap:12px; }
.gt-sheet[open] > * { flex-shrink:0; }
.gt-sheet .gt-head { margin:0; }
.gt-sheet .gt-head h2 { font-size:17px; }
.gt-kinds { display:flex; flex-wrap:wrap; gap:8px; }
.gt-kind { min-height:44px; padding:0 16px; border-radius:999px; background:var(--sheet-person-bg); color:var(--text); font-size:17px; font-weight:400; }
.gt-kind.on { background:var(--text); color:var(--page-bg); font-weight:600; }
.gt-line { display:flex; align-items:center; gap:12px; width:100%; min-height:54px; padding:6px 16px; background:var(--transparent);
  color:var(--text); font:inherit; font-size:17px; text-align:left; }
.panel > .gt-line + .gt-line { border-top:1px solid var(--border); }
.gt-line > span:first-child { flex:none; }
.gt-line input[type="text"] { flex:1; min-width:0; border:0; outline:0; background:var(--transparent); color:var(--text); font:inherit;
  font-size:17px; text-align:right; }
.gt-pill { position:relative; margin-left:auto; display:inline-flex; align-items:center; min-height:38px; padding:0 12px; border-radius:999px;
  background:var(--control-bg); font-size:17px; font-variant-numeric:tabular-nums; }
.gt-pill.empty { color:var(--blue); }
.gt-pill input { position:absolute; inset:0; width:100%; height:100%; opacity:0; border:0; font-size:17px; }
.gt-place { padding-bottom:8px; }
.gt-places { display:flex; gap:8px; margin-block:-3px -1px; padding:5px 16px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
.gt-chip { position:relative; flex:none; min-height:34px; padding:0 12px; border-radius:999px; background:var(--control-bg); color:var(--text); font-size:15px; }
.gt-chip::after { content:""; position:absolute; inset:-5px 0; }
.gt-chip.on { background:var(--blue-soft-bg); color:var(--blue-soft-text); font-weight:600; }
.gt-people .gt-muted { margin-left:auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right; }
.gt-switch > span:first-child { display:flex; flex-direction:column; flex:1; }
.gt-switch small { font-size:13px; color:var(--muted); }
.gt-note { display:flex; flex-direction:column; padding:10px 16px; }
.gt-note small { font-size:13px; color:var(--muted); }
.gt-note textarea { border:0; outline:0; resize:none; padding:6px 0 0; font:inherit; font-size:17px; color:var(--text); background:var(--transparent); }
.gt-hint { margin:-4px 4px 0; font-size:13px; color:var(--muted); line-height:1.4; }
.gt-send { margin-top:4px; border-radius:999px; }
.gt-scopes { display:flex; gap:10px; }
.gt-scope { flex:1; min-height:44px; border-radius:999px; background:var(--sheet-person-bg); color:var(--text); font-size:17px; font-weight:400; }
.gt-scope.on { background:var(--text); color:var(--page-bg); font-weight:600; }
.gt-scope.solo { cursor:default; }
.gt-modes { display:flex; gap:8px; }
.gt-mode { position:relative; flex:1; min-height:42px; border-radius:999px; background:var(--sheet-person-bg); color:var(--blue); font-size:15px; font-weight:600; padding:0 6px; }
.gt-mode::after { content:""; position:absolute; inset:-1px 0; }
.gt-mode.on { background:var(--blue-fill); color:var(--white); }
.gt-summary { display:flex; flex-direction:column; gap:3px; padding:12px 14px; border-radius:14px; background:var(--blue-soft-bg); color:var(--blue-soft-text); font-size:13px; }
.gt-summary strong { font-size:17px; }
.gt-summary small { font-size:13px; }
.gt-periods { display:flex; gap:8px; margin-top:6px; }
.gt-period { position:relative; min-height:32px; padding:0 14px; border-radius:999px; background:var(--surface); color:var(--blue); font-size:13px; font-weight:600; }
.gt-period::after { content:""; position:absolute; inset:-6px 0; }
.gt-period.on { background:var(--blue-fill); color:var(--white); }
.gt-sheet .gt-gh { margin:4px 0 -4px; }
.gt-person { display:flex; align-items:center; gap:12px; width:100%; min-height:48px; padding:0; background:var(--transparent); color:var(--text);
  font:inherit; font-size:17px; text-align:left; }
.gt-list > .gt-person + .gt-person { border-top:1px solid var(--border); }
.gt-check { width:24px; height:24px; flex:none; border-radius:50%; border:1.5px solid var(--separator); }
.gt-check.on { border-color:var(--blue-fill); background:var(--blue-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.5 3.5L17 9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.gt-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gt-tag { flex:none; padding:2px 8px; border-radius:999px; background:var(--neutral-bg); color:var(--neutral-text); font-size:13px; }
.gt-sex { flex:none; width:20px; text-align:right; color:var(--muted); font-size:15px; }
.gt-sent { display:flex; flex-direction:column; align-items:center; gap:8px; padding:8px 8px 4px; text-align:center; }
.gt-sent strong { font-size:28px; font-weight:700; }
.gt-sent p { margin:0; color:var(--secondary-text); font-size:15px; line-height:1.5; }
.gt-copy { display:flex; flex-direction:column; gap:12px; padding:16px; }
.gt-copy-text { margin:0; font-size:15px; line-height:1.55; user-select:text; -webkit-user-select:text; overflow-wrap:anywhere; }
.gt-copy-button { min-height:46px; border-radius:999px; background:var(--blue-soft-bg); color:var(--blue-soft-text); font-size:17px; font-weight:600; }
.gt-sheet .gt-link { align-self:center; }
.gt-confirm { margin:0 4px; font-size:15px; color:var(--secondary-text); line-height:1.5; }
@media (prefers-color-scheme: dark) {
  .gt-pill, .gt-chip, .gt-tag { background:#3A3A3C; }
}
/* 2.0 下一轮：网页提示一次“隐私政策更新了”（/jc/、/sx/） */
.privacy-notice .privacy-points { margin:0 0 12px; padding:14px 16px 14px 34px; border-radius:14px; background:var(--surface); display:flex; flex-direction:column; gap:10px; font-size:15px; line-height:1.45; }
.privacy-notice .privacy-read { display:flex; justify-content:center; align-items:center; min-height:44px; color:var(--blue); font-size:17px; text-decoration:none; }
.privacy-notice .privacy-ok { width:100%; min-height:50px; margin-top:4px; }

/* 2.0 换头像：右上角、“我的”换成自己的头像（画稿 AMe、AFrame），集合回执名单前面有头像 */
.account-avatar.photo { background:var(--transparent); overflow:visible; }
.account-profile-button { width:100%; border:0; margin:0 0 24px; font:inherit; color:inherit; text-align:left; cursor:pointer; }
.account-profile-button > svg { margin-left:auto; color:var(--muted); flex:none; }
.account-page .account-profile.fire { flex-direction:column; text-align:center; padding:150px 16px 18px; margin-bottom:16px; }
.account-profile.fire .account-main { align-items:center; }
.account-profile.fire .account-tags { justify-content:center; }
.account-flame { padding:0 16px; margin-bottom:24px; }
.gt-who { flex:1; min-width:0; display:flex; align-items:center; gap:10px; min-height:50px; border:0; margin:0; padding:0; background:var(--transparent);
  color:inherit; font:inherit; text-align:left; cursor:pointer; }
.gt-who > span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* 2.0 位置对调：换位置审批详情“换了以后”（画稿 SMDetail） */
.ap-move { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; font-size: 17px; }
.ap-move + .ap-move { border-top: 1px solid var(--border); }
.ap-move small { font-size: 13px; color: var(--muted); }
.ap-move strong { font-weight: 700; }
/* 2.0 位置对调：实习生负责人（/sx/）的通知（画稿 S7Sx）——首页卡片、“我的”一行的红点、通知列表 */
.sx-card { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 14px 16px; border-radius: 22px; background: var(--surface, #FFFFFF); color: var(--text); text-decoration: none; }
.sx-card-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sx-card-tx strong { font-size: 17px; font-weight: 700; }
.sx-card-tx small { font-size: 15px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-ch { flex: none; color: var(--muted); font-size: 20px; }
.sx-glyph { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.sx-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; margin-right: 6px; vertical-align: middle; }
.sx-gh { margin: 14px 4px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sx-list { padding: 0 12px 0 6px; }
.sx-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; }
.sx-row + .sx-row { border-top: 1px solid var(--border); }
.sx-row.off .sx-tx { opacity: .55; }
.sx-blue { flex: none; width: 8px; height: 8px; margin-top: 12px; border-radius: 50%; }
.sx-blue.on { background: #0A84FF; }
.sx-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sx-tl { display: flex; align-items: baseline; gap: 8px; }
.sx-tl strong { font-size: 17px; font-weight: 700; }
.sx-tl time { margin-left: auto; font-size: 13px; color: var(--muted); }
.sx-tag { font-size: 13px; padding: 0 6px; border-radius: 999px; background: var(--page-bg); color: var(--muted); }
.sx-bd { font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; color: var(--text); }

/* 账号三段：按键和触控都能独立切换。 */
.account-segments{display:flex;background:var(--segment-bg);border-radius:999px;padding:3px;margin-bottom:16px}.account-segments button{flex:1;border:0;background:transparent;color:inherit;font:inherit;min-height:44px;border-radius:999px}.account-segments button[aria-pressed=true]{background:var(--segment-selected);box-shadow:var(--segment-shadow)}.account-segments button:focus-visible{outline:3px solid var(--blue);outline-offset:1px}

/* v2k2：认人处共用头像；点名头像保持不接收指针，不改变滑动容器。 */
.people-face { display: inline-flex; flex: none; vertical-align: middle; }
/* 首行有火时给整团火留位置，保留列表圆角裁切，也不让火星盖住组标题。 */
.panel:has(> :is(.r-row, .account-row, .ap-row, .stats-row):first-child .av.fire) { padding-top:40px; }
.roster-sheet .pc-head:has(.av.fire) { padding-top:56px; }
.card-page .avatar { width:128px; height:128px; border-radius:50%; background:transparent; }
/* 矮卡片：有火的人整块往下挪，火身留在卡片里（头像顶上留 160）；还不够时火飘出卡片顶边，不切平。够高时算出来是 0，样子不变。 */
.card-page :is(.swipe-card, .next-card):has(.av.fire) { padding-top:max(0px, min(calc(320px + 190px - 100cqh), calc(100cqh - 190px - 40px))); }
.account-deletion-title { color:var(--red-text); font-weight:600; }
.account-deletion-group { box-shadow:inset 0 0 0 1px #F2C9C6; }
@media (prefers-color-scheme:dark) { .account-deletion-group { box-shadow:inset 0 0 0 1px #6B3535; } }
.account-note.danger, .account-main small.danger { color:var(--red-text); }
.ap-faces { display:inline-flex; align-items:center; flex:none; width:60px; }
.ap-faces > .av + .av { margin-left:-8px; }
.qs-crazy-dot { display:inline-block; width:8px; height:8px; margin-left:5px; border-radius:50%; background:#7C68FA; vertical-align:middle; }
@media (prefers-color-scheme:dark) { .qs-crazy-dot { background:#A898FF; } }
/* 第 4 批：实习生疯狂模式。修改资料的开关（T8）、请假提醒（T9）、实习生负责人只读页（T13）、审批详情的同意按钮（T11） */
.f-between { justify-content: space-between; }
.f-between .f-k { flex: 1 1 auto; width: auto; white-space: nowrap; }
.f-k-two { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.f-k-two small { font-size: 13px; color: var(--muted); font-weight: 400; }
.f-value { color: var(--muted); }
.f-note { margin: 8px 4px 0; font-size: 15px; color: var(--muted); }
.sc-warn { margin: 0 4px 10px; font-size: 15px; line-height: 1.45; color: #A84B00; }
@media (prefers-color-scheme:dark) { .sc-warn { color: #FFB454; } }
.sx-glyph.crazy { color: var(--category-crazy); }
.sc-ask { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; margin-bottom: 10px; }
.sc-ask strong { font-size: 17px; font-weight: 600; }
.sc-sub { font-size: 15px; color: var(--muted); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sc-chip { display: flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: #F2F2F7; color: #6E6E73; font-size: 13px; }
.sc-chip.yes { color: #5A44E0; font-weight: 600; }
.sc-chip.no { color: #C8102E; font-weight: 600; }
.sc-panel { padding: 0 16px; }
.sc-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; }
.sc-row + .sc-row { border-top: 1px solid var(--separator, #E5E5EA); }
.sc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.sc-tx small { font-size: 13px; color: var(--muted); }
.sc-rows { flex: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.sc-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sc-hearts { display: flex; gap: 4px; }
.sc-heart { display: block; }
.sc-heart .on { fill: #f2788c; }
.sc-heart .hi { fill: #ffd9df; }
.sc-heart .off { fill: #dcd9e4; }
.sc-empty { margin: 0; padding: 16px 0; color: var(--muted); }
@media (prefers-color-scheme:dark) {
  .sc-chip { background: #2C2C2E; color: #AEAEB2; }
  .sc-chip.yes { color: #BCB1FF; }
  .sc-chip.no { color: #FF8095; }
  .sc-heart .off { fill: #3a3742; }
}
.ap-btn.primary-ap.crazy { background: #6A52F5; color: #FFFFFF; }
.ap-r.wait { color: var(--muted); }
.ap-r.ask { color: #5A44E0; font-weight: 600; }
.ap-r.me { font-weight: 600; }
.ap-r.no.me { color: var(--orange-text); }
@media (prefers-color-scheme: dark) { .ap-r.ask { color: #BCB1FF; } }

/* 第三批：集合排练时间，只用于集合，不改原上课排练时间框。 */
.gt-rehearsal { padding-bottom:18px; }
.gt-rehearsal .gt-modes { margin-left:auto; width:170px; gap:0; padding:2px; border-radius:999px; background:var(--segment-bg); }
.gt-rehearsal .gt-mode { min-height:44px; border-radius:999px; background:var(--transparent); color:var(--text); font-size:15px; font-weight:400; }
.gt-rehearsal .gt-mode.on { background:var(--segment-selected); color:var(--text); font-weight:600; box-shadow:var(--segment-shadow); }
.gt-rehearsal .gt-mode:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.gt-range-head { display:flex; justify-content:space-between; padding:12px 18px 4px; }
.gt-range-head strong { font-variant-numeric:tabular-nums; }
.gt-range { position:relative; height:64px; margin:0 28px; touch-action:none; }
.gt-range-line { position:absolute; top:12px; height:40px; width:100%; border-radius:999px; background:var(--page-bg); }
.gt-range-line::after { content:''; position:absolute; inset:0 calc(100% - var(--range-end)) 0 var(--range-start); border-radius:999px; background:var(--blue-fill); }
.gt-range-thumb { position:absolute; top:10px; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:transparent; transform:translateX(-50%); touch-action:none; }
.gt-range-thumb::after { content:''; display:block; width:28px; height:28px; margin:auto; border-radius:50%; background:var(--white); box-shadow:0 1px 4px #0005,0 0 0 .5px #0001; }
.gt-range-thumb.start { left:var(--range-start); } .gt-range-thumb.end { left:var(--range-end); }
.gt-range-thumb:focus-visible { outline:2px solid var(--blue,#007aff); outline-offset:2px; }
.gt-range-labels { position:relative; height:22px; margin:0 28px; color:var(--muted,#8e8e93); font-size:11px; font-variant-numeric:tabular-nums; }
.gt-range-labels span { position:absolute; transform:translateX(-50%); }

body.record-editing #side { display:none !important; }
body.record-editing .topbar button.back, .sx-page .topbar button.back { background:var(--transparent); color:var(--blue); font:inherit; font-size:17px; }
body.record-editing #app { width:100%; max-width:560px; margin:0 auto; }
body.record-editing .page { max-width:560px; margin:0 auto; }
body.record-editing .footer { max-width:560px; width:100%; }
.record-edit-diff { padding:16px 20px 24px; }
.record-edit-diff .panel { padding:4px 16px; }
.record-edit-diff h2 { text-align:center; }
.record-edit-row { display:flex; gap:14px; padding:12px 0; font-size:17px; }
.record-edit-row + .record-edit-row { border-top:1px solid var(--border); }
.record-edit-row span:first-child { flex:none; color:var(--muted); }
.record-edit-row span:last-child { margin-left:auto; text-align:right; overflow-wrap:anywhere; }
.record-edit-diff .ap-btn.primary-ap { flex:1; }
.leave-confirm { width: min(300px, calc(100% - 48px)); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--text); overflow: hidden; margin: auto; }
.leave-confirm::backdrop { background: var(--backdrop); }
.leave-confirm-body { padding: 22px 18px 18px; text-align: center; }
.leave-confirm-body h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; }
.leave-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.leave-confirm-actions button { min-height: 48px; border: 0; background: transparent; color: var(--blue); font-size: 17px; cursor: pointer; }
.leave-confirm-actions button + button { border-left: 1px solid var(--border); }
.leave-confirm-actions .danger { color: var(--red-text); font-weight: 600; }
.edit-roll-person { min-width:0; display:flex; flex-direction:column; align-items:stretch; }
.edit-roll-person .person small { display:block; font-size:13px; font-weight:400; }
.edit-roll-person .edit-late { color:var(--orange-text,#9a4f00); background:var(--orange-soft-bg); }

button.sx-row { width:100%; text-align:left; font:inherit; background:transparent; border:0; color:inherit; cursor:pointer; }

.sx-glyph.off { color: #AEAEB2; }

.record-notice-head { display:flex; flex-direction:column; gap:4px; padding:6px 4px 2px; }
.record-notice-head h1 { font-size:22px; line-height:1.25; }
.record-notice-head p { font-size:15px; color:var(--secondary-text); }
.record-notice-lines { padding:4px 16px; }
.record-notice-row { display:flex; gap:14px; padding:12px 0; font-size:17px; }
.record-notice-row + .record-notice-row { border-top:1px solid var(--border); }
.record-notice-row span:first-child { flex:none; color:var(--muted); }
.record-notice-row span:last-child { margin-left:auto; text-align:right; overflow-wrap:anywhere; }
.record-notice-stamp { font-size:13px; color:var(--muted); padding:0 4px; }

/* 第六批：每场下方“保存图片 / 进入场次 / 场次已登记”（稿 F2ZcW、F3QsW）。 */
.pb-session-actions { display:flex; gap:10px; margin-top:12px; }
.pb-session-actions > * { min-width:0; min-height:50px; border-radius:999px; font-size:17px; font-weight:600; text-align:center; }
.pb-session-actions > .primary { flex:1; width:auto; padding:0 8px; }
.paiban-root .pb-session-save { flex:0 0 124px; background:var(--control-bg); color:var(--text); }
.paiban-root .pb-session-actions > .pb-session-save:only-child { flex:1; }
.pb-session-done { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; background:var(--control-bg); color:var(--muted); font-size:17px; white-space:nowrap; }
.paiban-root .primary.pb-add-secondary { background:var(--control-bg); color:var(--blue); }
button.pb-plan-line { width:100%; border-width:0; background:transparent; font:inherit; text-align:left; cursor:pointer; }
button.pb-plan-line + button.pb-plan-line, .pb-plan-line + button.pb-plan-line { border-top:1px solid var(--orange-soft-border); }
.pb-plan-gap { flex:0 0 22px; }
.pb-plan-ch.down { transform:rotate(90deg); }

/* 11/15 实习生请假审批：请假进度（/jc/ 审批页最下面一行、/sx/ 首页卡和清单；圆点颜色和 App 的 LeaveProgressPalette 一致） */
.lp-page { --lp-yes: #2E9E4F; --lp-wait: #F08C00; --lp-idle: #E5E5EA; --lp-no: #B35F00; }
.lp-row { align-items: flex-start; }
.lp-l3 { display: flex; align-items: center; gap: 10px; margin-top: 6px; min-height: 26px; flex-wrap: wrap; }
.lp-dots { display: inline-flex; align-items: center; gap: 0; }
.lp-dg { display: inline-flex; gap: 5px; }
.lp-dg + .lp-dg { margin-left: 7px; padding-left: 7px; border-left: 2px solid var(--lp-idle); }
.lp-d { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-idle); flex: none; }
.lp-d.f { background: var(--lp-yes); }
.lp-d.w { background: var(--lp-wait); }
.lp-d.x { background: var(--lp-no); }
.lp-d.big { width: 12px; height: 12px; }
.lp-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  background: var(--blue-fill); color: var(--white); font-size: 13px; font-weight: 600; }
.lp-note { font-size: 15px; color: var(--muted); }
.lp-note.good { color: var(--green-text); }
.lp-note.bad { color: var(--orange-text); }
.lp-note.plain { color: var(--secondary-text); }
.lp-li.dim > span:nth-of-type(1) { color: var(--secondary-text); }
.lp-li.dim .ap-r { color: var(--separator); }
.lp-li.agreed .ap-r { color: var(--green-text); font-weight: 600; }
.lp-entry { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; min-height: 64px;
  color: var(--text); text-decoration: none; }
.lp-entry-ic { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; }
.lp-entry-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-entry-tx strong { font-size: 17px; font-weight: 400; }
.lp-entry-tx small { font-size: 13px; color: var(--muted); }
.lp-entry:active { opacity: .7; }
.lp-more > summary { list-style: none; cursor: pointer; }
.lp-more > summary::-webkit-details-marker { display: none; }
.lp-more > summary .ap-r::after { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 2px 3px 10px;
  border-right: 2px solid var(--separator); border-bottom: 2px solid var(--separator); transform: rotate(45deg); transition: transform .2s; }
.lp-more[open] > summary .ap-r::after { transform: rotate(-135deg); margin-bottom: -1px; }
.lp-more[open] > summary { border-bottom: 1px solid var(--border); }
.ap-card.lp-quiet { background: var(--surface); }
.ap-card.lp-quiet .ap-card-tx small { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .lp-page { --lp-yes: #32D74B; --lp-wait: #FF9F0A; --lp-idle: #38383A; --lp-no: #FFA640; }
}

/* 第四段丙-1（X-01）：列表行按下变底色。只补原来按下没有反应的行和卡片（原来已有变底色或变淡的照旧）。
   贴边的行（左右没有内边距）在行后面垫一块左右各宽出 10 点的圆角底色，不改排版。 */
:where(button.gt-li, button.gt-row, button.ap-row:not(.compact), a.vh-row) { position: relative; isolation: isolate; }
:where(button.gt-li, button.gt-row, button.ap-row:not(.compact), a.vh-row)::before {
  content: ""; position: absolute; inset: 2px -10px; z-index: -1; border-radius: 12px;
  background: var(--control-bg); opacity: 0; transition: opacity 120ms ease; pointer-events: none;
}
:where(button.gt-li, button.gt-row, button.ap-row:not(.compact), a.vh-row):active:not(:disabled)::before { opacity: 1; }
/* 丙验收意见 1：压暗块不顶到卡片边。外扩的四类所在卡片左右内边距 14（审批、集合列表）或 16（集合名单、团长管理），外扩 10 后离卡片边 4～6 点，
   卡片圆角 22、灰底离上下 2 点时留 4 点正好不盖出圆角。下面三类行贴着卡片边（卡片没有内边距），原来按下整行变底色顶到卡片边，
   改成在行里面垫一块左右各缩进 6 点、上下 2 点的圆角灰底。 */
:where(button.role-row, button.record-open, button.gt-line) { position: relative; isolation: isolate; }
:where(button.role-row, button.record-open, button.gt-line)::before {
  content: ""; position: absolute; inset: 2px 6px; z-index: -1; border-radius: 12px;
  background: var(--control-bg); opacity: 0; transition: opacity 120ms ease; pointer-events: none;
}
:where(button.role-row, button.record-open, button.gt-line):active:not(:disabled)::before { opacity: 1; }
:where(a.vh-card, a.sx-card) { transition: background-color 120ms ease; }
:where(a.vh-card, a.sx-card):active { background-color: var(--control-bg); }

/* 丙验收意见 2：当行、当卡片、当按钮用的链接，长按不出系统气泡——安卓长按会拖起带网址的小气泡，iPhone Safari 会弹预览菜单。
   正文里的文字链接（隐私政策、看全文、邮箱）和下载页、安装引导页的下载按钮不加，那里长按复制链接是有用的。 */
:where(a.primary, a.pill-btn, a.top-action, a.back, a.resume, a.tc-no, a.tc-back, a.vh-card, a.vh-row, a.sx-card, a.ap-card,
  a.account-avatar, a.account-row, a.tz-tab, a.home-open, a.lp-entry, a.pb-plan-line, a.pc-call, a.g-ask) { -webkit-touch-callout: none; -webkit-user-drag: none; }
:where(a.primary, a.vh-card, a.vh-row, a.sx-card, a.ap-card, a.account-avatar, a.account-row, a.home-open, a.lp-entry, a.pb-plan-line) img { -webkit-user-drag: none; }
/* 长按行时安卓会选中行里的字（按下的灰底也跟着没了）：按下会变底色的行和卡片不让选字。 */
:where(button.gt-li, button.gt-row, button.ap-row, a.vh-row, button.role-row, button.record-open, button.gt-line, a.vh-card, a.sx-card) { -webkit-user-select: none; user-select: none; }

/* 第 3 批乙-1（X-05）：几十人的选人格子、名单、账号页上的“按名字找”（超过 15 人才出）。
   照 iOS 搜索栏：灰底圆角、左边放大镜、右边一键清除；颜色全用现有变量，深色自动跟着换。 */
.people-search { position: relative; display: flex; align-items: center; min-height: 44px; margin-bottom: 10px; padding: 0 4px 0 12px;
  border-radius: 12px; background: var(--control-bg); color: var(--muted); }
.people-search-icon { flex: none; }
.people-search-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; }
.people-search-input::placeholder { color: var(--muted); }
.people-search-input::-webkit-search-cancel-button, .people-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.people-search-clear { flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0;
  background: transparent; color: var(--arrow); }
.people-search-clear[hidden] { display: none; }
.people-search-empty { padding: 16px 0; color: var(--muted); font-size: 15px; text-align: center; }
.people-search-empty[hidden], .people [hidden], [data-search-name][hidden], [data-search-group][hidden] { display: none; }
.intern-pick-actions { justify-content: flex-end; min-height: 44px; margin: 10px 0 2px; }
.role-pick-actions { justify-content: flex-end; min-height: 44px; margin: -4px 0 10px; }
/* 有“按名字找”的选人抽屉（超过 15 人）定高：搜索时不缩、选第一个人多出“清空”时也不往上跳，手指下的搜索框不挪位置。 */
.role-sheet:has(.people-search), .edit-guide-sheet:has(.people-search) { height: min(85dvh, 720px); }
/* 集合选人抽屉按名字找：抽屉本身是 12 点间距的竖排，包了一层的分组照样排。 */
.gt-sheet .people-search { margin-bottom: 0; }
.gt-search-body, .gt-search-group { display: flex; flex-direction: column; gap: 12px; }
.gt-search-body[hidden], .gt-search-group[hidden] { display: none; }
/* 实习生账号页搜索时每组包了一层，组标题照旧离上面 24 点（不当成第一个标题收紧）。 */
.tr-search-group > .account-group-title:first-child { margin-top: 24px; }
/* 搜索时藏起来的行还算兄弟：分隔线改成“前面有露着的行才画”，免得第一行顶上多一条线；
   藏起来的第一行带火苗头像时，卡片顶上为火苗留的 40 点也不留。 */
[data-search-scope] .r-row[data-search-name]::before { display: none; }
[data-search-scope] .r-row[data-search-name]:not([hidden]) ~ .r-row[data-search-name]:not([hidden])::before { display: block; }
[data-search-scope] :is(.account-row, .gt-person)[data-search-name] { border-top: 0; }
[data-search-scope] .account-row[data-search-name]:not([hidden]) ~ .account-row[data-search-name]:not([hidden]),
[data-search-scope] .gt-person[data-search-name]:not([hidden]) ~ .gt-person[data-search-name]:not([hidden]) { border-top: 1px solid var(--border); }
.panel:has(> [data-search-name][hidden]:first-child .av.fire) { padding-top: 0; }
/* 人员名单那一栏是 18 点间距的竖排：搜索框和下面的名单只隔 10 点，像一个整体。 */
.roster-slide > .people-search { margin-bottom: -8px; }
/* 有搜索框时（超过 15 人，本来就撑满）抽屉固定高度，打字筛人时不跟着一缩一放。 */
.gt-sheet[open]:has(.gt-search-body) { height: 94dvh; }
/* 账号管理：搜索框在“已开通 x / y”下面、各组上面。 */
.account-page .panel + .people-search { margin-top: 12px; margin-bottom: 12px; }
/* 第 3 批乙-2（X-06）：批完一条，底栏上一行写结果，下面一个整宽的“下一条待审批”或“回到列表”。 */
.ap-foot-bar.ap-done-bar { flex-direction: column; gap: 8px; }
.ap-done-bar .ap-btn { flex: none; width: 100%; }
.ap-done-note { margin: 0; color: var(--muted); font-size: 15px; text-align: center; }

/* 第 3 批乙-3（X-07）：点击热区不到 44 点的，看得见的大小不变，用透明的 ::after 把能点的范围撑到 44；
   相邻两个热区不重叠（横向撑的不超过间距的一半，换行的把行距拉到 10 点）。 */
.pb-plan-chip, .widget-home .chip { position: relative; }
.pb-plan-chips { row-gap: 10px; }
.pb-plan-chip::after { content: ""; position: absolute; inset: -5px -4px; }
.widget-home .chip::after { content: ""; position: absolute; inset: -2px -3px; }
/* 人员场次的“回到本月”（同排班页的“回到今天”） */
.stats-content .today-link { margin-top: -10px; }
/* 第 3 批乙-3（X-07）：考勤、上课、场次等表单的日期胶囊“11月8日 周日”；系统日期框透明盖在上面。 */
.date-pill { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--neutral-bg); color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-pill input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.date-pill:has(input:disabled) { opacity: .5; }
html[data-input="keyboard"] .date-pill:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
/* 第 3 批乙-4（W-04）：首页圆形卡片下面的短标签（辅助文字：13 点、次要色）；不是圆形时不出。
   编辑说明挪到了卡片上面，上下各留一点空。 */
.widget-home .w-label { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); font-size: 13px; line-height: 16px;
  color: var(--muted); white-space: nowrap; pointer-events: none; }
.widget-home .w:not(.s1) .w-label { display: none; }
.widget-home .edit-hint { padding: 0; margin: -4px 0 0; }
/* 第 3 批乙-4（W-04）：竹村排班表四个字的名字缩一档（15→12；375 宽时格子 48 点，13 号放不下四个字），五个字以上仍放不下就省略号，不再冲进旁边的格子。 */
.paiban-root .cell .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.paiban-root .cell .nm.long { font-size: 12px; letter-spacing: -.2px; }
@media (max-width: 359px) { .paiban-root .cell .nm.long { font-size: 11px; } }
/* 已确认（锁着）的排班格：更平的灰底，按下、悬停都没有反馈；不加图标和说明，点上去照旧提示。 */
.paiban-root button[data-pb="locked"],
.paiban-root button[data-pb="locked"]:active { background: var(--neutral-bg); filter: none; }
@media (hover: hover) {
  .paiban-root button[data-pb="locked"]:hover { background: var(--neutral-bg); filter: none; }
}
.paiban-root button[data-pb="locked"] { cursor: default; -webkit-tap-highlight-color: transparent; }
/* 第 3 批乙-4（W-04）：常用地点那一排右边一段渐隐，告诉人还能往右滑；滑到头（.at-end）就不渐隐。 */
.gt-places { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.gt-places.at-end { -webkit-mask-image: none; mask-image: none; }
/* 只有一个钮的提示弹窗（安卓外壳存图失败等）。 */
.leave-confirm-actions.one { grid-template-columns: 1fr; }
