:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #d7dce2;
  --ink: #17202a;
  --muted: #667085;
  --blue: #1f4e79;
  --blue-soft: #eaf2f8;
  --green: #157347;
  --red: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
button, input, textarea, select { font: inherit; }
button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
button.secondary { background: #fff; color: var(--blue); }
button.success { background: var(--green); border-color: var(--green); }
button.warning { background: #facc15; border-color: #eab308; color: #422006; }
button.danger { background: var(--red); border-color: var(--red); }
button.danger-outline { background: #fff; border-color: var(--red); color: var(--red); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.warning:disabled { opacity: 1; cursor: default; }
button.email-copy {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.button-link.secondary {
  background: #fff;
  color: var(--blue);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 10px;
  background: #fff;
}
input.invalid, textarea.invalid, select.invalid {
  border-color: var(--red);
  background: #fff5f5;
  outline: 2px solid rgba(180, 35, 24, .15);
}
.amount-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  width: 100%;
}
.amount-control input {
  border-radius: 6px 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.amount-buttons {
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.amount-buttons button {
  width: 34px;
  min-height: 0;
  border-radius: 0;
  padding: 0;
  line-height: 1;
  background: #f8fafc;
  border-color: var(--line);
  color: var(--muted);
}
.amount-buttons button:first-child {
  border-radius: 0 6px 0 0;
  border-bottom: 0;
}
.amount-buttons button:last-child {
  border-radius: 0 0 6px 0;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: middle; font-size: 13px; }
th { background: var(--blue); color: #fff; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.nowrap-table th,
.nowrap-table td {
  white-space: nowrap;
}
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.side {
  background: #101828;
  color: #fff;
  padding: 18px 14px;
}
.brand { font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.brand-dashboard {
  width: 100%;
  display: block;
  min-height: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-align: left;
}
.brand-dashboard.active {
  background: #1f4e79;
}
.operator { color: #cbd5e1; font-size: 13px; margin-bottom: 14px; }
.nav { display: grid; gap: 8px; }
.nav button {
  background: transparent;
  border-color: transparent;
  text-align: left;
  padding: 10px;
}
.nav button.active { background: #1f4e79; }
.main { padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.topbar h1 {
  margin: 0 0 4px;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: 0;
}
.subtle { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  min-width: 0;
}
.panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
}
.panel h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}
.panel > h3:first-child {
  margin-top: 0;
}
.grid { display: grid; gap: 12px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.form-panel.narrow { max-width: 560px; }
.metric {
  border: 1px solid var(--line);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 14px;
}
.metric strong { display: block; font-size: 24px; margin-top: 4px; }
.alimtalk-config {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.alimtalk-dashboard {
  display: grid;
  gap: 14px;
}
.alimtalk-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.alimtalk-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.aligo-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .05);
  min-width: 0;
}
.aligo-card h3 {
  margin: 0 0 6px;
}
.aligo-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.aligo-help-card {
  min-height: 182px;
}
.aligo-help-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
}
.aligo-form-panel {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.aligo-form-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.aligo-form-title h4 {
  margin: 0;
  font-size: 16px;
}
.aligo-delivery-form textarea {
  min-height: 58px;
  resize: vertical;
}
.alimtalk-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.aligo-status-tile {
  background: #f8fbff;
}
.aligo-status-tile span,
.aligo-status-tile small {
  color: var(--muted);
}
.aligo-status-tile small {
  display: block;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.inline-check {
  display: inline-flex;
  grid-template-columns: none;
  gap: 7px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
}
.inline-check input {
  width: auto;
}
.sender-number-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.sender-number-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #f8fafc;
}
.sender-number-item input {
  width: auto;
}
.aligo-profile-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #f8fafc;
}
.aligo-profile-item strong {
  font-size: 16px;
}
.aligo-profile-item span {
  color: var(--muted);
  font-size: 13px;
}
.alimtalk-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}
.event-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}
.alimtalk-config-item {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  display: grid;
  align-content: space-between;
  gap: 8px;
}
.alimtalk-config-item span {
  color: var(--muted);
  font-size: 12px;
}
.alimtalk-config-item strong {
  font-size: 14px;
}
.alimtalk-consistency-result {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.alimtalk-consistency-result h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.alimtalk-consistency-result .table-wrap + .table-wrap {
  margin-top: 4px;
}
.alimtalk-variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.alimtalk-variable-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.alimtalk-variable-chip.missing {
  background: #fff7dd;
  border-color: #e9c46a;
  color: #694a00;
}
.alimtalk-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.alimtalk-settings-grid.compact {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}
.grid .span-2 {
  grid-column: 1 / -1;
}
.grid .full-span {
  grid-column: 1 / -1;
}
.template-preview {
  max-width: 520px;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.dashboard-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.dashboard-section h2 {
  margin: 0;
}
.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-section button {
  justify-self: start;
}
.readonly-input {
  background: #f8fafc;
  color: var(--ink);
  border-color: var(--line);
}
.setting-list {
  display: grid;
  gap: 10px;
}
.setting-row {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  cursor: pointer;
}
.setting-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 2px 0 0;
}
.setting-row span {
  display: grid;
  gap: 4px;
}
.setting-row strong {
  color: var(--ink);
  font-size: 16px;
}
.setting-row small {
  color: var(--muted);
  line-height: 1.45;
}
.seller-info {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
}
.seller-info h3 {
  margin: 0 0 10px;
}
.referral-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  align-items: center;
}
.referral-check-row input {
  width: 100%;
}
.referral-check-row button {
  min-height: 44px;
}
.seller-info dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0 0 10px;
}
.seller-info dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.seller-info dt {
  color: var(--muted);
  font-size: 13px;
}
.seller-info dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.point-guide-info dl {
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 0;
}
.point-guide-info dl div {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 6px;
}
.point-guide-info dt {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.point-guide-info dd {
  max-width: 980px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}
.point-guide-info {
  padding-top: 8px;
  padding-bottom: 8px;
}
.point-guide-info h3 {
  margin-bottom: 6px;
}
.privacy-operation-info p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.card-payment-notice {
  display: grid;
  gap: 4px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.card-payment-notice p {
  margin: 0;
}
.billing-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.billing-block + .billing-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.billing-button-grid {
  margin-top: 2px;
}
.billing-history-block,
.sub-work-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}
.billing-history-block {
  margin-top: 18px;
}
.billing-history-block h3,
.billing-history-block h4 {
  margin: 0 0 10px;
}
.billing-history-block h4 {
  margin-top: 18px;
  font-size: 18px;
}
.billing-usage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.billing-usage-summary .metric {
  min-height: 76px;
}
.monthly-download-block {
  margin-top: 22px;
}
.monthly-download-block h3 {
  margin-top: 0;
}
.bank-only {
  margin: 0;
  max-width: 760px;
}
.bank-only dl {
  grid-template-columns: 1fr;
  margin: 0;
}
.bank-only dl div {
  grid-template-columns: 96px minmax(0, 1fr);
}
.bank-only h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.section-head > div {
  min-width: 0;
}
.detail-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 130px 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.photo-work-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}
.photo-list-block {
  margin-top: 18px;
}
.photo-upload-row {
  --photo-label-height: 22px;
  --photo-control-height: 58px;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.25fr) minmax(150px, 180px);
  gap: 12px;
  align-items: start;
}
.photo-upload-row > label,
.photo-file-controls label,
.photo-customer-control label,
.photo-upload-action {
  display: grid;
  grid-template-rows: var(--photo-label-height) var(--photo-control-height);
  gap: 6px;
  align-items: start;
  min-width: 0;
}
.photo-upload-row select,
.photo-upload-row input,
.photo-upload-row button {
  margin: 0;
}
.photo-customer-control {
  display: grid;
  gap: 10px;
}
.photo-customer-control button {
  justify-self: start;
  width: 220px;
}
.photo-file-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: calc(var(--photo-label-height) + 6px);
}
.photo-upload-row button {
  min-height: 46px;
}
.photo-upload-action {
  grid-template-rows: 46px auto;
}
.photo-upload-buttons {
  display: grid;
  gap: 10px;
  align-content: start;
}
.photo-upload-buttons button {
  width: 100%;
}
.photo-job-progress {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: #12365d;
}
.photo-job-progress strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.photo-job-progress span:not(.photo-job-progress-spinner) {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}
.photo-job-progress-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #bfdbfe;
  border-top-color: #1f5784;
  border-radius: 999px;
  animation: photo-job-spin .8s linear infinite;
}
@keyframes photo-job-spin {
  to { transform: rotate(360deg); }
}
#photoJobConsentSelect {
  width: 100%;
  height: var(--photo-control-height);
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}
#photoJobConsentSelect option {
  font: inherit;
  color: #000;
}
.photo-file-controls .photo-file-field {
  position: relative;
  display: grid;
  align-items: start;
  min-width: 0;
}
.file-picker-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.file-picker-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
#studioPhotoJobs .photo-upload-row { --photo-label-height: 42px; }
#studioPhotoJobs .section-head > button { flex-shrink: 0; white-space: nowrap; }
#photoJobTable { max-width: 100%; overflow-x: auto; }
#photoJobTable table { min-width: 680px; }
@media (max-width: 980px) {
  #studioPhotoJobs .photo-upload-row { grid-template-columns: minmax(0, 1fr); }
  #studioPhotoJobs .photo-file-controls { padding-top: 0; }
  #studioPhotoJobs .photo-upload-action { grid-column: auto; grid-template-rows: auto; }
  #studioPhotoJobs .photo-upload-action > span { display: none; }
}
.photo-file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-picker-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: var(--photo-control-height);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.file-picker-button {
  display: inline-grid;
  place-items: center;
  width: 100px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
}
.file-picker-button:hover,
.file-picker-button:focus-visible {
  background: #eff6ff;
  outline: none;
}
.file-picker-names {
  min-width: 0;
  font-size: 13px;
  color: #52617a;
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#createPhotoJob,
#skipPhotoDelivery {
  height: var(--photo-control-height);
  min-height: var(--photo-control-height);
}
.photo-job-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 140px;
  gap: 12px;
  justify-content: end;
  margin-top: 0;
}
.photo-job-toolbar .search-box {
  grid-column: 1;
}
.photo-job-toolbar button {
  grid-column: 2;
  min-height: 46px;
}
.photo-job-toolbar .search-box input {
  width: 100%;
  min-width: 0;
}
.search-box input {
  min-width: 240px;
}
.page-size select {
  min-width: 100px;
}
.list-count {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 10px;
}
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.pager button {
  min-width: 68px;
}
.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(16, 24, 40, .48);
  padding: 18px;
}
.modal-card {
  width: min(1180px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  padding: 16px;
}
.modal-head {
  position: sticky;
  top: -16px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  margin: -16px -16px 14px;
  padding: 16px;
}
.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
.modal-section {
  min-width: 0;
}
.modal-section.full-span {
  grid-column: 1 / -1;
}
.modal-section h3 {
  margin-top: 0;
}
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button { padding: 6px 9px; }
.usage-history-card {
  width: min(1320px, 100%);
}
.usage-history-table td:nth-child(9) {
  white-space: normal;
  min-width: 220px;
}
.money-positive {
  color: var(--green);
  font-weight: 700;
}
.money-negative {
  color: var(--red);
  font-weight: 700;
}
.product-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}
.product-image-current {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.product-image-current img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}
.product-image-current.selected-file {
  grid-template-columns: 1fr;
  gap: 3px;
  color: var(--ink);
}
.kiosk-code-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.kiosk-issued-code {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e9c46a;
  border-radius: 8px;
  background: #fff7dd;
  color: #694a00;
  font-weight: 700;
}
.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
}
.status-active, .status-paid { background: #dcfce7; border-color: #86efac; color: #14532d; }
.status-pending_approval, .status-ready, .status-service { background: #fff7dd; border-color: #e9c46a; color: #694a00; }
.status-disabled { background: #e5e7eb; border-color: #cbd5e1; color: #334155; }
.status-locked, .status-revoked, .status-rejected, .status-failed { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }
.status-deleted { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.status-nonwork { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
.empty { text-align: center; color: var(--muted); padding: 18px; }
.notice {
  background: #fff7dd;
  border: 1px solid #e9c46a;
  color: #694a00;
  padding: 11px;
  border-radius: 6px;
  margin: 0 0 12px;
}
.notice.compact { max-width: 520px; font-size: 13px; }
.message-toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  width: min(520px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #fff7dd;
  border: 1px solid #e9c46a;
  color: #4a3500;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .16);
  padding: 14px 16px;
}
.message-toast-text {
  font-size: 15px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.message-toast button {
  min-width: 66px;
  padding: 8px 12px;
  background: #1f5784;
  color: #fff;
  border-color: #1f5784;
}
.result-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .24);
}
.result-popup-card {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .22);
  padding: 18px;
}
.result-popup-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.result-popup-body {
  display: grid;
  gap: 8px;
}
.result-popup-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
}
.result-popup-row span {
  color: var(--muted);
}
.result-popup-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.result-popup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.kiosk-url-box {
  margin-bottom: 14px;
}
.kiosk-url-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.kiosk-url-row a {
  color: var(--blue);
  word-break: break-all;
}
.hidden { display: none !important; }
.login {
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.pg-business-footer {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding: 14px;
}
.pg-business-footer strong {
  color: var(--ink);
  font-size: 13px;
}
.login-business-footer {
  margin-top: 18px;
}
.app-business-footer {
  margin-top: 4px;
}
.landing-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 42%, #ffffff 100%);
  color: var(--ink);
  padding: 18px clamp(14px, 3vw, 42px) 58px;
  display: grid;
  gap: 24px;
  word-break: keep-all;
}
.landing-page > * {
  width: min(1240px, 100%);
  margin-inline: auto;
}
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 0;
  backdrop-filter: blur(16px);
}
.landing-logo {
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}
.landing-topnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border: 1px solid rgba(31, 78, 121, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
  padding: 4px;
  box-shadow: 0 10px 26px rgba(15, 35, 55, .06);
}
.landing-topnav a {
  color: #34465d;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 7px;
}
.landing-topnav a:hover {
  background: #edf5fd;
  color: var(--blue);
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  padding: clamp(28px, 6vw, 70px) 0 18px;
}
.landing-hero-copy {
  display: grid;
  gap: 20px;
  align-content: center;
}
.landing-brand,
.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.landing-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #0d1726;
  overflow-wrap: break-word;
}
.landing-hero h1 span {
  display: block;
}
.landing-lead {
  max-width: 710px;
  margin: 0;
  color: #394b62;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.78;
  overflow-wrap: break-word;
}
.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.landing-actions .button-link {
  min-height: 52px;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 17px;
  box-shadow: 0 12px 24px rgba(31, 78, 121, .18);
}
.landing-actions .button-link.secondary {
  box-shadow: none;
  background: rgba(255, 255, 255, .86);
}
.landing-test-box {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #d6e1ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  padding: 12px 14px;
  color: #26364c;
  box-shadow: 0 10px 24px rgba(15, 35, 55, .06);
}
.landing-test-box strong {
  color: var(--ink);
}
.landing-test-box span {
  border-left: 1px solid #d9e1ec;
  padding-left: 10px;
}
.landing-hero-media,
.landing-flow-media {
  margin: 0;
  min-width: 0;
}
.landing-hero-media img,
.landing-flow-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d3deeb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 33, 55, .14);
}
.landing-summary-strip,
.landing-card-grid,
.landing-feature-grid,
.landing-pricing-grid,
.landing-safety-grid,
.landing-steps {
  display: grid;
  gap: 14px;
}
.landing-summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.landing-summary-strip article,
.landing-info-card,
.landing-feature-grid article,
.landing-pricing-grid article,
.landing-safety-grid article,
.landing-steps article {
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  padding: 20px;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(15, 35, 55, .045);
}
.summary-icon,
.feature-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f2fb;
  color: var(--blue);
  margin-bottom: 12px;
}
.summary-icon svg,
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.landing-summary-strip h2,
.landing-info-card h3,
.landing-feature-grid h3,
.landing-pricing-grid h3,
.landing-safety-grid h3,
.landing-steps h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}
.landing-summary-strip p,
.landing-info-card p,
.landing-feature-grid p,
.landing-pricing-grid p,
.landing-safety-grid p,
.landing-steps p,
.landing-section-head p,
.landing-payment-section li,
.landing-footer p,
.landing-footer dd {
  margin: 0;
  color: #44546a;
  line-height: 1.68;
}
.landing-section,
.landing-footer {
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 12px 30px rgba(15, 35, 55, .045);
}
.landing-section {
  display: grid;
  gap: 20px;
}
.landing-section-head {
  display: grid;
  gap: 8px;
}
.landing-section h2,
.landing-footer h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.22;
  letter-spacing: 0;
}
.landing-card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.landing-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.landing-steps span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.landing-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.landing-pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.landing-pricing-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 32px;
}
.landing-pricing-note,
.landing-safe-note {
  margin: 0;
  border: 1px solid #cbd7e5;
  border-radius: 8px;
  background: #f4f8fc;
  color: #20324a;
  padding: 14px 16px;
  line-height: 1.6;
}
.landing-safety-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.landing-payment-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}
.landing-footer {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 24px;
}
.landing-footer dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}
.landing-footer dt {
  color: #6b7890;
  font-size: 13px;
}
.landing-footer dd {
  margin: 3px 0 0;
  color: #1f2d42;
}
.landing-footer a {
  color: var(--blue);
}
.password-reset {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.password-reset h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.inline-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 8px;
}
.manual-adjust-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}
.kiosk {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: stretch;
  padding: 0;
  background: #fff;
}
.kiosk-card {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.kiosk-step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.kiosk-step-actions button {
  min-width: 220px;
  min-height: 56px;
  font-size: 22px;
}
.kiosk-form-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.kiosk-card.form-mode > #studioName {
  display: none;
}
.form-topline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.form-topline strong {
  flex: 0 0 auto;
  font-size: 28px;
  line-height: 1.2;
}
.form-topline span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 18px;
}
.form-topline b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 28px;
  line-height: 1.2;
}
.step-label {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.selected-product-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}
.selected-product-summary span {
  color: var(--muted);
}
.selected-product-summary strong,
.selected-product-summary b {
  font-size: 20px;
}
.customer-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.customer-field {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 16px;
}
.customer-field input,
.customer-field .phone-display {
  height: 58px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 22px;
}
.phone-display {
  min-height: 52px;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  text-align: left;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.phone-display.empty {
  color: #98a2b3;
}
.customer-field input.name-display {
  cursor: pointer;
  caret-color: transparent;
}
.agreement-label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  min-height: 56px;
  padding: 8px 2px;
  cursor: pointer;
}
.agreement-label span {
  flex: 1 1 auto;
  min-width: 0;
}
.agreement-label input {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 0;
  flex: 0 0 28px;
  accent-color: var(--blue);
  cursor: pointer;
}
.agreement-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.agreement-box.required {
  background: #f8fafc;
}
.email-consent-row {
  display: block;
}
.email-input-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}
.email-input-row em {
  display: inline-block;
  margin-left: 8px;
  color: #9a6700;
  font-style: normal;
  font-size: 14px;
}
.email-input-row input {
  min-height: 48px;
}
.email-choice-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.email-choice-box.hidden {
  display: none;
}
.email-choice-label {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 16px;
}
.email-choice-label span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 2px;
  cursor: pointer;
}
.email-choice-label input[type="checkbox"] {
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex: 0 0 28px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.email-address-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 24px minmax(150px, 190px) minmax(140px, 1fr);
  gap: 8px;
  align-items: center;
}
.email-at {
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.email-address-grid input,
.email-address-grid select {
  height: 52px;
  min-height: 52px;
  font-size: 18px;
}
.email-address-grid input::placeholder {
  color: #b8c0cc;
}
.email-address-grid .email-keyboard-display:not(:disabled) {
  cursor: pointer;
}
.email-address-grid input:disabled,
.email-address-grid select:disabled {
  background: #f8fafc;
  color: #98a2b3;
}
.email-address-grid.direct-domain #customerEmailDomainCustom {
  display: block;
}
.email-address-grid.fixed-domain #customerEmailDomainCustom {
  display: none;
}
.email-address-grid.fixed-domain {
  grid-template-columns: minmax(120px, 1fr) 24px minmax(150px, 190px);
}
.email-choice-label.disabled {
  opacity: .62;
}
.agreement-copy {
  display: block;
  margin: 8px 0 0 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  word-break: keep-all;
  overflow-wrap: normal;
}
.agreement-copy p {
  margin: 0 0 3px;
}
.agreement-copy p strong {
  display: block;
  margin-top: 4px;
}
.agreement-copy ul {
  list-style: none;
  margin: 0 0 4px;
  padding-left: 0;
}
.agreement-copy li {
  display: inline;
  margin: 0;
}
.agreement-copy li::before {
  content: "  \2022  ";
  white-space: pre;
  color: var(--muted);
}
.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 220px;
  align-content: start;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}
.product-card.active { outline: 3px solid #91c7f0; }
.product-card.product-placeholder {
  visibility: hidden;
  pointer-events: none;
}
.product-card strong {
  font-size: 22px;
}
.product-card p {
  margin: 0;
  font-size: 20px;
}
.product-card small {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.signature {
  width: 100%;
  height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  touch-action: none;
  background: #fff;
}
.signature-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.signature-side {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: center;
}
.signature-title {
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.signature-clear {
  width: 112px;
  min-height: 44px;
  padding: 9px 18px;
}
.signature-submit {
  display: grid;
  align-content: center;
}
.signature-submit button {
  min-height: 64px;
  font-size: 20px;
}
.phone-keypad-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(241, 244, 247, .78);
  backdrop-filter: blur(2px);
}
.consent-confirm-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .58);
}
.phone-keypad-card {
  width: min(820px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, .14);
}
.phone-keypad-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(108px, 16vw, 150px);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.phone-keypad-card h2 {
  margin: 0;
  color: #111;
}
.phone-keypad-close {
  min-height: 58px;
  border: 2px solid #c9d0d8;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(16, 24, 40, .07);
}
.phone-keypad-close:active {
  transform: translateY(1px);
  border-color: #8f9aa6;
  background: #f2f4f6;
}
.phone-keypad-value {
  min-height: 102px;
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 2px solid #d0d5dd;
  border-radius: 18px;
  background: #fff;
  color: #111;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.phone-keypad-value.empty {
  color: #b8c0cc;
}
.phone-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.phone-keypad-grid button {
  min-height: 96px;
  border: 2px solid #cbd5e1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f3f5f7);
  color: #111;
  font-size: 38px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(16, 24, 40, .08), inset 0 1px 0 rgba(255, 255, 255, .92);
}
.phone-keypad-grid button[data-keypad-action="hyphen"],
.phone-keypad-grid button[data-keypad-action="delete"] {
  border-color: #b8c1cc;
  background: linear-gradient(180deg, #fff, #f0f2f5);
}
.phone-keypad-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.phone-keypad-actions button {
  min-height: 76px;
  border-radius: 18px;
  font-size: 22px;
}
#cancelPhoneKeypad {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #111;
}
#confirmPhoneKeypad {
  border-color: #16a66a;
  background: #16a66a;
  color: #fff;
  box-shadow: 0 10px 20px rgba(22, 166, 106, .24);
}
.name-keyboard-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(246, 248, 250, .88);
  backdrop-filter: blur(3px);
}
.name-keyboard-card {
  --name-input-height: clamp(82px, 7vw, 112px);
  width: min(1920px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: clamp(18px, 2vw, 32px);
  border: 1px solid #d9dee5;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(16, 24, 40, .16);
}
.name-keyboard-input-row {
  display: grid;
  grid-template-columns: clamp(145px, 10vw, 190px) minmax(0, 1fr) clamp(180px, 16vw, 300px);
  gap: clamp(12px, 1.2vw, 22px);
  align-items: center;
  margin-bottom: clamp(16px, 2vh, 26px);
}
.email-keyboard-card .name-keyboard-input-row {
  grid-template-columns: max-content minmax(0, 1fr) clamp(180px, 16vw, 300px);
}
.name-keyboard-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(12px, 1.6vh, 20px);
}
.name-keyboard-top-close {
  width: clamp(180px, 16vw, 300px);
  flex: 0 0 auto;
}
.name-keyboard-input-row h2 {
  margin: 0;
  color: #111;
  font-size: clamp(28px, 2.2vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}
.name-keyboard-value,
.name-keyboard-input-action {
  height: var(--name-input-height);
  min-height: var(--name-input-height);
  border-radius: 20px;
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1;
}
.name-keyboard-value {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 clamp(20px, 2vw, 34px);
  overflow: hidden;
  border: 2px solid #7bbd9f;
  background: #fff;
  color: #111;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 0 0 5px rgba(22, 166, 106, .08);
}
.name-keyboard-value.empty {
  color: #a2a9b2;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 500;
}
.name-keyboard-input-action {
  border: 2px solid #c9d0d8;
  background: #fff;
  color: #111;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(16, 24, 40, .07);
}
.name-keyboard-input-action:active {
  transform: translateY(1px);
  border-color: #8f9aa6;
  background: #f2f4f6;
}
.name-keyboard-control.name-keyboard-confirm {
  border: 2px solid #11945f;
  background: #16a66a;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(22, 166, 106, .24);
}
.name-keyboard-control.name-keyboard-confirm:active {
  transform: translateY(1px);
  background: #0f925c;
}
.name-keyboard-keys {
  display: grid;
  gap: clamp(10px, 1.3vh, 16px);
}
.name-keyboard-row {
  display: grid;
  gap: clamp(8px, .8vw, 14px);
  margin: 0 auto;
}
.name-keyboard-key,
.name-keyboard-control {
  min-width: 0;
  min-height: clamp(72px, 8vh, 98px);
  border: 2px solid #c9d0d8;
  border-radius: 18px;
  background: #fff;
  color: #111;
  font-size: clamp(28px, 2.5vw, 44px);
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(16, 24, 40, .07);
}
.name-keyboard-key:active,
.name-keyboard-control:active {
  transform: translateY(1px);
  border-color: #8f9aa6;
  background: #f2f4f6;
}
.name-keyboard-key.is-shift-pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .14em;
}
.name-keyboard-key-base,
.name-keyboard-key-shifted {
  font-weight: 500;
}
.name-keyboard-key-slash {
  color: #8a94a3;
  font-weight: 500;
}
.name-keyboard-key.is-shift-pair .name-keyboard-key-base {
  color: #111;
  font-weight: 900;
}
.name-keyboard-key.is-shift-pair.is-shift-active .name-keyboard-key-base {
  color: #8a94a3;
  font-weight: 500;
}
.name-keyboard-key.is-shift-pair.is-shift-active .name-keyboard-key-shifted {
  color: #111;
  font-weight: 900;
}
.name-keyboard-controls {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(130px, .8fr) minmax(300px, 2.2fr) minmax(160px, 1fr);
  gap: clamp(10px, 1vw, 16px);
  margin-top: clamp(12px, 1.6vh, 20px);
}
.name-keyboard-control {
  font-size: clamp(22px, 2vw, 34px);
}
.name-keyboard-shift.is-active {
  border-color: #1f5b89;
  background: #1f5b89;
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 91, 137, .22);
}
.name-keyboard-shift:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.name-keyboard-space {
  color: #3d4650;
  font-weight: 600;
}
.email-keyboard-controls {
  grid-template-columns: max-content minmax(24px, 1fr) clamp(180px, 24vw, 320px);
  align-items: stretch;
}
.email-keyboard-symbols {
  display: grid;
  grid-template-columns: repeat(3, clamp(72px, 8vw, 124px));
  gap: clamp(8px, .8vw, 14px);
}
.email-keyboard-symbol {
  width: 100%;
}
.email-keyboard-controls-spacer {
  min-width: 24px;
}
.name-keyboard-delete {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.name-keyboard-delete span:first-child {
  font-size: 1.25em;
}
@media (orientation: portrait) {
  .name-keyboard-modal {
    align-items: flex-end;
    padding: 10px;
  }
  .name-keyboard-card {
    --name-input-height: clamp(78px, 9vh, 108px);
    width: min(960px, 100%);
    max-height: calc(100dvh - 20px);
    padding: clamp(18px, 3vw, 28px);
  }
  .name-keyboard-input-row {
    grid-template-columns: minmax(0, 1fr) clamp(130px, 22vw, 190px);
  }
  .email-keyboard-card .name-keyboard-input-row {
    grid-template-columns: minmax(0, 1fr) clamp(130px, 22vw, 190px);
  }
  .name-keyboard-input-row h2 {
    grid-column: 1 / -1;
  }
  .name-keyboard-key,
  .name-keyboard-control {
    min-height: clamp(72px, 7.5vh, 96px);
  }
}
@media (orientation: landscape) and (max-height: 760px) {
  .name-keyboard-card {
    --name-input-height: 76px;
    padding: 18px 22px;
    border-radius: 24px;
  }
  .name-keyboard-input-row {
    margin-bottom: 14px;
  }
  .name-keyboard-input-row h2 {
    font-size: 30px;
  }
  .name-keyboard-value,
  .name-keyboard-input-action {
    font-size: 34px;
  }
  .name-keyboard-value.empty {
    font-size: 24px;
  }
  .name-keyboard-keys {
    gap: 9px;
  }
  .name-keyboard-key,
  .name-keyboard-control {
    min-height: 66px;
    border-radius: 15px;
    font-size: 30px;
  }
  .name-keyboard-controls {
    margin-top: 10px;
  }
  .name-keyboard-control {
    font-size: 24px;
  }
}
@media (max-width: 520px) {
  .name-keyboard-input-row {
    grid-template-columns: minmax(0, 1fr) 118px;
  }
  .name-keyboard-input-row h2 {
    grid-column: 1 / -1;
  }
  .name-keyboard-controls {
    grid-template-columns: 78px 82px minmax(0, 1fr) 96px;
  }
  .name-keyboard-controls.email-keyboard-controls {
    grid-template-columns: max-content minmax(12px, 1fr) minmax(112px, 32vw);
  }
  .email-keyboard-symbols {
    grid-template-columns: repeat(3, 62px);
    gap: 8px;
  }
  .email-keyboard-controls-spacer {
    min-width: 12px;
  }
  .name-keyboard-delete span:last-child {
    display: none;
  }
}
.consent-confirm-card {
  width: 100%;
  max-width: 720px;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #fff;
  border: 1px solid #c8d4e3;
  border-radius: 8px;
  padding: 28px;
  display: grid;
  gap: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .32);
}
.consent-confirm-head {
  display: grid;
  gap: 8px;
}
.consent-confirm-head h2,
.consent-confirm-head p {
  margin: 0;
}
.consent-confirm-head h2 {
  font-size: 30px;
  line-height: 1.25;
  color: var(--ink);
}
.consent-confirm-head p:not(.step-label) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.consent-confirm-summary {
  margin: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.confirm-detail-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}
.confirm-detail-row:last-child {
  border-bottom: 0;
}
.confirm-detail-row dt,
.confirm-detail-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  padding: 14px 16px;
}
.confirm-detail-row dt {
  background: #f3f7fb;
  color: var(--muted);
  font-weight: 700;
}
.confirm-detail-row dd {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  word-break: break-word;
}
.consent-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.consent-confirm-actions button {
  min-height: 64px;
  font-size: 24px;
}
.consent-confirm-countdown {
  margin: -6px 0 0;
  color: #9a6700;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 1120px) {
  .photo-upload-row {
    grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.25fr);
  }
  .photo-upload-action {
    grid-column: 2;
  }
  .photo-upload-action > span {
    display: none;
  }
  .photo-job-toolbar {
    grid-template-columns: minmax(220px, 1fr) 140px;
  }
}
@media (max-width: 980px) {
  .landing-hero,
  .landing-footer {
    grid-template-columns: 1fr;
  }
  .landing-summary-strip,
  .landing-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-card-grid.cols-3,
  .landing-feature-grid,
  .landing-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .landing-page { padding: 14px; gap: 14px; overflow-x: hidden; }
  .landing-page > * {
    width: 100%;
    max-width: calc(100vw - 28px);
  }
  .landing-topbar {
    display: grid;
    gap: 10px;
  }
  .landing-topnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-hero,
  .landing-summary-strip,
  .landing-card-grid.cols-3,
  .landing-feature-grid,
  .landing-pricing-grid,
  .landing-safety-grid,
  .landing-steps,
  .landing-footer,
  .landing-footer dl {
    grid-template-columns: 1fr;
  }
  .landing-hero {
    padding-top: 8px;
  }
  .landing-hero h1 {
    font-size: 30px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }
  .landing-hero h1 span {
    display: block;
  }
  .landing-lead {
    font-size: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .landing-actions { display: grid; }
  .landing-actions .button-link {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .landing-test-box {
    width: auto;
    display: grid;
  }
  .landing-test-box span {
    border-left: 0;
    border-top: 1px solid #d9e1ec;
    padding-left: 0;
    padding-top: 8px;
  }
  .landing-hero-media,
  .landing-flow-media {
    overflow: hidden;
  }
  .app-shell { grid-template-columns: 1fr; }
  .main { min-width: 0; padding: 14px; }
  .side { position: sticky; top: 0; z-index: 2; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav button { overflow-wrap: anywhere; }
  .topbar,
  .section-head,
  .aligo-card-head {
    display: grid;
  }
  .notice.compact { max-width: none; }
  .grid.cols-2, .grid.cols-4, .grid.cols-5 { grid-template-columns: 1fr; }
  .alimtalk-top-grid,
  .alimtalk-bottom-grid,
  .alimtalk-status-grid,
  .alimtalk-settings-grid.compact,
  .sender-number-list {
    grid-template-columns: 1fr;
  }
  .alimtalk-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alimtalk-settings-grid { grid-template-columns: 1fr; }
  .referral-check-row { grid-template-columns: 1fr; }
  .billing-usage-summary { grid-template-columns: 1fr; }
  .seller-info dl { grid-template-columns: 1fr; }
  .seller-info dl div { grid-template-columns: 1fr; gap: 2px; }
  .message-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    grid-template-columns: 1fr;
  }
  .message-toast button {
    width: 100%;
  }
  .result-popup-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .consent-confirm-modal {
    padding: 10px;
    place-items: center stretch;
  }
  .consent-confirm-card {
    padding: 18px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .confirm-detail-row {
    grid-template-columns: 1fr;
  }
  .confirm-detail-row dt {
    padding-bottom: 6px;
  }
  .confirm-detail-row dd {
    padding-top: 6px;
    font-size: 20px;
  }
  .consent-confirm-actions {
    grid-template-columns: 1fr;
  }
  .list-toolbar { grid-template-columns: 1fr; }
  .photo-upload-row { grid-template-columns: 1fr; }
  .photo-job-toolbar .search-box,
  .photo-job-toolbar button { grid-column: auto; }
  .list-count { justify-self: start; padding-bottom: 0; }
  .kiosk-url-row { display: grid; }
  .modal-backdrop { padding: 8px; place-items: stretch; }
  .modal-card { max-height: calc(100vh - 16px); }
  .modal-head { display: grid; }
  .modal-grid { grid-template-columns: 1fr; }
  .manual-adjust-row { grid-template-columns: 1fr; }
  .kiosk-form-head,
  .customer-field-grid,
  .selected-product-summary,
  .email-consent-row {
    grid-template-columns: 1fr;
    display: grid;
  }
  .form-topline {
    white-space: normal;
    flex-wrap: wrap;
  }
  .form-topline strong,
  .form-topline b {
    font-size: 24px;
  }
  .product-list {
    grid-template-columns: 1fr;
  }
  .email-input-row {
    grid-template-columns: 1fr;
  }
  .email-choice-label {
    grid-template-columns: 1fr;
  }
  .email-address-grid {
    grid-template-columns: minmax(0, 1fr) 24px minmax(120px, 150px);
  }
  .email-address-grid #customerEmailDomainCustom {
    grid-column: 1 / -1;
  }
  .signature-row {
    grid-template-columns: 1fr;
  }
  .signature-side {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .signature-submit button {
    width: 100%;
  }
  .kiosk-step-actions button {
    width: 100%;
  }
  .phone-keypad-modal {
    padding: 10px;
    place-items: end stretch;
  }
  .phone-keypad-card {
    max-height: calc(100dvh - 20px);
    padding: 20px;
  }
  .phone-keypad-value {
    min-height: 88px;
    font-size: 36px;
  }
  .phone-keypad-grid {
    gap: 10px;
  }
  .phone-keypad-grid button {
    min-height: 84px;
    font-size: 32px;
  }
}
@media (max-width: 520px) {
  .landing-page > * {
    max-width: 362px;
    margin-inline: 0;
  }
  .landing-hero h1 {
    font-size: 28px;
  }
  .landing-lead {
    font-size: 15px;
  }
}

/* Customer kiosk PWA redesign */
.kiosk {
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .86), rgba(255, 255, 255, 0) 34%),
    #f3f4f6;
  color: #111111;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.kiosk .kiosk-card {
  width: min(1180px, 100%);
  min-height: calc(100dvh - 48px);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(17, 17, 17, .08);
  overflow: hidden;
}
.kiosk-shell-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 17, .08);
}
.kiosk-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.kiosk-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #111111;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}
.kiosk-brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.kiosk-brand-copy strong {
  overflow: hidden;
  color: #111111;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kiosk-brand-copy span {
  color: #737373;
  font-size: 14px;
}
.kiosk-progress {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kiosk-progress li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #ded8ce;
  border-radius: 999px;
  color: #77736b;
  background: #fffdf8;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.kiosk-progress li span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eee8dd;
  color: #6f6a61;
  font-size: 13px;
  font-weight: 800;
}
.kiosk-progress li.done,
.kiosk-progress li.active {
  border-color: #0a8f5a;
  color: #067548;
  background: #f1fff7;
}
.kiosk-progress li.done span,
.kiosk-progress li.active span {
  background: #0a8f5a;
  color: #ffffff;
}
.kiosk-progress li.done span {
  font-size: 0;
}
.kiosk-progress li.done span::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.kiosk-card[data-view="registerView"] .kiosk-progress,
.kiosk-card[data-view="pendingView"] .kiosk-progress,
.kiosk-card[data-view="lockedView"] .kiosk-progress {
  opacity: .35;
}
.kiosk .notice {
  margin: 0 0 18px;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #f2c066;
  background: #fff8e7;
  color: #7a4b00;
  font-size: 17px;
  font-weight: 700;
}
.kiosk-state-view,
.kiosk-step-view,
.kiosk-complete-screen {
  min-height: calc(100dvh - 174px);
}
.kiosk-state-view,
.kiosk-complete-screen {
  display: grid;
  place-items: center;
}
.kiosk-state-card,
.kiosk-hero-card,
.kiosk-step-card,
.kiosk-complete-screen {
  width: min(860px, 100%);
  border: 1px solid rgba(17, 17, 17, .10);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 17, 17, .07);
}
.kiosk-state-card,
.kiosk-hero-card,
.kiosk-complete-screen {
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
}
.kiosk-step-card {
  width: 100%;
  padding: clamp(18px, 2.4vw, 28px);
}
.kiosk-eyebrow {
  margin: 0 0 10px;
  color: #746e63;
  font-size: 17px;
  font-weight: 700;
}
.kiosk-state-card h1,
.kiosk-hero-card h1,
.kiosk-step-head h1,
.kiosk-complete-screen h1 {
  margin: 0;
  color: #111111;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
}
.kiosk-state-card p:not(.kiosk-eyebrow),
.kiosk-hero-card p:not(.kiosk-eyebrow),
.kiosk-step-head p:not(.kiosk-eyebrow),
.kiosk-complete-screen p {
  margin: 16px 0 0;
  color: #666666;
  font-size: 20px;
  line-height: 1.55;
}
.kiosk-step-head {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}
#customerStep .kiosk-step-head h1 {
  font-size: clamp(30px, 3.4vw, 42px);
}
.kiosk-step-card > .kiosk-step-head > .kiosk-eyebrow {
  display: none;
}
.kiosk-step-head.compact {
  margin: 26px 0 14px;
}
.inline-signature-section .kiosk-step-head {
  display: none;
}
.kiosk-step-head.compact h2 {
  margin: 0;
  color: #111111;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
}
.kiosk-step-head.compact p:not(.kiosk-eyebrow) {
  margin: 8px 0 0;
  color: #666666;
  font-size: 18px;
  line-height: 1.5;
  word-break: keep-all;
}
.kiosk button {
  min-height: 60px;
  border-radius: 18px;
  font-size: 19px;
  font-weight: 800;
}
.kiosk button:not(.secondary) {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}
.kiosk button:not(.secondary):hover {
  background: #252525;
}
#nextToConsent,
#nextToSignature,
#submitConsent {
  border-color: #0a8f5a;
  background: #0a8f5a;
  font-size: 22px;
}
#nextToConsent:hover,
#nextToSignature:hover,
#submitConsent:hover {
  background: #087a4d;
}
.kiosk .secondary {
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}
.kiosk-state-card label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #555;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
}
.kiosk-state-card input {
  min-height: 60px;
  border-radius: 16px;
  font-size: 21px;
}
.kiosk-state-card button,
.kiosk-hero-card button {
  width: min(360px, 100%);
  margin-top: 28px;
}
.kiosk .product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.kiosk .product-card {
  min-height: clamp(330px, 48vh, 430px);
  padding: 16px;
  border: 1px solid #ddd7ce;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 17, 17, .05);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.kiosk .product-card:hover,
.kiosk .product-card:focus-visible {
  border-color: #111111;
  box-shadow: 0 18px 38px rgba(17, 17, 17, .10);
  transform: translateY(-2px);
}
.kiosk .product-card.active {
  outline: 0;
  border-color: #0a8f5a;
  box-shadow: inset 0 0 0 5px #0a8f5a, 0 20px 42px rgba(10, 143, 90, .18);
}
.kiosk .product-card.product-placeholder {
  visibility: hidden;
  pointer-events: none;
}
.kiosk .product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 250px;
  object-fit: cover;
  border: 0;
  border-radius: 22px;
  background: #f2efe8;
}
.kiosk .product-image-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #f2efe8, #ffffff 52%, #e9edf0);
  color: #8b8376;
  font-weight: 900;
}
.kiosk .product-card-body {
  display: grid;
  gap: 8px;
}
.kiosk .product-card strong {
  color: #111111;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
}
.kiosk .product-card p {
  margin: 0;
  color: #111111;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
}
.kiosk .product-card small {
  color: #555555;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.45;
  word-break: keep-all;
}
.kiosk .product-card-select {
  min-height: 48px;
  margin-top: auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #111111;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}
.kiosk .product-card.active .product-card-select {
  background: #0a8f5a;
}
.kiosk-action-bar {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) minmax(230px, 1fr);
  gap: 14px;
  justify-content: end;
  align-items: stretch;
  margin-top: 16px;
}
.kiosk-action-bar.single {
  grid-template-columns: minmax(260px, 360px);
  justify-content: end;
}
.kiosk-action-bar.triple {
  grid-template-columns: minmax(130px, .5fr) minmax(150px, .55fr) minmax(230px, 1fr);
}
.selected-product-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 13px 18px;
  border: 1px solid #dfe5ea;
  border-radius: 20px;
  background: #eef4f7;
}
.selected-product-summary span {
  color: #626d76;
  font-size: 17px;
  font-weight: 700;
}
.selected-product-summary strong,
.selected-product-summary b {
  color: #111111;
  font-size: 24px;
  line-height: 1.25;
}
.customer-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.customer-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: #555555;
  font-size: 18px;
  font-weight: 700;
}
.customer-field input,
.customer-field .phone-display {
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #d7dde4;
  border-radius: 18px;
  background: #fff9df;
  color: #111111;
  font-size: 22px;
  font-weight: 700;
}
.customer-field input.has-value,
.customer-field input:focus,
.customer-field .phone-display:not(.empty) {
  background: #ffffff;
}
.customer-field input:focus,
.customer-field .phone-display:focus-visible {
  border-color: #0a8f5a;
  box-shadow: 0 0 0 4px rgba(10, 143, 90, .12);
  outline: 0;
}
.phone-display {
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.kiosk .customer-field .phone-display {
  border-color: #d7dde4;
  background: #fff9df;
  color: #111111;
  text-align: left;
  appearance: none;
}
.kiosk .customer-field .phone-display:not(.empty),
.kiosk .customer-field .phone-display.has-value,
.kiosk .customer-field .phone-display:focus-visible {
  background: #ffffff;
  color: #111111;
}
.phone-display.empty {
  color: #a8aeb8;
}
.email-choice-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e6eb;
  border-radius: 22px;
  background: #fbfcfd;
}
.email-choice-box.hidden {
  display: none;
}
.email-help {
  display: block;
}
.email-help span {
  color: #666666;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}
.email-choice-label {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: #555555;
  font-size: 18px;
  font-weight: 700;
}
.email-address-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 28px minmax(150px, 190px) minmax(140px, 1fr);
  gap: 10px;
  align-items: center;
}
.email-address-grid input,
.email-address-grid select {
  height: 54px;
  min-height: 54px;
  border-radius: 16px;
  font-size: 19px;
}
.email-address-grid input::placeholder {
  color: #b9bec7;
}
.email-at {
  text-align: center;
  color: #777;
  font-size: 22px;
  font-weight: 900;
}
.email-address-grid.fixed-domain {
  grid-template-columns: minmax(120px, 1fr) 28px minmax(150px, 190px);
}
.email-address-grid.fixed-domain #customerEmailDomainCustom {
  display: none;
}
.consent-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.agreement-box.consent-card {
  display: grid;
  gap: 18px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid #ded8ce;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 17, 17, .04);
}
.agreement-label {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: auto;
  padding: 0;
  color: #111111;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  cursor: pointer;
}
.agreement-label input {
  width: 38px;
  height: 38px;
  min-width: 38px;
  margin: 2px 0 0;
  accent-color: #0a8f5a;
  cursor: pointer;
}
.agreement-box.consent-card:has(.agreement-label input:checked) {
  border-color: #0a8f5a;
  box-shadow: inset 0 0 0 3px rgba(10, 143, 90, .18), 0 12px 30px rgba(10, 143, 90, .08);
}
.consent-summary {
  margin: 0;
  color: #5f6368;
  font-size: 18px;
  line-height: 1.58;
  word-break: keep-all;
}
.consent-detail-trigger {
  width: 180px;
  justify-self: start;
}
.agreement-copy {
  display: none;
}
.consent-detail-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(17, 17, 17, .55);
}
.consent-detail-card {
  width: 100%;
  max-width: 860px;
  width: min(860px, 100%);
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(17, 17, 17, .30);
}
.consent-detail-head {
  flex: 0 0 auto;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece7df;
}
.consent-detail-head h2 {
  margin: 0;
  color: #111111;
  font-size: 30px;
}
.consent-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 8px;
  color: #3d3d3d;
  font-size: 18px;
  line-height: 1.7;
}
.consent-detail-card > button {
  flex: 0 0 auto;
  margin-top: 18px;
}
.consent-detail-body p {
  margin: 0 0 12px;
}
.consent-detail-body p strong {
  color: #111111;
  font-size: 20px;
}
.consent-detail-body ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}
.consent-detail-body li {
  margin: 4px 0;
  padding-left: 18px;
  position: relative;
}
.consent-detail-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #6f6a61;
}
#closeConsentDetail {
  min-height: 64px;
  border-width: 2px;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 900;
}
#closeConsentDetail:disabled {
  color: #777777;
  background: #eef0f2;
  border-color: #cfd5dc;
  cursor: not-allowed;
  opacity: .65;
}
.signature-step-card {
  max-width: 980px;
  margin: 0 auto;
}
.inline-signature-section {
  margin-top: 12px;
  padding-top: 2px;
}
.signature-panel {
  position: relative;
  margin-top: 0;
}
.signature {
  width: 100%;
  height: clamp(210px, 28vh, 310px);
  border: 1px solid #d7dde4;
  border-radius: 24px;
  background: #ffffff;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .02);
}
.signature-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(17, 17, 17, .18);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
.kiosk-complete-screen {
  text-align: center;
}
.complete-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: #027a48;
  position: relative;
}
.complete-mark::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 25px;
  width: 28px;
  height: 16px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(-45deg);
}
.complete-info {
  margin: 26px auto 0;
  padding: 18px 20px;
  width: min(560px, 100%);
  border: 1px solid #e7dccb;
  border-radius: 20px;
  background: #fffaf0;
  color: #6b4a15;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}
.phone-keypad-card,
.consent-confirm-card {
  border-radius: 26px;
}
.phone-keypad-grid button,
.phone-keypad-actions button,
.consent-confirm-actions button {
  border-radius: 18px;
}
@media (max-width: 1040px) {
  .kiosk .kiosk-card {
    min-height: calc(100dvh - 32px);
  }
  .kiosk-progress {
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .kiosk .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .kiosk .product-card {
    min-height: clamp(300px, 44vh, 390px);
  }
  .kiosk .product-image {
    max-height: 210px;
  }
  .consent-card-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .kiosk {
    padding: 12px;
  }
  .kiosk .kiosk-card {
    min-height: calc(100dvh - 24px);
    padding: 14px;
    border-radius: 22px;
  }
  .kiosk-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
  .kiosk-shell-header {
    grid-template-columns: 1fr;
  }
  .kiosk-progress li {
    font-size: 12px;
    padding: 6px 8px;
  }
  .kiosk-state-view,
  .kiosk-step-view,
  .kiosk-complete-screen {
    min-height: auto;
  }
  .kiosk-state-card,
  .kiosk-hero-card,
  .kiosk-step-card,
  .kiosk-complete-screen {
    border-radius: 22px;
    padding: 18px;
  }
  .kiosk .product-list {
    grid-template-columns: 1fr;
  }
  .kiosk .product-card {
    min-height: auto;
  }
  .kiosk .product-image {
    aspect-ratio: 16 / 10;
  }
  .kiosk-action-bar,
  .kiosk-action-bar.single,
  .kiosk-action-bar.triple,
  .email-choice-label,
  .email-address-grid,
  .email-address-grid.fixed-domain,
  .selected-product-summary {
    grid-template-columns: 1fr;
  }
  .customer-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .customer-field {
    font-size: 15px;
  }
  .customer-field input,
  .customer-field .phone-display {
    height: 54px;
    min-height: 54px;
    font-size: 18px;
  }
  .email-address-grid #customerEmailDomainCustom {
    grid-column: auto;
  }
  .email-at {
    display: none;
  }
  .agreement-label {
    grid-template-columns: 38px minmax(0, 1fr);
    font-size: 19px;
  }
  .agreement-label input {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .signature {
    height: clamp(180px, 26vh, 260px);
  }
  .consent-detail-modal,
  .consent-confirm-modal {
    padding: 10px;
    place-items: stretch;
  }
  .consent-detail-card {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 20px;
  }
  .consent-detail-head {
    display: grid;
  }
}
/* Subscription tables scroll on small displays instead of squeezing dates. */
#studioBilling table, #cwPayments table, #cwPaymentRecords table { min-width: 680px; }
#studioBilling p, #studioBilling h3 { word-break: keep-all; overflow-wrap: anywhere; }
