/* Shared Painter and Shophand layer; the admin stylesheet remains unchanged. */
.signup-help-link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 12px; color: #1769aa; font-size: 14px; font-weight: 750; text-decoration: none; }
.signup-help-link:hover { text-decoration: underline; }
#member-app .main-module-nav { display: none; }
#member-app .workspace { max-width: 1800px; }
#member-app .workspace-header { margin-bottom: 20px; }
#member-app .member-workspace-view { max-width: 1080px; }
.painter-bottom-nav { display: none; }
.shophand-scan-card .painter-section-heading { margin-bottom: 20px; }
.barcode-camera-dialog .qr-camera-viewport { aspect-ratio: 4 / 3; max-height: 50dvh; }
.barcode-camera-dialog .qr-camera-viewport video { object-fit: contain; }
.barcode-camera-dialog .qr-camera-target { width: 86%; max-width: 440px; aspect-ratio: 3 / 1; border-radius: 12px; }
.barcode-camera-manual { display: block; width: calc(100% - 40px); margin: 0 20px 20px; padding: 13px; border: 1px solid #8dd9ff; border-radius: 12px; background: transparent; color: #fff; font-weight: 700; }
.painter-camera-button:disabled { opacity: .65; cursor: wait; }
.qr-camera-dialog:not(.barcode-camera-dialog) .qr-camera-viewport { aspect-ratio: 1; max-height: 48dvh; }
.qr-camera-dialog:not(.barcode-camera-dialog) .qr-camera-viewport video { object-fit: contain; }
.qr-camera-status[data-state="success"] { color: #98f5c5; font-weight: 750; }
.qr-camera-status[data-state="error"] { color: #ffc2c2; font-weight: 700; }
.camera-quick-actions { display: flex; gap: 10px; margin: 0 20px 20px; }
.camera-quick-actions .barcode-camera-manual { width: auto; margin: 0; min-height: 44px; flex: 1; }
.camera-quick-actions [data-scan-sound] { flex: 0 0 auto; min-width: 90px; }
.camera-quick-actions [data-scan-sound]:disabled { opacity: .65; }
.scanner-feedback-flash { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 2147483647; pointer-events: none; background: rgba(20, 190, 100, .5); animation: scanner-result-flash 400ms ease-out 1 both; }
.scanner-feedback-flash[data-result="error"] { background: rgba(235, 40, 60, .5); }
@keyframes scanner-result-flash { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scanner-feedback-flash { animation-duration: 120ms; } }

.painter-welcome {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 24px; align-items: center; margin-bottom: 16px; border-radius: 22px;
  padding: clamp(24px, 4vw, 40px); color: #fff;
  background: radial-gradient(circle at 94% 6%, rgba(57, 197, 231, .4), transparent 33%), linear-gradient(125deg, #071d49, #0d548c);
  box-shadow: 0 16px 35px rgba(7, 29, 73, .13);
}
.painter-welcome .eyebrow { color: #8cddf3; }
.painter-welcome h2 { margin: 0; font-size: clamp(27px, 3.5vw, 40px); letter-spacing: -1.3px; line-height: 1.1; }
.painter-welcome > div:first-child p:last-child { max-width: 490px; margin: 11px 0 0; color: #d5e8f5; font-size: 14px; line-height: 1.55; }
.painter-balance { min-width: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 17px; padding: 18px 20px; background: rgba(255,255,255,.1); }
.painter-balance-current > span, .painter-balance-details span { display: block; color: #d7eaf8; font-size: 11px; font-weight: 750; }
.painter-balance-current > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; }
.painter-balance-current strong { display: block; font-size: clamp(27px, 3vw, 35px); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.painter-balance-current > small { display: block; margin-top: 4px; color: #d1e4f2; font-size: 10px; line-height: 1.4; }
.painter-balance button { min-height: 40px; border: 0; padding: 0; color: #fff; background: transparent; font-size: 12px; font-weight: 800; white-space: nowrap; }
.painter-balance button span { margin-left: 6px; }
.painter-balance-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 12px; }
.painter-balance-details > div { min-width: 0; }
.painter-balance-details strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.painter-balance-details small { display: block; margin-top: 5px; color: #d1e4f2; font-size: 10px; line-height: 1.4; }
.painter-balance .painter-payout-rules { margin: 11px 0 0; border-top: 1px solid rgba(255,255,255,.25); padding-top: 10px; color: #d1e4f2; font-size: 10px; font-weight: 700; line-height: 1.4; }

.painter-scan-card { padding: clamp(20px, 4vw, 32px); }
.painter-camera-button { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 16px; align-items: center; width: 100%; min-height: 105px; border: 0; border-radius: 18px; padding: 19px 23px; color: #fff; background: linear-gradient(105deg, #1769aa, #078aa9); box-shadow: 0 12px 25px rgba(23,105,170,.22); text-align: left; }
.painter-camera-button:hover, .painter-camera-button:focus-visible { background: linear-gradient(105deg, #125e9b, #087993); }
.painter-camera-symbol { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.5); border-radius: 15px; background: rgba(255,255,255,.17); font-size: 31px; }
.painter-camera-button strong, .painter-camera-button small { display: block; }
.painter-camera-button strong { font-size: clamp(17px, 2vw, 22px); }
.painter-camera-button small { margin-top: 5px; color: #e1f6fb; font-size: 12px; }
.painter-camera-arrow { font-size: 27px; }
.painter-scan-hint { margin: 14px 3px 0; color: #57677f; font-size: 12px; line-height: 1.55; }
.member-payment-status { display: inline-block; border: 1px solid currentColor; border-radius: 7px; padding: 5px 8px; font-size: 11px; line-height: 1.4; font-weight: 800; white-space: normal; }
.member-payment-paid { color: #087652; background: #e7f7f0; }
.member-payment-pending { color: #805500; background: #fff5d8; }
.member-payment-unpaid { color: #4b607b; background: #eef3f8; }
.member-payment-review { color: #7541a1; background: #f4edfb; }
.member-history-note { max-width: 570px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.member-history-count { margin: 10px 0 0; color: #536880; font-size: 11px; line-height: 1.5; }
.member-history-barcode { display: block; margin-top: 6px; color: #63738b; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.member-history-barcode code { font-family: inherit; font-variant-numeric: tabular-nums; }
.member-history-reload { min-height: 44px; border: 1px solid #cfdae8; border-radius: 10px; padding: 0 14px; color: var(--blue); background: #fff; font-size: 12px; font-weight: 750; }
.member-history-reload:disabled { opacity: .6; cursor: wait; }
.member-history-error { margin: 0; padding: 14px 20px; background: #fff7eb; color: #754b15; font-size: 12px; line-height: 1.5; }
.member-account-payout-note { display: block; margin-top: 7px; color: #d1e4f2; font-size: 10px; line-height: 1.4; }
.painter-scan-status { margin: 12px 2px 0; color: #245f86; font-size: 13px; font-weight: 700; }
.painter-scan-status:empty, .painter-scan-card .form-error:empty { display: none; }
.painter-scan-card .member-result { max-width: none; margin: 20px 0 0; }
.painter-result-actions { display: flex; grid-column: 1 / -1; gap: 10px; margin-top: 11px; }
.painter-result-actions button { min-height: 44px; border: 1px solid #9ccdbb; border-radius: 10px; padding: 0 14px; color: #155d46; background: #fff; font-size: 12px; font-weight: 800; }

.painter-recent-card { margin-top: 16px; padding: 23px 26px; }
.painter-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.painter-section-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.painter-section-heading button { min-height: 44px; border: 0; padding: 0 3px; color: var(--blue); background: transparent; font-size: 12px; font-weight: 800; }
.member-recent-activity { margin: 8px 0 0; padding: 0; list-style: none; }
.member-recent-activity li { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 69px; border-top: 1px solid var(--line); padding: 12px 0; }
.member-recent-activity li > span { min-width: 0; overflow-wrap: anywhere; }
.member-recent-activity li strong, .member-recent-activity li small { display: block; }
.member-recent-activity li strong { font-size: 13px; line-height: 1.35; }
.member-recent-activity li small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.member-recent-activity li .member-payment-status { margin-top: 7px; }
.member-recent-activity li b { flex: 0 0 auto; font-size: 14px; font-variant-numeric: tabular-nums; }
.member-recent-activity li b.positive { color: #067652; }
.member-recent-activity li b.negative { color: #b12740; }
.member-recent-activity li.painter-empty-activity { justify-content: flex-start; color: var(--muted); font-size: 13px; }

.profile-optional { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.profile-optional summary { min-height: 44px; padding: 12px 0; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
.profile-optional .profile-setup-grid { gap: 0 14px; }
.member-profile-card { width: min(100%, 900px); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(7,29,73,.045); }
.member-profile-intro { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 18px; align-items: start; padding: 30px 34px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 98% 0, rgba(24,168,216,.1), transparent 35%), linear-gradient(120deg, #f5fafe, #fff 65%); }
.member-profile-intro-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, #1769aa, #0886a8); font-size: 27px; }
.member-profile-intro h2 { margin: 0; color: var(--ink); font-size: clamp(22px, 2.5vw, 29px); letter-spacing: -.8px; line-height: 1.2; }
.member-profile-intro p:last-child { max-width: 570px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.member-profile-content { padding: 0 34px; }
.member-profile-section { padding: 26px 0 29px; }
.member-profile-section + .member-profile-section { border-top: 1px solid #e8eef5; }
.member-profile-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.member-profile-section-heading > span { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; color: #1769aa; background: #e9f5fb; font-size: 10px; font-weight: 900; letter-spacing: .5px; }
.member-profile-section-heading h3 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.3px; }
.member-profile-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.member-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.member-profile-field { min-width: 0; }
.member-profile-field label { display: block; margin: 0 0 8px; color: #35445b; font-size: 12px; font-weight: 800; }
.member-profile-field input, .member-profile-field select { min-height: 49px; border-color: #cfdae8; border-radius: 11px; padding-inline: 14px; font-size: 14px; }
.member-profile-field input::placeholder { color: #9aa8b9; }
.member-profile-field input[readonly] { color: #40526b; background: #f5f8fc; cursor: default; }
.member-profile-field small { display: block; margin-top: 7px; color: #7a889c; font-size: 10px; line-height: 1.45; }
.member-profile-phone { grid-column: 1 / -1; max-width: 500px; }
.member-profile-label-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-profile-verified { margin-bottom: 8px; border-radius: 20px; padding: 4px 8px; color: #087652; background: #e7f7f0; font-size: 10px; font-weight: 850; }
.member-profile-required { color: #c72d46; }
.member-profile-optional { margin-left: 4px; color: #8c9aab; font-size: 10px; font-weight: 700; }
.member-profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; border-top: 1px solid var(--line); padding: 20px 34px; background: #fbfcfe; }
.member-profile-actions .form-error { flex: 1; min-height: 0; margin: 0; }
.member-profile-actions .form-error:empty { display: none; }
.member-profile-actions .primary-button { width: auto; min-width: 164px; min-height: 47px; margin: 0; padding: 0 19px; }
.member-profile-actions .primary-button span { margin-left: 18px; }
.otp-resend-button { display: block; margin: 15px auto 0; }
.otp-resend-button:disabled { color: #738297; cursor: default; }

/* Shared read-only content preview for announcements and social posts. */
.member-content-intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.member-content-intro h2 { margin: 0; color: var(--ink); font-size: clamp(23px, 2.8vw, 31px); letter-spacing: -.8px; line-height: 1.2; }
.member-content-intro p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.member-content-count { flex: 0 0 auto; border: 1px solid #d9e8f4; border-radius: 99px; padding: 8px 11px; color: #356080; background: #f1f8fd; font-size: 11px; font-weight: 800; }
.member-preview-notice { margin: 0 0 20px; border: 1px solid #f3d9a8; border-radius: 12px; padding: 13px 16px; color: #694a18; background: #fff8e9; font-size: 12px; line-height: 1.55; }
.member-content-feed { display: grid; gap: 17px; }
.member-content-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 10px 27px rgba(7,29,73,.045); }
.member-content-card-body { padding: 25px 28px; }
.member-content-kicker { display: inline-block; margin-bottom: 10px; color: #1769aa; font-size: 10px; font-weight: 900; letter-spacing: 1.35px; }
.member-content-card h3 { margin: 0; color: var(--ink); font-size: clamp(19px, 2vw, 24px); letter-spacing: -.5px; line-height: 1.25; }
.member-content-card p { max-width: 720px; margin: 12px 0 0; color: #596b83; font-size: 14px; line-height: 1.65; }
.member-content-footnote { display: inline-block; margin-top: 17px; border-radius: 6px; padding: 5px 8px; color: #6d7788; background: #f1f4f8; font-size: 10px; font-weight: 750; }
.member-announcement-card { border-left: 5px solid #1685bd; }
.member-announcement-card:nth-child(2) { border-left-color: #e2a429; }
.member-social-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.member-social-card figure { position: relative; margin: 0; background: #e7eff5; }
.member-social-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.member-social-card figcaption { position: absolute; right: 11px; bottom: 11px; border-radius: 99px; padding: 6px 9px; color: #fff; background: rgba(7,29,73,.82); font-size: 10px; font-weight: 800; }

#member-app button:focus-visible, #member-app summary:focus-visible, .login-screen button:focus-visible, .login-screen summary:focus-visible { outline: 3px solid #ffca28; outline-offset: 3px; }

@media (max-width: 760px) {
  #member-app .workspace { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  #member-app .workspace-header { margin-bottom: 15px; }
  #member-app .workspace-header h1 { font-size: 25px; }
  #member-app .workspace-header .eyebrow { display: none; }
  #member-app .member-workspace-view > .breadcrumbs { display: none; }
  .member-profile-card { border-radius: 19px; }
  .member-profile-intro { grid-template-columns: 41px minmax(0,1fr); gap: 13px; padding: 22px 20px; }
  .member-profile-intro-icon { width: 41px; height: 41px; border-radius: 12px; font-size: 22px; }
  .member-profile-intro h2 { font-size: 21px; }
  .member-profile-intro p:last-child { font-size: 11px; }
  .member-profile-content { padding: 0 20px; }
  .member-profile-section { padding: 21px 0 23px; }
  .member-profile-section-heading { margin-bottom: 17px; }
  .member-profile-fields { grid-template-columns: 1fr; gap: 16px; }
  .member-profile-phone { grid-column: auto; }
  .member-profile-field input, .member-profile-field select { min-height: 48px; }
  .member-profile-actions { display: block; padding: 18px 20px 22px; }
  .member-profile-actions .form-error:not(:empty) { margin-bottom: 12px; }
  .member-profile-actions .primary-button { width: 100%; min-height: 51px; }
  .member-content-intro { display: block; }
  .member-content-count { display: inline-block; margin-top: 13px; }
  .member-content-feed, .member-social-feed { grid-template-columns: 1fr; gap: 14px; }
  .member-content-card-body { padding: 20px; }
  .member-content-card p { font-size: 13px; }
  .member-cashback-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .member-cashback-summary .metric-card { min-height: 124px; padding: 15px; }
  .member-cashback-summary .metric-card > strong { font-size: clamp(20px, 5.5vw, 26px); }
  .member-cashback-summary .metric-card small { line-height: 1.35; }
  .compact-record-list { overflow-x: visible; }
  .compact-record-table, .compact-record-table tbody { display: block; width: 100%; }
  .compact-record-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .compact-record-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 15px 17px; border-top: 1px solid #edf0f5; }
  .compact-record-table tbody td { min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .compact-record-table tbody td:first-child { grid-column: 1; grid-row: 1; line-height: 1.4; }
  .compact-record-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 10px; }
  .compact-record-table tbody td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: start; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .compact-record-table tbody td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .compact-record-table tbody td[colspan] { grid-column: 1 / -1; grid-row: 1; height: auto; padding: 10px 0; text-align: left; }
  .painter-welcome { grid-template-columns: 1fr; gap: 18px; padding: 25px 22px; }
  .painter-welcome h2 { font-size: 28px; }
  .painter-welcome > div:first-child p:last-child { font-size: 13px; }
  .painter-balance { padding: 14px 16px; }
  .painter-balance-current strong { font-size: 27px; }
  .painter-balance-details strong { font-size: 18px; }
  .painter-scan-card { padding: 17px; }
  .painter-camera-button { grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; min-height: 93px; padding: 13px; }
  .painter-camera-symbol { width: 47px; height: 47px; font-size: 26px; }
  .painter-camera-button strong { font-size: 16px; }
  .painter-camera-button small { font-size: 10px; }
  .painter-recent-card { padding: 18px; }
  .painter-bottom-nav:not([hidden]) { position: fixed; z-index: 18; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #d4dfeb; padding: 4px 7px calc(4px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -8px 28px rgba(7,29,73,.08); }
  .painter-bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; border: 0; border-radius: 10px; color: #586982; background: transparent; font-size: 10px; font-weight: 750; }
  .painter-bottom-nav button span { font-size: 21px; line-height: 1; }
  .painter-bottom-nav button.active { color: #0b6098; background: #eaf5fb; }
  .menu-open .painter-bottom-nav { visibility: hidden; }
  .login-panel { min-height: 100dvh; padding: 24px; }
  .login-card h2 { font-size: clamp(29px, 7vw, 38px); }
  .profile-setup-grid { display: block; }
}
@media (max-width: 400px) {
  .painter-camera-button strong { font-size: 14px; }
  .painter-camera-button small { font-size: 9px; }
  .painter-result-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .painter-camera-button, .painter-bottom-nav button { transition: none; }
}

.simulator-notice { position: sticky; top: 0; z-index: 100; padding: 9px 16px; background: #e5f2fb; color: #123b60; border-bottom: 1px solid #bed8ec; font-size: 12px; text-align: center; }
.simulator-camera-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }
.simulator-camera-note { margin: 0; padding: 10px 20px; color: #c6eaff; background: #103453; font-size: 12px; line-height: 1.5; }
.simulator-decoded-code { display: block; max-height: 5.5em; overflow-y: auto; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; line-height: 1.5; }
.simulator-decoded-code[hidden] { display: none; }
.simulator-mode .member-result > .simulator-decoded-code { grid-column: 1 / -1; }
.simulator-camera-dialog .simulator-decoded-code { margin: 0 20px 18px; padding: 10px 12px; border: 1px solid #56758d; border-radius: 8px; background: #0d2945; color: #e4f5ff; }
