/*
 * Genba Nippo v1.7.0 - Claude Design punch screen.
 * Loaded after the legacy themes.  Every selector is scoped to the live punch
 * panel so the canonical attendance, offline and permission flows stay intact.
 */

body[data-pwa-fixed-page="punch"] {
  background: var(--gn-bg);
  color-scheme: light;
}

body[data-pwa-fixed-page="punch"] .app-header {
  display: none !important;
}

.app-view #tab-punch.gn170-punch {
  width: min(100vw, 640px) !important;
  max-width: 640px !important;
  margin: -3px 0 0 calc((100% - min(100vw, 640px)) / 2) !important;
  padding: 0 0 calc(106px + var(--gn-safe-bottom)) !important;
  overflow: visible !important;
  background: var(--gn-bg) !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: currentColor;
  font-family: var(--gn-font-sans) !important;
}

.app-view #tab-punch.gn170-punch *,
.app-view #tab-punch.gn170-punch *::before,
.app-view #tab-punch.gn170-punch *::after {
  box-sizing: border-box;
}

.app-view #tab-punch .gn170-punch-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #0a2540;
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  isolation: isolate;
}

.app-view #tab-punch .gn170-punch-photo,
.app-view #tab-punch .gn170-punch-shade {
  position: absolute;
  inset: 0;
}

.app-view #tab-punch .gn170-punch-photo {
  z-index: -2;
  background-color: #12304d;
  background-image: var(--pwa-photo-url, url('/assets/pwa/site-industrial.jpg'));
  background-position: center;
  background-size: cover;
  filter: var(--gn-photo-filter);
  transform: scale(1.015);
}

.app-view #tab-punch .gn170-punch-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(10 37 64 / 62%) 0%, rgb(10 37 64 / 24%) 34%, rgb(10 37 64 / 78%) 74%, #0a2540 100%),
    var(--gn-photo-overlay);
}

.app-view #tab-punch .gn170-punch-hero-inner {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 26px 46px;
}

.app-view #tab-punch .gn170-punch-brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-view #tab-punch .gn170-punch-brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.app-view #tab-punch .gn170-punch-brand-lockup img {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.app-view #tab-punch .gn170-punch-brand-lockup > span {
  min-width: 0;
  display: grid;
}

.app-view #tab-punch .gn170-punch-brand-lockup b {
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  font-family: var(--gn-font-mincho) !important;
  font-size: 15px;
  font-weight: 400 !important;
  letter-spacing: .06em;
  line-height: 1.25;
  white-space: nowrap;
}

.app-view #tab-punch .gn170-punch-brand-lockup small {
  margin-top: 4px;
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  font-size: 9px;
  font-weight: 400 !important;
  letter-spacing: var(--gn-label-tracking);
  line-height: 1.2;
  opacity: .78;
  white-space: nowrap;
}

.app-view #tab-punch #gn170-punch-notifications {
  position: relative;
  width: var(--gn-control-height);
  min-width: var(--gn-control-height);
  height: var(--gn-control-height);
  min-height: var(--gn-control-height);
  padding: 0;
  border: 1px solid var(--gn-chip-border);
  border-radius: 50%;
  background: linear-gradient(var(--gn-chip-tint), var(--gn-chip-tint)), var(--gn-chip-base) !important;
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  touch-action: manipulation;
}

.app-view #tab-punch #gn170-punch-notifications > span {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 1.4px solid currentColor;
  border-radius: 50% 50% 4px 4px;
}

.app-view #tab-punch #gn170-punch-notifications > span::after {
  position: absolute;
  bottom: -4px;
  left: 3px;
  width: 7px;
  height: 1.4px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.app-view #tab-punch #gn170-punch-notifications > i {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gn-warning);
}

.app-view #tab-punch .gn170-punch-hero-spacer {
  flex: 1 1 auto;
  min-height: 82px;
}

.app-view #tab-punch #gn170-punch-title {
  margin: 0;
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  font-family: var(--gn-font-mincho) !important;
  font-size: 36px;
  font-weight: 400 !important;
  letter-spacing: -.01em;
  line-height: 1.26;
  white-space: nowrap;
}

.app-view #tab-punch .gn170-punch-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  overflow: hidden;
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  font-size: 9px;
  font-weight: 400 !important;
  font-variant-numeric: var(--gn-number-variant);
  letter-spacing: .18em;
  line-height: 1.4;
  white-space: nowrap;
}

.app-view #tab-punch .gn170-punch-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-view #tab-punch .gn170-punch-network {
  position: absolute;
  top: calc(67px + env(safe-area-inset-top, 0px));
  right: 26px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--gn-chip-border);
  border-radius: 14px;
  background: linear-gradient(var(--gn-chip-tint), var(--gn-chip-tint)), var(--gn-chip-base);
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  font-size: 9px;
  font-weight: 400 !important;
  letter-spacing: .14em;
}

.app-view #tab-punch .gn170-punch-network::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #6dd4a4;
  content: "";
}

.app-view #tab-punch .gn170-punch-network[data-online="false"]::before {
  background: var(--gn-warning);
}

.app-view #tab-punch .gn170-punch-sheet {
  position: relative;
  z-index: 2;
  min-height: 640px;
  margin-top: -30px;
  padding: 38px 26px 38px;
  border: 0;
  border-radius: 34px 34px 0 0;
  background: var(--gn-surface);
  color: var(--gn-text);
  box-shadow: none;
}

.app-view #tab-punch .v153-source-heading,
.app-view #tab-punch .site-picker.v153-native-site-picker {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.app-view #tab-punch .site-picker > span,
.app-view #tab-punch #selected-site-address {
  color: var(--gn-navy) !important;
  -webkit-text-fill-color: var(--gn-navy) !important;
  opacity: 1 !important;
}

.app-view #tab-punch .v153-site-head {
  display: none !important;
}

.app-view #tab-punch .v153-site-head.gn170-has-edit {
  min-height: var(--gn-control-height) !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  margin: -4px 0 10px;
  padding: 0 !important;
  border: 0 !important;
}

.app-view #tab-punch .v153-site-head h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

.app-view #tab-punch .v153-site-head #v153-site-edit {
  min-width: 64px !important;
  min-height: var(--gn-control-height) !important;
  padding: 0 16px !important;
  border: 1px solid var(--gn-hairline) !important;
  border-radius: 22px !important;
  background: var(--gn-surface-soft) !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

.app-view #tab-punch .v153-site-search {
  width: 100%;
  min-height: 52px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 1px solid transparent !important;
  border-radius: 26px !important;
  background: var(--gn-surface-soft) !important;
  color: var(--gn-text-quiet) !important;
  -webkit-text-fill-color: var(--gn-text-quiet) !important;
  box-shadow: none !important;
}

.app-view #tab-punch .v153-site-search > span {
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-size: 17px;
  font-weight: 400 !important;
}

.app-view #tab-punch .v153-site-search input {
  width: 100%;
  min-width: 0;
  min-height: 50px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  appearance: none;
}

.app-view #tab-punch .v153-site-search input::placeholder {
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  opacity: 1;
}

.app-view #tab-punch .v153-site-search:focus-within {
  border-color: var(--gn-accent) !important;
  outline: 2px solid color-mix(in srgb, var(--gn-accent) 22%, transparent) !important;
  outline-offset: 2px;
}

.app-view #tab-punch .gn170-punch-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.app-view #tab-punch .gn170-punch-filters button {
  min-width: 0;
  min-height: var(--gn-control-height) !important;
  padding: 0 10px !important;
  border: 1px solid transparent !important;
  border-radius: 22px !important;
  background: var(--gn-surface-soft) !important;
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: .04em;
  box-shadow: none !important;
  white-space: nowrap;
  touch-action: manipulation;
}

.app-view #tab-punch .gn170-punch-filters button[aria-selected="true"] {
  background: var(--gn-primary-bg) !important;
  color: var(--gn-primary-fg) !important;
  -webkit-text-fill-color: var(--gn-primary-fg) !important;
}

.app-view #tab-punch #gn170-punch-filter-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 2px 0 0;
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-size: 11px;
  font-weight: 400 !important;
  line-height: 1.5;
}

.app-view #tab-punch #gn170-punch-filter-status:empty {
  display: none;
}

.app-view #tab-punch .gn170-punch-sites-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 20px;
}

.app-view #tab-punch .gn170-punch-sites-head span,
.app-view #tab-punch .gn170-punch-sites-head small {
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  font-variant-numeric: var(--gn-number-variant);
  letter-spacing: var(--gn-label-tracking);
  line-height: 1.4;
}

.app-view #tab-punch .pwa-site-choice-list.pwa-site-choice-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 36px !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
  counter-reset: none !important;
  touch-action: pan-y pinch-zoom;
}

.app-view #tab-punch .pwa-site-choice-row {
  position: relative;
  min-width: 0;
  min-height: 258px !important;
  margin: 0 !important;
  counter-increment: none !important;
}

.app-view #tab-punch .pwa-site-choice-row::before {
  content: none !important;
}

.app-view #tab-punch .pwa-site-choice-row[hidden] {
  display: none !important;
}

.app-view #tab-punch .pwa-site-choice {
  position: relative;
  width: 100% !important;
  min-height: 258px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 200px auto !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid transparent !important;
  border-radius: 29px !important;
  background: transparent !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  box-shadow: none !important;
  text-align: left;
  transform: none !important;
  touch-action: manipulation;
}

.app-view #tab-punch .pwa-site-choice[aria-pressed="true"],
.app-view #tab-punch .pwa-site-choice[aria-selected="true"] {
  border-color: var(--gn-accent) !important;
  background: transparent !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gn-accent) 12%, transparent) !important;
}

.app-view #tab-punch .pwa-site-choice:focus-visible {
  outline: 3px solid var(--gn-accent) !important;
  outline-offset: 4px;
}

.app-view #tab-punch .pwa-site-choice-image {
  position: relative;
  width: 100% !important;
  height: 200px !important;
  min-height: 200px !important;
  display: block !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 28px !important;
  background-color: #12304d !important;
  background-image: var(--pwa-photo-url, url('/assets/pwa/site-industrial.jpg')) !important;
  background-position: center !important;
  background-size: cover !important;
  box-shadow: 0 24px 54px rgb(18 48 77 / 16%) !important;
  filter: var(--gn-photo-filter);
}

.app-view #tab-punch .pwa-site-choice-image::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 46%, rgb(10 37 64 / 62%) 100%), var(--gn-photo-overlay);
  content: "";
  pointer-events: none;
}

.app-view #tab-punch .pwa-site-choice > span:nth-child(2) {
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  gap: 8px !important;
  padding: 15px 2px 0 !important;
}

.app-view #tab-punch .pwa-site-choice b {
  min-width: 0;
  min-height: 0 !important;
  display: block !important;
  overflow: hidden !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  font-family: var(--gn-font-mincho) !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  letter-spacing: .02em !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

.app-view #tab-punch .pwa-site-choice small {
  min-width: 0;
  min-height: 0 !important;
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: .12em !important;
  line-height: 1.5 !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

.app-view #tab-punch .pwa-site-choice > i {
  display: none !important;
}

.app-view #tab-punch .pwa-site-selected-badge {
  position: absolute !important;
  z-index: 5;
  top: 16px !important;
  right: 16px !important;
  min-width: 30px !important;
  width: 30px !important;
  min-height: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--gn-chip-border) !important;
  border-radius: 50% !important;
  background: linear-gradient(var(--gn-chip-tint), var(--gn-chip-tint)), var(--gn-chip-base) !important;
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  font-size: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.app-view #tab-punch .pwa-site-selected-badge::before {
  margin: 0 !important;
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  content: "\2713" !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.app-view #tab-punch .pwa-site-photo-edit {
  position: absolute !important;
  z-index: 6;
  top: 144px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid var(--gn-chip-border) !important;
  border-radius: 50% !important;
  background: linear-gradient(var(--gn-chip-tint), var(--gn-chip-tint)), var(--gn-chip-base) !important;
  color: var(--gn-on-photo) !important;
  -webkit-text-fill-color: var(--gn-on-photo) !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

.app-view #tab-punch .pwa-site-photo-message {
  position: static !important;
  display: block;
  min-height: 0 !important;
  margin: 7px 2px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.5;
}

.app-view #tab-punch .pwa-site-photo-message:empty {
  display: none;
}

.app-view #tab-punch .pwa-site-selection-note {
  min-height: var(--gn-control-height) !important;
  margin: -18px 0 0 !important;
  padding: 12px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--gn-hairline) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.6;
}

.app-view #tab-punch .pwa-site-reveal-controls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  margin-top: -12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.app-view #tab-punch .pwa-site-reveal-controls button {
  min-width: 0;
  min-height: var(--gn-control-height) !important;
  padding: 0 12px !important;
  border: 1px solid var(--gn-hairline) !important;
  border-radius: 22px !important;
  background: var(--gn-surface-soft) !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.app-view #tab-punch #pwa-site-show-next {
  background: var(--gn-primary-bg) !important;
  color: var(--gn-primary-fg) !important;
  -webkit-text-fill-color: var(--gn-primary-fg) !important;
}

.app-view #tab-punch #pwa-site-reveal-status {
  grid-column: 1 / -1;
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  font-variant-numeric: var(--gn-number-variant);
  letter-spacing: .12em;
  text-align: center;
}

.app-view #tab-punch .v153-site-add {
  width: 100%;
  min-height: var(--gn-control-height) !important;
  margin: 28px 0 0 !important;
  padding: 0 18px !important;
  border: 1px solid var(--gn-hairline) !important;
  border-radius: 22px !important;
  background: var(--gn-surface-soft) !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

.app-view #tab-punch .location-card,
.app-view #tab-punch .help-card,
.app-view #tab-punch .punch-correction-entry {
  margin: 42px 0 0 !important;
  padding: 20px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--gn-hairline) !important;
  border-bottom: 1px solid var(--gn-hairline) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  box-shadow: none !important;
}

.app-view #tab-punch .location-card b,
.app-view #tab-punch .help-card b,
.app-view #tab-punch .punch-correction-entry b {
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  font-family: var(--gn-font-mincho) !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  letter-spacing: .03em;
  line-height: 1.4;
}

.app-view #tab-punch .location-card p,
.app-view #tab-punch .help-card p,
.app-view #tab-punch .punch-correction-entry p {
  margin: 8px 0 0 !important;
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.7;
}

.app-view #tab-punch .location-icon {
  color: var(--gn-navy) !important;
  -webkit-text-fill-color: var(--gn-navy) !important;
}

.app-view #tab-punch .progress-track {
  overflow: hidden;
  border-radius: 1px;
  background: var(--gn-hairline) !important;
}

.app-view #tab-punch .progress-track i {
  background: var(--gn-accent) !important;
}

.app-view #tab-punch .punch-correction-entry {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 16px;
}

.app-view #tab-punch .punch-correction-entry button {
  min-width: 124px !important;
  min-height: var(--gn-control-height) !important;
  padding: 0 14px !important;
  border: 1px solid var(--gn-hairline) !important;
  border-radius: 22px !important;
  background: var(--gn-surface-soft) !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.app-view #tab-punch #main-msg {
  min-height: 0;
  margin: 14px 0 0 !important;
  color: var(--gn-warning-text) !important;
  -webkit-text-fill-color: var(--gn-warning-text) !important;
  font-size: 12px;
  line-height: 1.6;
}

.app-view #tab-punch #main-msg:empty {
  display: none;
}

.app-view #tab-punch .punch-actions {
  position: sticky !important;
  z-index: 20;
  bottom: calc(86px + var(--gn-safe-bottom)) !important;
  width: calc(100% + 20px);
  display: block !important;
  margin: 34px -10px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.app-view #tab-punch .punch-actions .btn-in,
.app-view #tab-punch .punch-actions .btn-out {
  width: 100% !important;
  min-height: var(--gn-main-action-height) !important;
  height: var(--gn-main-action-height) !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: var(--gn-main-action-radius) !important;
  background: var(--gn-primary-bg) !important;
  color: var(--gn-primary-fg) !important;
  -webkit-text-fill-color: var(--gn-primary-fg) !important;
  box-shadow: 0 20px 46px rgb(10 37 64 / 40%), 0 4px 14px rgb(10 37 64 / 22%) !important;
  touch-action: manipulation;
}

.app-view #tab-punch .punch-actions .btn-in.is-v170-current,
.app-view #tab-punch .punch-actions .btn-out.is-v170-current {
  display: flex !important;
}

.app-view #tab-punch .punch-actions .btn-in span,
.app-view #tab-punch .punch-actions .btn-out span {
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: var(--gn-font-mincho) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: .08em;
  line-height: 1.2;
  white-space: nowrap;
}

.app-view #tab-punch .punch-actions .btn-in small,
.app-view #tab-punch .punch-actions .btn-out small {
  display: none !important;
}

.app-view #tab-punch .punch-actions .btn-in:disabled,
.app-view #tab-punch .punch-actions .btn-out:disabled {
  cursor: wait;
  opacity: .72;
}

body[data-pwa-fixed-page="punch"] .app-view.hp153-installed .bottom-nav {
  border-top-color: var(--gn-hairline) !important;
  background: var(--gn-surface) !important;
  background-color: var(--gn-surface) !important;
  background-image: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

body[data-pwa-fixed-page="punch"] .app-view.hp153-installed .bottom-nav::before {
  background: var(--gn-surface) !important;
}

body[data-pwa-fixed-page="punch"] .app-view.hp153-installed .bottom-nav button {
  color: var(--gn-text-muted) !important;
  -webkit-text-fill-color: var(--gn-text-muted) !important;
  font-family: var(--gn-font-sans) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

body[data-pwa-fixed-page="punch"] .app-view.hp153-installed .bottom-nav button[aria-selected="true"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--gn-text) !important;
  -webkit-text-fill-color: var(--gn-text) !important;
}

body[data-pwa-fixed-page="punch"] .app-view.hp153-installed .bottom-nav button[aria-selected="true"]::after {
  height: 2px;
  background: var(--gn-accent) !important;
}

/*
 * Batch 2 opens the working-site transfer state on this same canonical panel.
 * The v170 punch adapter deliberately wraps the legacy controls in its paper
 * sheet, so the older direct-child hiding selectors no longer reach them.
 * Keep the real select/buttons/listeners in the DOM, but expose only the
 * transfer hero, search and photo-backed choice list in that state.
 */
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch > #gn170-punch-hero,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > .v153-site-head,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > .section-head,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > .site-picker,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > #gn170-punch-filters,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > #gn170-punch-sites-head,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > .location-card,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > .punch-actions,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > #main-msg,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > #punch-correction-entry,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet > .help-card {
  display: none !important;
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-punch-sheet {
  min-height: 0;
  padding-bottom: calc(38px + env(safe-area-inset-bottom));
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch > .gn170-b2-hero--site-move::before {
  background:
    linear-gradient(180deg, rgb(10 37 64 / 78%) 0%, rgb(10 37 64 / 68%) 38%, rgb(10 37 64 / 88%) 76%, #0a2540 100%),
    var(--gn-photo-overlay, rgb(10 37 64 / 18%));
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch > .gn170-b2-hero--site-move .gn170-b2-kicker,
html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch > .gn170-b2-hero--site-move .gn170-b2-hero-copy > small {
  color: #f2f7fb;
  opacity: 1;
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch .pwa-site-selected-badge {
  border-color: rgb(242 247 251 / 42%) !important;
  background: #0a2540 !important;
  color: #f2f7fb !important;
  -webkit-text-fill-color: #f2f7fb !important;
}

.app-view #tab-punch #gn170-site-move-action[hidden] {
  display: none !important;
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-site-move-action {
  position: fixed;
  z-index: 72;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  left: 16px;
  width: min(calc(100vw - 32px), 358px);
  display: grid !important;
  gap: 10px;
  margin: 0 auto;
  pointer-events: none;
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-site-move-help {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--gn-chip-border);
  border-radius: 999px;
  background: var(--gn-surface);
  color: var(--gn-text);
  -webkit-text-fill-color: var(--gn-text);
  box-shadow: 0 8px 22px rgb(10 37 64 / 14%);
  font-family: var(--gn-font-sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-site-move-confirm {
  position: relative;
  width: 100%;
  min-height: var(--gn-main-action-height, 62px);
  display: grid;
  place-items: center;
  padding: 0 22px;
  border: 0;
  border-radius: var(--gn-main-action-radius, 31px);
  background: var(--gn-primary-bg);
  color: var(--gn-primary-fg);
  -webkit-text-fill-color: var(--gn-primary-fg);
  box-shadow: 0 20px 46px rgb(10 37 64 / 36%), 0 4px 14px rgb(10 37 64 / 20%);
  font-family: var(--gn-font-mincho);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.2;
  opacity: 1;
  pointer-events: auto;
  touch-action: manipulation;
  white-space: nowrap;
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-site-move-confirm > span::before {
  position: absolute;
  inset: 0;
  content: "";
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch #gn170-site-move-confirm:disabled {
  border: 1px solid var(--gn-hairline);
  background: var(--gn-surface-soft);
  color: var(--gn-text-muted);
  -webkit-text-fill-color: var(--gn-text-muted);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch .pwa-site-choice[data-gn170-transfer-target="true"] {
  border-color: var(--gn-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gn-accent) 14%, transparent) !important;
}

html.v170-batch2-enabled body[data-v170-batch2-screen="site-move"] .app-view #tab-punch .pwa-site-choice[data-gn170-transfer-target="true"]::after {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(242 247 251 / 42%);
  border-radius: 50%;
  background: #0a2540;
  color: #f2f7fb;
  -webkit-text-fill-color: #f2f7fb;
  content: "\2713";
  font-family: var(--gn-font-sans);
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 380px) {
  .app-view #tab-punch .gn170-punch-hero-inner,
  .app-view #tab-punch .gn170-punch-sheet {
    padding-right: 22px;
    padding-left: 22px;
  }

  .app-view #tab-punch .gn170-punch-meta {
    gap: 12px;
    font-size: 8px;
    letter-spacing: .13em;
  }

  .app-view #tab-punch .punch-correction-entry {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .app-view #tab-punch .punch-correction-entry button {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) and (prefers-color-scheme: light) {
  body[data-pwa-fixed-page="punch"] {
    background: #06172a;
    color-scheme: dark;
  }

  .app-view #tab-punch.gn170-punch {
    background: #06172a !important;
  }

  .app-view #tab-punch .gn170-punch-shade {
    background:
      linear-gradient(180deg, rgb(10 37 64 / 72%) 0%, rgb(10 37 64 / 40%) 34%, rgb(6 23 42 / 88%) 74%, #06172a 100%),
      var(--gn-photo-overlay);
  }

  .app-view #tab-punch .gn170-punch-sheet {
    background: var(--gn-surface);
    color: var(--gn-text);
  }

  .app-view #tab-punch .pwa-site-choice-image {
    box-shadow: 0 24px 54px rgb(0 0 0 / 42%) !important;
  }

  .app-view #tab-punch .pwa-site-choice-image::after {
    background: linear-gradient(180deg, transparent 38%, rgb(6 23 42 / 82%) 100%), var(--gn-photo-overlay);
  }

  .app-view #tab-punch .punch-actions .btn-in,
  .app-view #tab-punch .punch-actions .btn-out {
    box-shadow: 0 20px 46px rgb(0 0 0 / 42%), 0 4px 14px rgb(0 0 0 / 28%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-view #tab-punch *,
  .app-view #tab-punch *::before,
  .app-view #tab-punch *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
