:root {
  color-scheme: light;
  --blue: #147df5;
  --blue-deep: #1764ef;
  --text: #15171c;
  --muted: #667085;
  --line: #e2e4e8;
  --sensor-color: #ff3b30;
  --sensor-alpha: 1;
  --watermark-color: #ffffff;
  --watermark-opacity: 0.7;
  --watermark-size: 24px;
  font-family: "DejaVu Sans Condensed", "Arial Narrow", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f5f6f8;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 42px 0 63px;
  color: var(--text);
  background:
    radial-gradient(circle at 52% 17%, rgba(255, 255, 255, 0.98) 0 24%, rgba(247, 248, 250, 0.9) 56%, rgba(241, 243, 246, 0.98) 100%);
}

button,
input {
  font: inherit;
}

button,
label,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
label:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(20, 125, 245, 0.28);
  outline-offset: 3px;
}

.app-shell {
  width: min(720px, calc(100% - 32px));
  min-height: calc(100svh - 105px);
  margin: 0 auto;
  padding: 51px 34px 62px;
  border: 4px solid #dedfe2;
  border-radius: 54px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.13);
  backdrop-filter: blur(14px);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 75px;
  padding-left: 0;
}

.brand-icon {
  display: grid;
  flex: 0 0 73px;
  width: 73px;
  height: 73px;
  place-items: center;
  border-radius: 50%;
  color: #187bf5;
  background: #edf3ff;
}

.brand-icon svg {
  width: 46px;
  height: 46px;
}

.brand-header h1 {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.brand-header p {
  margin: 0;
  color: #697180;
  font-size: 21px;
  line-height: 1.35;
}

.page-divider {
  height: 2px;
  margin: 53px 0 58px;
  background: #dfe2e7;
}

.drop-zone {
  display: flex;
  width: 100%;
  height: 308px;
  align-items: center;
  gap: 39px;
  padding: 45px 40px;
  overflow: hidden;
  border: 2px dashed #74a7ff;
  border-radius: 27px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.34);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: #1b76f2;
  background: rgba(236, 244, 255, 0.6);
}

.drop-zone.is-dragging {
  transform: scale(0.995);
}

.upload-art {
  position: relative;
  display: grid;
  flex: 0 0 174px;
  width: 174px;
  height: 184px;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  color: #246eed;
  background: rgba(230, 238, 255, 0.9);
}

.upload-art svg {
  width: 136px;
  height: 136px;
  filter: drop-shadow(0 8px 11px rgba(21, 75, 173, 0.09));
}

.upload-art img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-zone.has-image .upload-art img {
  display: block;
}

.drop-zone.has-image .upload-art svg {
  display: none;
}

.upload-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.upload-copy strong {
  color: #2873ed;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
}

.upload-copy span {
  color: #7990b8;
  font-size: 21px;
  line-height: 1.25;
  white-space: nowrap;
}

.quick-settings {
  margin-top: 61px;
  overflow: hidden;
  border: 2px solid #e4e5e8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.setting-row {
  display: flex;
  min-height: 116px;
  align-items: center;
  border: 0;
  background: transparent;
}

.watermark-setting {
  min-height: 118px;
  padding: 0 25px;
  border-bottom: 2px solid #e6e7ea;
}

.segmented-control {
  display: flex;
  flex: 0 0 182px;
  height: 65px;
  overflow: hidden;
  border: 2px solid #dfe2e7;
  border-radius: 15px;
  background: #fff;
}

.segmented-control button {
  flex: 1;
  border: 0;
  color: #444b56;
  background: #fff;
  cursor: pointer;
  font-size: 25px;
  transition: color 150ms ease, background 150ms ease;
}

.segmented-control button.active {
  color: #fff;
  background: linear-gradient(135deg, #2281fb, #175eed);
}

.setting-label {
  margin-left: 39px;
  font-size: 25px;
  font-weight: 500;
  white-space: nowrap;
}

.edit-link {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #1f73ee;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.edit-link svg {
  width: 24px;
  height: 24px;
}

.sensor-setting {
  width: 100%;
  padding: 0 25px;
  cursor: pointer;
  text-align: left;
}

.sensor-setting:hover {
  background: #fbfcff;
}

.sensor-badge {
  display: grid;
  flex: 0 0 169px;
  height: 58px;
  place-items: center;
  border-radius: 13px;
  color: #e4424b;
  background: #ffdadd;
  font-size: 24px;
  font-weight: 650;
}

.primary-button,
.secondary-button {
  height: 66px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #2382fb 0%, #1764ef 100%);
  box-shadow: 0 7px 14px rgba(30, 105, 236, 0.22);
}

.primary-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 9px 18px rgba(30, 105, 236, 0.28);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.secondary-button {
  border: 1.5px solid #e0e3e8;
  color: #171a20;
  background: #fff;
}

.secondary-button:hover {
  background: #f8fafc;
}

.create-button {
  display: flex;
  width: 100%;
  height: 120px;
  margin-top: 62px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-radius: 18px;
  font-size: 31px;
  box-shadow: 0 12px 19px rgba(31, 93, 202, 0.23);
}

.create-button svg {
  width: 44px;
  height: 44px;
}

.create-button.is-loading {
  cursor: wait;
  filter: brightness(0.98);
}

.create-button.is-loading > svg {
  display: none;
}

.create-button.is-loading::before {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: create-button-loading 700ms linear infinite;
}

@keyframes create-button-loading {
  to { transform: rotate(360deg); }
}

.app-view[hidden] {
  display: none !important;
}

body.success-page {
  padding: 27px 0 38px;
}

body.history-page {
  padding: 10px 0 40px;
}

.success-view,
.history-view {
  overflow: hidden;
  border: 1px solid #e8ebef;
  background: #fff;
  box-shadow: 0 15px 40px rgba(16, 24, 40, 0.12);
}

.success-view {
  width: min(496px, calc(100% - 20px));
  min-height: 1215px;
  margin: 0 auto;
  padding: 14px 21px 47px 22px;
  border-radius: 40px;
  transform: translateX(5px);
}

.phone-status {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #0b0d11;
}

.phone-status b {
  font-size: 16px;
  font-weight: 750;
}

.phone-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-bars {
  width: 22px;
  height: 14px;
  background: linear-gradient(to top, #0b0d11 0 100%) left bottom / 4px 5px no-repeat,
    linear-gradient(to top, #0b0d11 0 100%) 6px bottom / 4px 8px no-repeat,
    linear-gradient(to top, #0b0d11 0 100%) 12px bottom / 4px 11px no-repeat,
    linear-gradient(to top, #0b0d11 0 100%) right bottom / 4px 14px no-repeat;
  transform: skewY(-5deg);
}

.wifi-mark {
  position: relative;
  width: 19px;
  height: 14px;
  overflow: hidden;
}

.wifi-mark::before,
.wifi-mark::after {
  position: absolute;
  left: 50%;
  border: 2.5px solid #0b0d11;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.wifi-mark::before {
  top: -5px;
  width: 17px;
  height: 17px;
}

.wifi-mark::after {
  top: 2px;
  width: 8px;
  height: 8px;
}

.battery-mark {
  position: relative;
  width: 25px;
  height: 12px;
  border: 2px solid #0b0d11;
  border-radius: 3px;
}

.battery-mark::before {
  position: absolute;
  inset: 2px;
  border-radius: 1px;
  background: #0b0d11;
  content: "";
}

.battery-mark::after {
  position: absolute;
  top: 3px;
  right: -5px;
  width: 3px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: #0b0d11;
  content: "";
}

.success-hero {
  text-align: center;
}

.celebration {
  position: relative;
  height: 212px;
}

.success-check-ring {
  position: absolute;
  top: 64px;
  left: 50%;
  display: grid;
  width: 122px;
  height: 122px;
  place-items: center;
  border: 10px solid #a8efc7;
  border-radius: 50%;
  color: #00984b;
  background: #fff;
  box-shadow: 0 0 28px rgba(53, 209, 128, 0.27), inset 0 0 0 2px rgba(57, 211, 133, 0.1);
  transform: translateX(-50%);
}

.success-check-ring svg {
  width: 59px;
  height: 59px;
}

.confetti {
  position: absolute;
  width: 6px;
  height: 17px;
  border-radius: 4px;
  transform: rotate(var(--rotate));
}

.confetti-1 { top: 26px; left: 46px; --rotate: 9deg; --burst-x: 45px; --burst-y: 36px; --burst-delay: 150ms; background: #8e2de2; }
.confetti-2 { top: 77px; left: 0; --rotate: -63deg; --burst-x: 52px; --burst-y: 12px; --burst-delay: 210ms; background: #33c57c; }
.confetti-3 { top: 95px; left: 94px; --rotate: -25deg; --burst-x: 38px; --burst-y: -4px; --burst-delay: 260ms; background: #3a96f3; }
.confetti-4 { top: 29px; right: 63px; --rotate: 22deg; --burst-x: -44px; --burst-y: 34px; --burst-delay: 180ms; background: #2c9ee9; }
.confetti-5 { top: 84px; right: 14px; --rotate: 48deg; --burst-x: -52px; --burst-y: 9px; --burst-delay: 235ms; background: #ffc51b; }
.confetti-6 { top: 123px; right: 62px; --rotate: -22deg; --burst-x: -40px; --burst-y: -11px; --burst-delay: 290ms; background: #8739e8; }
.confetti-7 { top: 120px; left: 35px; --rotate: -35deg; --burst-x: 48px; --burst-y: -10px; --burst-delay: 320ms; background: #f1767e; }
.confetti-8 { top: 4px; right: 132px; --rotate: -73deg; --burst-x: -25px; --burst-y: 48px; --burst-delay: 120ms; background: #32c77d; }
.confetti-9 { top: 45px; left: 137px; --rotate: 56deg; --burst-x: 30px; --burst-y: 32px; --burst-delay: 200ms; background: #f05ab4; }

.success-hero h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.success-hero p {
  margin: 12px 0 0;
  color: #606875;
  font-size: 16px;
  line-height: 1.55;
}

.success-view.animate-success .success-check-ring {
  animation: success-ring-pop 680ms cubic-bezier(0.16, 1.25, 0.3, 1) both;
}

.success-view.animate-success .success-check-ring::after {
  position: absolute;
  inset: -18px;
  border: 3px solid rgba(63, 207, 131, 0.32);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: success-ring-pulse 820ms 240ms ease-out both;
}

.success-view.animate-success .success-check-ring path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: success-check-draw 460ms 330ms ease-out forwards;
}

.success-view.animate-success .confetti {
  animation: success-confetti-burst 720ms var(--burst-delay) cubic-bezier(0.16, 0.86, 0.3, 1) both;
}

.success-view.animate-success .success-hero h1 {
  animation: success-copy-in 520ms 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.success-view.animate-success .success-hero p {
  animation: success-copy-in 520ms 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes success-ring-pop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.35); }
  68% { opacity: 1; transform: translateX(-50%) scale(1.08); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes success-ring-pulse {
  0% { opacity: 0; transform: scale(0.68); }
  35% { opacity: 0.75; }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes success-check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes success-confetti-burst {
  0% { opacity: 0; transform: translate(var(--burst-x), var(--burst-y)) scale(0.35) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(var(--rotate)); }
}

@keyframes success-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-summary {
  height: 262px;
  margin-top: 35px;
  padding: 16px 18px 18px;
  border: 1.5px solid #e3e6ea;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.03);
}

.success-summary > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.success-summary h2,
.share-card h2,
.other-actions h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}

.testi-id {
  padding: 6px 11px;
  border-radius: 999px;
  color: #1574e8;
  background: #edf6ff;
  font-size: 12px;
  font-weight: 650;
}

.summary-content {
  display: grid;
  grid-template-columns: 202px 1fr;
  gap: 20px;
  margin-top: 27px;
}

.summary-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  background: #dbe7ef;
}

.summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-image span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 17, 25, 0.68);
  font-size: 11px;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.summary-details {
  display: grid;
  align-content: center;
  gap: 18px;
  margin: 0;
}

.summary-details div {
  position: relative;
  padding-left: 31px;
}

.summary-details dt {
  font-size: 14px;
  font-weight: 700;
}

.summary-details dd {
  margin: 5px 0 0;
  color: #6d7480;
  font-size: 13px;
}

.detail-icon {
  position: absolute;
  top: -3px;
  left: 0;
  display: grid;
  width: 21px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  font-size: 23px;
  line-height: 1;
}

.water-icon { color: #147df5; background: #edf5ff; }
.sensor-icon { color: var(--sensor-color); background: #fff0f0; }
.position-icon { width: 19px; height: 19px; margin-top: 2px; border: 2px solid #6c7483; background: #f2f4f7; }

.share-card {
  height: 198px;
  margin-top: 24px;
  padding: 27px 20px 20px;
  border: 1.5px dashed #bed8fb;
  border-radius: 15px;
  background: #fcfdff;
}

.share-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.share-large-icon {
  display: grid;
  width: 65px;
  height: 65px;
  flex: 0 0 65px;
  place-items: center;
  border-radius: 12px;
  color: #147df5;
  background: #edf5ff;
}

.share-large-icon svg {
  width: 34px;
  height: 34px;
}

.share-card h2 {
  font-size: 17px;
}

.share-card p {
  margin: 7px 0 0;
  color: #687180;
  font-size: 13px;
  line-height: 1.45;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.share-buttons button {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid #e1e5ea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.share-buttons svg {
  width: 22px;
  height: 22px;
  color: #1678ee;
}

#copyUrl {
  position: relative;
  overflow: hidden;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.copy-url-icon,
.copy-url-label {
  position: relative;
  z-index: 1;
}

.copy-url-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.copy-url-icon svg {
  position: absolute;
  inset: 0;
  transition: color 180ms ease, opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.copy-check-icon {
  opacity: 0;
  transform: scale(0.45) rotate(-18deg);
}

#copyUrl.is-copied {
  border-color: #a9dfc2;
  color: #117844;
  background: #effaf4;
  box-shadow: 0 5px 13px rgba(30, 170, 96, 0.14);
}

#copyUrl.is-copied svg {
  color: #159354;
}

#copyUrl.is-copied .copy-link-icon {
  opacity: 0;
  transform: scale(0.45) rotate(18deg);
}

#copyUrl.is-copied .copy-check-icon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

#copyUrl.is-copy-failed {
  border-color: #f0b8b5;
  color: #b83932;
  background: #fff4f3;
  animation: copy-url-shake 280ms ease;
}

#copyUrl.is-copy-failed svg {
  color: #d34a42;
}

#copyUrl.is-pressed {
  animation: copy-url-press 240ms ease;
}

.copy-url-ripple {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(22, 120, 238, 0.17);
  transform: scale(0);
  animation: copy-url-ripple 520ms ease-out forwards;
}

@keyframes copy-url-press {
  50% { transform: scale(0.96); }
}

@keyframes copy-url-ripple {
  from { opacity: 1; transform: scale(0); }
  to { opacity: 0; transform: scale(1); }
}

@keyframes copy-url-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  65% { transform: translateX(3px); }
}

.whatsapp-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid #23c86c;
  border-radius: 50%;
  color: #23c86c;
  font-size: 14px;
}

.more-dots {
  color: #1779ef;
  font-size: 17px;
  letter-spacing: 2px;
}

.other-actions {
  height: 186px;
  margin-top: 25px;
  padding: 0 17px 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
}

.other-actions h2 {
  padding: 17px 0 13px;
}

.other-actions button {
  display: grid;
  width: 100%;
  height: 66px;
  grid-template-columns: 39px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  border: 0;
  border-top: 1px solid #edf0f3;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.action-square {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #377bc9;
  background: #eff5ff;
}

.action-square svg {
  width: 23px;
  height: 23px;
}

.other-actions button strong,
.other-actions button small {
  display: block;
}

.other-actions button strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.other-actions button small {
  color: #777f8b;
  font-size: 11px;
}

.action-chevron {
  width: 23px;
  height: 23px;
  color: #505865;
}

.success-done {
  width: 100%;
  height: 57px;
  margin-top: 24px;
  font-size: 17px;
}

.history-view {
  width: min(412px, calc(100% - 20px));
  min-height: 708px;
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  transform: translateX(-76px);
}

.history-view .phone-status {
  height: 45px;
  padding: 0 29px;
}

.history-content {
  padding: 0 20px 8px 19px;
}

.history-header {
  display: grid;
  height: 48px;
  grid-template-columns: 35px 1fr 35px;
  align-items: center;
}

.history-header button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.history-header svg {
  width: 25px;
  height: 25px;
}

.history-header h1 {
  margin: 0 0 0 8px;
  font-size: 20px;
  font-weight: 750;
}

.history-search {
  display: flex;
  height: 41px;
  margin-top: 2px;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1.5px solid #dfe4ea;
  border-radius: 11px;
}

.history-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #718096;
}

.history-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.history-search input::placeholder {
  color: #68758a;
  opacity: 1;
}

.history-filters {
  display: grid;
  grid-template-columns: 72px 90px 91px 1fr;
  gap: 9px;
  margin-top: 11px;
}

.history-filters button {
  display: flex;
  height: 35px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid #e3e6eb;
  border-radius: 11px;
  color: #303640;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.history-filters button.active {
  border-color: #167cf5;
  color: #fff;
  background: linear-gradient(135deg, #2588fa, #1769ef);
  box-shadow: 0 4px 8px rgba(23, 105, 239, 0.18);
}

.filter-calendar,
.filter-draft {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.filter-success {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1.5px solid #2cc879;
  border-radius: 50%;
  color: #2cc879;
  font-size: 8px;
}

.filter-draft {
  border-color: #f2b91f;
  border-radius: 50%;
}

.history-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.testi-card {
  display: grid;
  height: 170px;
  grid-template-columns: 116px 1fr;
  gap: 13px;
  padding: 10px;
  overflow: hidden;
  border: 1.5px solid #e3e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(16, 24, 40, 0.03);
}

.testi-card:first-of-type {
  height: 172px;
}

.testi-card:nth-of-type(2) {
  height: 163px;
}

.testi-card:nth-of-type(3) {
  height: 160px;
}

.testi-card[hidden] {
  display: none;
}

.history-thumb {
  position: relative;
  width: 116px;
  height: 140px;
  overflow: hidden;
  border-radius: 9px;
}

.testi-card:first-of-type .history-thumb {
  transform: translateY(2px);
}

.testi-card:nth-of-type(2) .history-thumb,
.testi-card:nth-of-type(3) .history-thumb,
.testi-card:nth-of-type(2) .testi-card-info,
.testi-card:nth-of-type(3) .testi-card-info {
  transform: translateY(-2px);
}

.history-thumb > i {
  position: absolute;
  right: 7px;
  bottom: 7px;
  max-width: calc(100% - 14px);
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 7px;
  color: #fff;
  background: rgba(13, 18, 26, 0.58);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-thumb {
  padding-top: 8px;
  color: #fff;
  text-align: center;
  background: linear-gradient(155deg, #072b61, #001633);
}

.receipt-thumb > b {
  font-size: 14px;
}

.receipt-thumb > div {
  width: 87px;
  height: 108px;
  margin: 7px auto 0;
  padding: 9px 5px;
  border-radius: 4px;
  color: #1b2533;
  background: #f7fafc;
}

.receipt-thumb small,
.receipt-thumb strong,
.receipt-thumb em {
  display: block;
}

.receipt-thumb small { margin-top: 4px; font-size: 6px; }
.receipt-thumb strong { margin: 7px 0 8px; font-size: 8px; }
.receipt-thumb em { margin-top: 4px; color: #677281; font-size: 5px; font-style: normal; }

.mini-check {
  display: grid;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1fbd60;
  font-size: 11px;
}

.landscape-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-thumb {
  padding: 10px 9px;
  background: #e3eee9;
}

.chat-head {
  margin: -4px -3px 9px 24px;
  padding: 4px 8px;
  border-radius: 7px 7px 2px 7px;
  color: #2c6848;
  text-align: center;
  background: #bcecca;
  font-size: 7px;
}

.chat-thumb p {
  width: max-content;
  max-width: 87px;
  margin: 5px 0;
  padding: 5px 7px;
  border-radius: 3px 7px 7px 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: 7px;
}

.chat-thumb > strong {
  display: inline-block;
  margin-top: 3px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.chat-input {
  position: absolute;
  right: 8px;
  bottom: 29px;
  left: 8px;
  height: 18px;
  padding-left: 4px;
  border-radius: 999px;
  color: #89929f;
  background: #fff;
  font-size: 12px;
}

.testi-card-info {
  min-width: 0;
}

.testi-card-info h2 {
  margin: 1px 0 2px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testi-card-info > a {
  color: #1677e8;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.testi-date {
  margin: 4px 0 5px;
  color: #5e6877;
  font-size: 9px;
}

.testi-date span {
  margin-right: 6px;
  color: #778497;
}

.testi-card-info dl {
  margin: 0;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
}

.testi-card-info dl div {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf0f3;
  font-size: 9px;
}

.testi-card-info dl div:first-child {
  border-top: 0;
}

.testi-card-info dt {
  font-weight: 650;
}

.testi-card-info dd {
  margin: 0;
  color: #707987;
}

.mini-drop {
  margin-right: 6px;
  font-size: 15px;
}

.mini-drop.blue { color: #177df2; }
.mini-drop.red { color: #f0444d; }
.mini-drop.yellow { color: #eeb818; }
.mini-drop.green { color: #27be67; }

.testi-actions {
  display: grid;
  grid-template-columns: 1fr 35px 58px;
  gap: 5px;
  margin-top: 5px;
}

.testi-actions button {
  display: flex;
  height: 29px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid #e1e6ed;
  border-radius: 7px;
  color: #1576e9;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.testi-actions svg {
  width: 17px;
  height: 17px;
}

.testi-actions .delete-testi-button {
  gap: 3px;
  border-color: #f0d2d0;
  color: #cb4139;
  background: #fffafa;
}

.testi-actions .delete-testi-button svg {
  width: 15px;
  height: 15px;
}

.history-empty {
  margin: 30px 0;
  color: #707987;
  text-align: center;
  font-size: 13px;
}

.modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: 32px 16px;
  background: rgba(248, 249, 251, 0.86);
  backdrop-filter: blur(6px);
  animation: overlay-in 170ms ease-out;
}

.modal-overlay[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-card {
  width: min(100%, 550px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border: 1px solid #eceef1;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
  scrollbar-width: thin;
  animation: modal-in 190ms ease-out;
}

.modal-card:focus {
  outline: none;
}

.watermark-modal {
  min-height: 1210px;
  margin-top: 4px;
  transform: translateX(12px);
  padding: 34px 31px 37px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.35px;
  line-height: 1.2;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  color: #69717f;
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 26px;
  height: 26px;
}

.watermark-preview {
  position: relative;
  height: 254px;
  margin-top: 27px;
  margin-left: 8px;
  overflow: hidden;
  border-radius: 25px;
  background: #d9e8f5;
}

.watermark-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watermark-object {
  position: absolute;
  display: inline-grid;
  min-width: 163px;
  min-height: 51px;
  place-items: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.92);
  color: var(--watermark-color);
  font-size: calc(var(--watermark-size) * 0.67);
  opacity: var(--watermark-opacity);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%);
}

.watermark-object[data-position="top-left"] { top: 15%; left: 20%; }
.watermark-object[data-position="top-center"] { top: 15%; left: 50%; }
.watermark-object[data-position="top-right"] { top: 15%; left: 80%; }
.watermark-object[data-position="middle-left"] { top: 50%; left: 20%; }
.watermark-object[data-position="middle-center"] { top: 50%; left: 50%; }
.watermark-object[data-position="middle-right"] { top: 50%; left: 80%; }
.watermark-object[data-position="bottom-left"] { top: 84%; left: 20%; }
.watermark-object[data-position="bottom-center"] { top: 84%; left: 50%; }
.watermark-object[data-position="bottom-right"] { top: 84%; left: 80%; }

.watermark-object.is-hidden {
  display: none;
}

.handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.handle-tl { top: -5px; left: -5px; }
.handle-tr { top: -5px; right: -5px; }
.handle-bl { bottom: -5px; left: -5px; }
.handle-br { right: -5px; bottom: -5px; }

.watermark-panel {
  min-height: 687px;
  margin-top: 31px;
  padding: 17px 21px 21px;
  border: 1.5px solid #e5e7eb;
  border-radius: 17px;
}

.toggle-line,
.color-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-line strong,
.position-fieldset legend,
.field-block > span:first-child,
.color-line > label:first-child,
.range-field > span:first-child {
  font-size: 17px;
  font-weight: 700;
}

.switch {
  position: relative;
  width: 57px;
  height: 35px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #d8dde5;
  transition: background 150ms ease;
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease;
}

.switch.is-on {
  background: #1580f5;
}

.switch.is-on span {
  transform: translateX(22px);
}

.position-fieldset {
  margin: 39px 0 0;
  padding: 0;
  border: 0;
}

.position-fieldset legend {
  margin-bottom: 13px;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
}

.position-grid button {
  display: grid;
  height: 48px;
  place-items: center;
  border: 1.5px solid #e0e3e8;
  border-radius: 11px;
  cursor: pointer;
  background: #fff;
}

.position-grid button span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #a3a7af;
}

.position-grid button.selected {
  border: 2.5px solid #2580ec;
}

.position-grid button.selected span {
  background: #147df5;
}

.field-block {
  display: block;
  margin-top: 42px;
}

.input-shell {
  display: flex;
  height: 51px;
  margin-top: 11px;
  align-items: center;
  border: 1.5px solid #dfe2e7;
  border-radius: 11px;
}

.input-shell input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 550;
}

.input-shell small {
  padding-right: 13px;
  color: #747b87;
  font-size: 14px;
}

.color-line {
  margin-top: 26px;
}

.color-select {
  display: flex;
  width: 196px;
  height: 51px;
  align-items: center;
  padding: 0 13px;
  border: 1.5px solid #e1e3e7;
  border-radius: 13px;
  cursor: pointer;
}

.color-select > span {
  width: 39px;
  height: 39px;
  margin-left: -10px;
  border: 1.5px solid #e3e5e9;
  border-radius: 50%;
  background: var(--color);
}

.color-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.color-select b {
  margin-left: 11px;
  font-size: 16px;
  font-weight: 550;
}

.color-select svg {
  width: 19px;
  height: 19px;
  margin-left: auto;
  color: #5f6671;
}

.range-field {
  display: block;
  margin-top: 27px;
}

.range-row {
  display: flex;
  margin-top: 11px;
  align-items: center;
  gap: 17px;
}

.range-row input[type="range"] {
  flex: 1;
}

.range-row output {
  width: 50px;
  text-align: right;
  font-size: 16px;
  font-weight: 600;
}

input[type="range"] {
  height: 19px;
  margin: 0;
  cursor: pointer;
  accent-color: #147df5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
  margin-top: 30px;
}

.watermark-modal .modal-actions {
  margin-top: 33px;
}

.modal-actions > button {
  width: 100%;
}

.sensor-modal {
  width: min(100%, 830px);
  min-height: 1206px;
  padding: 35px 34px 43px;
  border-radius: 25px;
}

.sensor-modal .modal-header h2 {
  font-size: 28px;
}

.sensor-preview-section {
  margin-top: 30px;
}

.sensor-preview-section > h3,
.color-picker > h3 {
  margin: 0 0 11px;
  font-size: 18px;
  font-weight: 700;
}

.color-picker > h3:first-child {
  margin-bottom: 17px;
}

.receipt-preview {
  display: grid;
  height: 354px;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid #e4e7eb;
  border-radius: 16px;
  background: #fff;
}

.receipt-left,
.receipt-right {
  padding: 29px 37px;
}

.receipt-right {
  border-left: 1.5px solid #e7e9ed;
}

.success-line {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.success-check {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: #20b75a;
  background: #e2f8e9;
  font-size: 20px;
  font-weight: 700;
}

.success-line strong,
.success-line small,
.account-card p strong,
.account-card p span {
  display: block;
}

.success-line strong {
  font-size: 17px;
}

.success-line small {
  margin-top: 4px;
  color: #68707d;
  font-size: 13px;
}

.receipt-amount {
  margin: 22px 0 15px;
  font-size: 20px;
  font-weight: 750;
}

.account-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px 17px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f3f6ff;
}

.account-card div small {
  display: block;
  margin-bottom: 9px;
  color: #667085;
  font-size: 12px;
}

.account-card p {
  align-self: end;
  margin: 0;
  font-size: 14px;
}

.account-card p strong {
  margin-bottom: 5px;
}

.account-card p span {
  color: #667085;
  font-size: 12px;
}

.redaction {
  display: inline-block;
  border-radius: 4px;
  background: rgba(255, 59, 48, var(--sensor-alpha));
  box-shadow: 0 0 12px color-mix(in srgb, var(--sensor-color) 30%, transparent);
}

.sensor-fill {
  background-color: rgba(255, 59, 48, var(--sensor-alpha));
  background-color: color-mix(in srgb, var(--sensor-color) calc(var(--sensor-alpha) * 100%), transparent);
}

.redaction.short { width: 89px; height: 39px; }
.redaction.tiny { width: 72px; height: 25px; }
.redaction.micro { width: 39px; height: 25px; }
.redaction.small { width: 88px; height: 27px; }
.redaction.wide { width: 178px; height: 27px; }

.receipt-right h4 {
  margin: 0 0 21px;
  font-size: 17px;
}

.detail-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  color: #606977;
  font-size: 13px;
}

.detail-row.total {
  min-height: 57px;
  border-top: 1px solid #e7e9ed;
  color: #171a20;
}

.detail-row.reference {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e7e9ed;
}

.detail-row em {
  padding: 7px 13px;
  border-radius: 999px;
  color: #20a853;
  background: #e5f8ea;
  font-style: normal;
  font-weight: 650;
}

.color-picker {
  margin-top: 30px;
}

.swatch-list {
  display: grid;
  grid-template-columns: repeat(8, 68px);
  gap: 19px;
  margin-left: 7px;
}

.color-swatch,
.custom-swatch {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.color-swatch {
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.color-swatch span {
  display: none;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--swatch);
  background: #fff;
  font-size: 20px;
  font-weight: 800;
}

.color-swatch.selected {
  outline: 3px solid #1b79ef;
  outline-offset: 3px;
}

.color-swatch.selected span {
  display: grid;
}

.custom-swatch {
  position: relative;
  overflow: hidden;
  background: conic-gradient(from 210deg, #58bdf8, #7667f3, #f59da0, #ffd797, #8aefd1, #58bdf8);
}

.custom-swatch::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.38);
  content: "";
}

.custom-swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-swatch span {
  position: relative;
  z-index: 1;
  color: #111827;
  font-size: 37px;
  font-weight: 300;
}

.selected-color-title {
  margin-top: 36px !important;
  margin-bottom: 15px !important;
}

.selected-color-line {
  display: grid;
  grid-template-columns: 239px 1fr;
  gap: 23px;
}

.selected-color-preview {
  height: 62px;
  border-radius: 9px;
  background: var(--sensor-color);
}

.hex-input {
  display: flex;
  height: 62px;
  align-items: center;
  border: 1.5px solid #e0e3e8;
  border-radius: 10px;
}

.hex-input input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 21px;
  font-weight: 520;
  text-transform: uppercase;
}

.hex-input button {
  display: grid;
  width: 61px;
  height: 100%;
  place-items: center;
  border: 0;
  color: #626977;
  background: transparent;
  cursor: pointer;
}

.hex-input svg {
  width: 28px;
  height: 28px;
}

.color-tabs {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  border-bottom: 1.5px solid #e9ebef;
}

.color-tabs button {
  position: relative;
  min-width: 103px;
  padding: 13px 0 14px;
  border: 0;
  color: #606875;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
}

.color-tabs button.active {
  color: #1678f0;
}

.color-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: #1678f0;
  content: "";
}

.color-controls {
  display: grid;
  grid-template-columns: 450px 1fr;
  min-height: 222px;
  padding-top: 24px;
}

.color-controls[hidden] {
  display: none;
}

.channel-controls {
  display: grid;
  gap: 18px;
  padding-right: 37px;
}

.channel-row {
  display: grid;
  grid-template-columns: 23px 1fr 77px;
  align-items: center;
  gap: 17px;
}

.channel-row b {
  font-size: 17px;
}

.channel-row input[type="number"],
.sensor-opacity-control input[type="number"] {
  width: 77px;
  height: 48px;
  border: 1.5px solid #e4e6ea;
  border-radius: 9px;
  text-align: center;
  outline: 0;
  font-size: 17px;
  -moz-appearance: textfield;
}

.channel-row input[type="number"]::-webkit-inner-spin-button,
.sensor-opacity-control input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
}

.red-channel input[type="range"] { accent-color: #ff3b30; }
.green-channel input[type="range"] { accent-color: #1abf58; }
.blue-channel input[type="range"] { accent-color: #2082f6; }
.hue-channel input[type="range"] { accent-color: #8422ee; }
.saturation-channel input[type="range"] { accent-color: #f0a000; }
.brightness-channel input[type="range"] { accent-color: #4c596d; }

.sensor-opacity-control {
  position: relative;
  padding-left: 24px;
  border-left: 1.5px solid #e8eaee;
}

.sensor-opacity-control strong {
  font-size: 16px;
}

.sensor-opacity-control > div {
  display: grid;
  grid-template-columns: 1fr 77px;
  gap: 17px;
  margin-top: 34px;
  align-items: center;
}

.sensor-opacity-control > span {
  display: block;
  margin-top: 7px;
  color: #747b86;
  text-align: right;
  font-weight: 650;
}

.hsb-controls {
  grid-template-columns: 1fr;
}

.hsb-controls .channel-controls {
  max-width: 500px;
}

.sensor-actions {
  grid-template-columns: 318px 1fr;
  margin-top: 42px;
  gap: 25px;
}

.sensor-actions button {
  height: 72px;
  font-size: 19px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100% - 48px));
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: #101828;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  body {
    padding: 18px 0 28px;
  }

  .app-shell {
    min-height: calc(100svh - 46px);
    padding: 30px 24px 44px;
    border-width: 2px;
    border-radius: 34px;
  }

  .brand-header {
    gap: 15px;
    padding-left: 0;
  }

  .brand-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .brand-icon svg {
    width: 38px;
    height: 38px;
  }

  .brand-header h1 {
    font-size: clamp(22px, 6.2vw, 29px);
  }

  .brand-header p {
    font-size: clamp(14px, 4.1vw, 20px);
  }

  .page-divider {
    margin: 34px 0;
  }

  .drop-zone {
    height: auto;
    min-height: 235px;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 24px 18px;
    text-align: center;
  }

  .upload-art {
    flex-basis: 104px;
    width: 104px;
    height: 104px;
    border-radius: 22px;
  }

  .upload-art svg {
    width: 84px;
    height: 84px;
  }

  .upload-copy {
    gap: 6px;
  }

  .upload-copy strong {
    font-size: 21px;
    line-height: 1.3;
  }

  .upload-copy span {
    font-size: 15px;
  }

  .quick-settings {
    margin-top: 34px;
  }

  .setting-row {
    min-height: 94px;
  }

  .watermark-setting,
  .sensor-setting {
    padding: 0 15px;
  }

  .segmented-control {
    flex-basis: 118px;
    height: 50px;
  }

  .segmented-control button,
  .setting-label,
  .edit-link,
  .sensor-badge {
    font-size: 15px;
  }

  .setting-label {
    margin-left: 15px;
  }

  .edit-link {
    gap: 2px;
  }

  .edit-link svg {
    width: 18px;
    height: 18px;
  }

  .sensor-badge {
    flex-basis: 118px;
    height: 49px;
  }

  .create-button {
    height: 78px;
    margin-top: 35px;
    gap: 13px;
    border-radius: 15px;
    font-size: 22px;
  }

  .create-button svg {
    width: 34px;
    height: 34px;
  }

  .modal-overlay {
    align-items: start;
    padding: 14px 10px;
  }

  .modal-card {
    max-height: calc(100vh - 28px);
    border-radius: 22px;
  }

  .watermark-modal {
    min-height: 0;
    margin-top: 0;
    transform: none;
    padding: 25px 20px 26px;
  }

  .watermark-preview {
    height: auto;
    aspect-ratio: 1.9 / 1;
    margin-top: 24px;
    margin-left: 0;
  }

  .watermark-panel {
    min-height: 0;
    padding: 17px 15px 20px;
  }

  .position-grid {
    gap: 10px;
  }

  .position-fieldset {
    margin-top: 25px;
  }

  .position-fieldset legend {
    margin-bottom: 11px;
  }

  .field-block {
    margin-top: 31px;
  }

  .color-line {
    align-items: flex-start;
    gap: 12px;
  }

  .color-select {
    width: 176px;
  }

  .sensor-modal {
    min-height: 0;
    padding: 25px 20px 28px;
  }

  .sensor-preview-section {
    margin-top: 25px;
  }

  .receipt-preview {
    height: auto;
    grid-template-columns: 1fr;
  }

  .receipt-left,
  .receipt-right {
    padding: 23px;
  }

  .receipt-right {
    border-top: 1.5px solid #e7e9ed;
    border-left: 0;
  }

  .swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-left: 0;
  }

  .color-swatch,
  .custom-swatch {
    width: 55px;
    height: 55px;
  }

  .selected-color-line {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .color-controls {
    grid-template-columns: 1fr;
  }

  .channel-controls {
    padding-right: 0;
  }

  .sensor-opacity-control {
    margin-top: 24px;
    padding: 22px 0 0;
    border-top: 1.5px solid #e8eaee;
    border-left: 0;
  }

  .sensor-opacity-control > div {
    margin-top: 16px;
  }

  .sensor-actions {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  body.success-page,
  body.history-page {
    padding: 10px 0 24px;
  }

  .success-view {
    min-height: 0;
    padding: 12px 14px 28px;
    border-radius: 31px;
    transform: none;
  }

  .success-view .phone-status {
    padding: 0 13px;
  }

  .celebration {
    height: 190px;
  }

  .success-check-ring {
    top: 54px;
  }

  .success-hero h1 {
    font-size: 24px;
  }

  .success-hero p {
    font-size: 15px;
  }

  .success-summary {
    height: 246px;
    padding: 14px;
  }

  .success-summary h2 {
    font-size: 14px;
  }

  .testi-id {
    padding: 5px 8px;
    font-size: 10px;
  }

  .summary-content {
    grid-template-columns: minmax(120px, 43%) 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .summary-image {
    height: 155px;
  }

  .summary-details {
    gap: 16px;
  }

  .summary-details div {
    padding-left: 25px;
  }

  .summary-details dt {
    font-size: 12px;
  }

  .summary-details dd {
    font-size: 11px;
  }

  .detail-icon {
    width: 18px;
    font-size: 19px;
  }

  .share-card {
    height: auto;
    min-height: 198px;
    padding: 23px 12px 17px;
  }

  .share-heading {
    gap: 13px;
  }

  .share-large-icon {
    width: 55px;
    height: 55px;
    flex-basis: 55px;
  }

  .share-card h2 {
    font-size: 15px;
  }

  .share-card p {
    font-size: 11px;
  }

  .share-buttons {
    gap: 7px;
    margin-top: 22px;
  }

  .share-buttons button {
    gap: 5px;
    font-size: 10px;
  }

  .other-actions {
    padding-right: 10px;
    padding-left: 10px;
  }

  .other-actions button {
    grid-template-columns: 39px 1fr 20px;
    gap: 9px;
    padding: 0 3px;
  }

  .other-actions button strong {
    font-size: 12px;
  }

  .other-actions button small {
    font-size: 10px;
  }

  .history-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .history-filters {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .history-view .phone-status {
    padding: 0 21px;
  }

  .history-view {
    transform: none;
  }

  .testi-card {
    grid-template-columns: 108px 1fr;
    gap: 9px;
    padding: 9px;
  }

  .history-thumb {
    width: 108px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    width: calc(100% - 20px);
    padding-right: 17px;
    padding-left: 17px;
  }

  .watermark-setting {
    display: grid;
    grid-template-columns: 118px 1fr auto;
  }

  .setting-label {
    font-size: 13px;
  }

  .edit-link {
    font-size: 13px;
  }

  .sensor-setting {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .modal-header h2,
  .sensor-modal .modal-header h2 {
    font-size: 23px;
  }

  .position-grid button {
    height: 43px;
  }

  .toggle-line strong,
  .position-fieldset legend,
  .field-block > span:first-child,
  .color-line > label:first-child,
  .range-field > span:first-child {
    font-size: 15px;
  }

  .modal-actions {
    gap: 12px;
  }

  .modal-actions button {
    height: 58px;
  }

  .account-card {
    grid-template-columns: 84px 1fr;
    padding: 15px;
  }

  .redaction.wide {
    width: 130px;
  }

  .channel-row {
    grid-template-columns: 19px 1fr 59px;
    gap: 9px;
  }

  .channel-row input[type="number"],
  .sensor-opacity-control input[type="number"] {
    width: 59px;
  }
}

@media (max-width: 350px) {
  .history-content {
    padding-right: 8px;
    padding-left: 8px;
  }

  .history-filters {
    gap: 4px;
  }

  .history-filters button {
    font-size: 9px;
  }

  .testi-card {
    grid-template-columns: 94px 1fr;
    gap: 7px;
    padding: 7px;
  }

  .history-thumb {
    width: 94px;
  }

  .testi-card-info h2 {
    font-size: 12px;
  }

  .testi-actions {
    grid-template-columns: 1fr 29px 50px;
    gap: 3px;
  }
}

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

  .create-button.is-loading::before {
    animation: none;
  }

  .success-view.animate-success .success-check-ring,
  .success-view.animate-success .success-check-ring::after,
  .success-view.animate-success .success-check-ring path,
  .success-view.animate-success .confetti,
  .success-view.animate-success .success-hero h1,
  .success-view.animate-success .success-hero p {
    animation: none !important;
  }

  .success-view.animate-success .success-check-ring path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .success-view.animate-success .success-check-ring::after {
    display: none;
  }
}

/* Unified web layout for the success and testimonial history pages. */
body.success-page,
body.history-page {
  padding: 42px 0 63px;
}

.success-view,
.history-view {
  width: min(720px, calc(100% - 32px));
  min-height: calc(100svh - 105px);
  margin: 0 auto;
  border: 4px solid #dedfe2;
  border-radius: 54px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.13);
  transform: none;
}

.phone-status {
  display: none;
}

.success-view {
  padding: 35px 34px 50px;
}

.celebration {
  height: 180px;
}

.success-check-ring {
  top: 28px;
  width: 112px;
  height: 112px;
  border-width: 9px;
}

.success-check-ring svg {
  width: 54px;
  height: 54px;
}

.success-hero h1 {
  font-size: 30px;
}

.success-hero p {
  font-size: 18px;
}

.success-summary {
  height: 260px;
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: 18px;
}

.success-summary h2,
.other-actions h2 {
  font-size: 18px;
}

.testi-id {
  font-size: 14px;
}

.summary-content {
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin-top: 22px;
}

.summary-image {
  height: 166px;
}

.summary-image span {
  font-size: 12px;
}

.summary-details {
  gap: 17px;
}

.summary-details dt {
  font-size: 16px;
}

.summary-details dd {
  font-size: 14px;
}

.share-card {
  height: 180px;
  margin-top: 24px;
  padding: 22px 28px;
  border-radius: 18px;
}

.share-card h2 {
  font-size: 19px;
}

.share-card p {
  font-size: 14px;
}

.share-buttons {
  margin-top: 18px;
}

.share-buttons button {
  height: 50px;
  font-size: 13px;
}

.other-actions {
  height: 186px;
  margin-top: 24px;
  border-radius: 18px;
}

.other-actions button {
  height: 64px;
}

.other-actions button strong {
  font-size: 15px;
}

.other-actions button small {
  font-size: 12px;
}

.success-done {
  height: 80px;
  margin-top: 24px;
  border-radius: 17px;
  font-size: 21px;
}

.history-view {
  padding: 0;
}

.history-content {
  padding: 34px;
}

.history-header {
  height: 60px;
  grid-template-columns: 45px 1fr 45px;
}

.history-header button {
  width: 44px;
  height: 44px;
}

.history-header svg {
  width: 29px;
  height: 29px;
}

.history-header h1 {
  font-size: 29px;
}

.history-search {
  height: 54px;
  margin-top: 8px;
  padding: 0 17px;
  border-radius: 14px;
}

.history-search input {
  font-size: 15px;
}

.history-filters {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.history-filters button {
  height: 44px;
  font-size: 13px;
}

.history-list {
  gap: 14px;
  margin-top: 18px;
}

.testi-card,
.testi-card:first-of-type,
.testi-card:nth-of-type(2),
.testi-card:nth-of-type(3) {
  height: 196px;
}

.testi-card {
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 13px;
  border-radius: 15px;
}

.history-thumb {
  width: 180px;
  height: 170px;
  border-radius: 11px;
}

.testi-card:first-of-type .history-thumb,
.testi-card:nth-of-type(2) .history-thumb,
.testi-card:nth-of-type(3) .history-thumb,
.testi-card:nth-of-type(2) .testi-card-info,
.testi-card:nth-of-type(3) .testi-card-info {
  transform: none;
}

.history-thumb > i {
  font-size: 10px;
}

.testi-card-info h2 {
  margin-top: 0;
  font-size: 18px;
}

.testi-card-info > a {
  font-size: 13px;
}

.testi-date {
  margin: 7px 0;
  font-size: 12px;
}

.testi-card-info dl div {
  min-height: 30px;
  font-size: 12px;
}

.testi-actions {
  grid-template-columns: 1fr 42px 74px;
  gap: 8px;
  margin-top: 7px;
}

.testi-actions button {
  height: 36px;
  font-size: 12px;
}

@media (max-width: 760px) {
  body.success-page,
  body.history-page {
    padding: 10px 0 28px;
  }

  .success-view,
  .history-view {
    width: calc(100% - 20px);
    min-height: 0;
    border-width: 2px;
    border-radius: 31px;
  }

  .success-view {
    padding: 24px 14px 28px;
  }

  .celebration {
    height: 158px;
  }

  .success-check-ring {
    top: 18px;
    width: 106px;
    height: 106px;
  }

  .success-hero h1 {
    font-size: 25px;
  }

  .success-hero p {
    font-size: 16px;
  }

  .success-summary {
    height: auto;
    margin-top: 28px;
    padding: 16px;
  }

  .success-summary h2 {
    font-size: 16px;
  }

  .testi-id {
    font-size: 11px;
  }

  .summary-content {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }

  .summary-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .summary-details {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .summary-details div {
    padding-left: 31px;
  }

  .summary-details dt {
    font-size: 14px;
  }

  .summary-details dd {
    font-size: 13px;
  }

  .share-card {
    height: auto;
    min-height: 190px;
    padding: 22px 12px 17px;
  }

  .share-card h2 {
    font-size: 16px;
  }

  .share-card p {
    font-size: 12px;
  }

  .share-buttons {
    gap: 7px;
    margin-top: 21px;
  }

  .share-buttons button {
    height: 48px;
    font-size: 11px;
  }

  .other-actions {
    height: auto;
    padding-bottom: 10px;
  }

  .other-actions h2 {
    font-size: 16px;
  }

  .other-actions button {
    height: 66px;
  }

  .success-done {
    height: 70px;
    font-size: 19px;
  }

  .history-content {
    padding: 22px 12px 18px;
  }

  .history-header {
    height: 54px;
    grid-template-columns: 40px 1fr 40px;
  }

  .history-header h1 {
    font-size: 24px;
  }

  .history-search {
    height: 49px;
    margin-top: 6px;
  }

  .history-search input {
    font-size: 14px;
  }

  .history-filters {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 11px;
  }

  .history-filters button {
    height: 40px;
    font-size: 11px;
  }

  .history-list {
    gap: 10px;
    margin-top: 13px;
  }

  .testi-card,
  .testi-card:first-of-type,
  .testi-card:nth-of-type(2),
  .testi-card:nth-of-type(3) {
    height: 200px;
  }

  .testi-card {
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .history-thumb {
    width: 110px;
    height: 178px;
  }

  .testi-card-info h2 {
    font-size: 15px;
  }

  .testi-card-info > a {
    font-size: 12px;
  }

  .testi-date {
    margin: 5px 0;
    font-size: 10px;
  }

  .testi-card-info dl div {
    min-height: 29px;
    font-size: 10px;
  }

  .testi-actions {
    grid-template-columns: 1fr 36px 58px;
    gap: 5px;
    margin-top: 6px;
  }

  .testi-actions button {
    height: 32px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .history-content {
    padding-right: 9px;
    padding-left: 9px;
  }

  .history-filters {
    grid-template-columns: 1fr 1fr;
  }

  .testi-card {
    grid-template-columns: 94px 1fr;
    gap: 7px;
    padding: 8px;
  }

  .history-thumb {
    width: 94px;
    height: 182px;
  }
}

/* Public testimonial image page */
body.shared-testi-page {
  padding: 42px 0 63px;
}

.shared-testi-view {
  width: min(720px, calc(100% - 32px));
  min-height: calc(100svh - 105px);
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid #dedfe2;
  border-radius: 54px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.13);
}

.shared-testi-content {
  padding: 34px;
}

.shared-testi-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1.5px solid #e8ebef;
}

.shared-brand-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 50%;
  color: #187bf5;
  background: #edf3ff;
}

.shared-brand-icon svg {
  width: 32px;
  height: 32px;
}

.shared-testi-header strong,
.shared-testi-header span {
  display: block;
}

.shared-testi-header strong {
  font-size: 18px;
}

.shared-testi-header div > span {
  margin-top: 4px;
  color: #707987;
  font-size: 12px;
}

.shared-testi-card {
  margin-top: 30px;
  padding: 24px;
  border: 1.5px solid #e1e6ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.shared-testi-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shared-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #14804a;
  font-size: 12px;
  font-weight: 700;
}

.shared-status i {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #25bd70;
  font-size: 11px;
  font-style: normal;
}

.shared-testi-card h1 {
  margin: 10px 0 0;
  font-size: 27px;
  letter-spacing: -0.4px;
}

.shared-testi-id {
  padding: 7px 12px;
  border-radius: 999px;
  color: #1475e8;
  background: #edf6ff;
  font-size: 12px;
  font-weight: 700;
}

.shared-image-frame {
  position: relative;
  display: grid;
  min-height: 360px;
  margin: 24px 0 0;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #eef2f6;
}

.shared-image-frame img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}

.shared-image-frame > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  overflow: hidden;
  padding: 7px 11px;
  border-radius: 9px;
  color: #fff;
  background: rgba(10, 17, 25, 0.68);
  font-size: 12px;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.shared-create-button {
  width: 100%;
  height: 58px;
  margin-top: 22px;
  border: 1.5px solid #d9e5f5;
  border-radius: 14px;
  color: #1678ee;
  background: #f4f8ff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 760px) {
  body.shared-testi-page {
    padding: 10px 0 28px;
  }

  .shared-testi-view {
    width: calc(100% - 20px);
    min-height: 0;
    border-width: 2px;
    border-radius: 31px;
  }

  .shared-testi-content {
    padding: 22px 14px 28px;
  }

  .shared-testi-header {
    padding: 0 4px 20px;
  }

  .shared-testi-card {
    margin-top: 22px;
    padding: 15px;
    border-radius: 16px;
  }

  .shared-testi-card h1 {
    font-size: 22px;
  }

  .shared-testi-id {
    padding: 6px 9px;
    font-size: 10px;
  }

  .shared-image-frame {
    min-height: 220px;
    margin-top: 19px;
    border-radius: 12px;
  }

  .shared-image-frame img {
    max-height: 72svh;
  }

  .shared-image-frame > span {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .shared-testi-id {
    display: none;
  }

  .shared-testi-header strong {
    font-size: 16px;
  }
}

/* Consistent micro-interactions for every action button. */
button.has-button-feedback:not(#copyUrl) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, filter 180ms ease;
}

@media (hover: hover) {
  button.has-button-feedback:not(#copyUrl):not(:disabled):hover {
    filter: brightness(1.025);
    transform: translateY(-2px);
  }

  .primary-button.has-button-feedback:hover {
    box-shadow: 0 11px 23px rgba(30, 105, 236, 0.3);
  }

  .share-buttons button:not(#copyUrl):hover,
  .history-filters button:hover,
  .testi-actions button:hover,
  .secondary-button:hover,
  .shared-create-button:hover {
    border-color: #c7d9ef;
    box-shadow: 0 6px 14px rgba(32, 91, 160, 0.1);
  }

  .other-actions button:hover {
    background: #f8fbff;
  }

  .other-actions button:hover .action-chevron,
  .edit-link:hover svg {
    transform: translateX(3px);
  }

  .share-buttons button:not(#copyUrl):hover svg,
  .history-header button:hover svg,
  .modal-close:hover svg,
  .testi-actions button:hover svg,
  #copyColor:hover svg {
    transform: scale(1.1);
  }

  .create-button:hover svg {
    transform: scale(1.08) rotate(-5deg);
  }

  #shareWhatsApp:hover .whatsapp-icon {
    transform: scale(1.08) rotate(-7deg);
  }
}

button.has-button-feedback:not(#copyUrl):not(:disabled):active {
  filter: brightness(0.99);
  transform: translateY(0) scale(0.97);
}

button.has-button-feedback > svg,
button.has-button-feedback .action-chevron,
button.has-button-feedback .whatsapp-icon {
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button-feedback-ripple {
  position: absolute !important;
  z-index: 5 !important;
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  opacity: 1;
  pointer-events: none;
  background: rgba(29, 119, 235, 0.15) !important;
  box-shadow: none !important;
  transform: scale(0);
  animation: button-feedback-ripple 540ms ease-out forwards;
}

button.is-button-bouncing:not(#copyUrl) {
  animation: button-feedback-bounce 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes button-feedback-ripple {
  from { opacity: 0.9; transform: scale(0); }
  to { opacity: 0; transform: scale(1); }
}

@keyframes button-feedback-bounce {
  0% { transform: scale(1); }
  42% { transform: scale(0.96); }
  72% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* Floating bottom navigation based on the supplied reference. */
body:not(.shared-testi-page) {
  padding-bottom: 142px;
}

.app-bottom-nav {
  position: fixed;
  z-index: 90;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  width: min(560px, calc(100% - 28px));
  min-height: 82px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 13px 9px;
  border: 1px solid rgba(222, 227, 234, 0.92);
  border-radius: 22px 22px 30px 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(28, 45, 72, 0.16), 0 2px 8px rgba(28, 45, 72, 0.06);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.app-bottom-nav[hidden] {
  display: none;
}

.app-bottom-nav button {
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 8px;
  border: 0;
  border-radius: 15px;
  color: #727b8c;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, transform 140ms ease;
}

.bottom-nav-icon {
  display: grid;
  width: 34px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  transition: color 180ms ease, background 180ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-nav-icon svg {
  width: 24px;
  height: 24px;
}

.app-bottom-nav button.active {
  color: #147df5;
  background: rgba(237, 245, 255, 0.62);
  font-weight: 750;
}

.app-bottom-nav button:active {
  transform: scale(0.96);
}

.app-bottom-nav button.active .bottom-nav-icon {
  color: #147df5;
  background: #edf5ff;
  transform: translateY(-2px);
}

@media (hover: hover) {
  .app-bottom-nav button:not(.active):hover {
    color: #445168;
    background: #f7f9fc;
  }
}

@media (max-width: 760px) {
  body:not(.shared-testi-page) {
    padding-bottom: 112px;
  }

  .app-bottom-nav {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    min-height: 72px;
    gap: 5px;
    padding: 6px 7px 7px;
    border-radius: 18px 18px 25px 25px;
  }

  .app-bottom-nav button {
    min-height: 58px;
    gap: 2px;
    font-size: 10px;
  }

  .bottom-nav-icon {
    width: 31px;
    height: 29px;
  }

  .bottom-nav-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* Testimonial sharing sheet */
.share-sheet-overlay {
  place-items: center;
  padding: 24px;
  background: rgba(19, 29, 45, 0.38);
  backdrop-filter: blur(7px);
}

.share-sheet {
  width: min(100%, 520px);
  padding: 27px;
  overflow: hidden;
  border-radius: 26px;
  transition: transform 180ms ease;
}

.share-sheet.is-dragging {
  animation: none;
  transition: none;
}

.share-sheet-handle {
  display: none;
}

.share-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.share-sheet-header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.35px;
}

.share-sheet-header p {
  margin: 7px 0 0;
  color: #737d8b;
  font-size: 13px;
}

.share-sheet-preview {
  display: grid;
  min-height: 96px;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 23px;
  padding: 12px;
  border: 1.5px solid #e3e8ef;
  border-radius: 16px;
  background: #f9fbfd;
}

.share-sheet-preview > img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 11px;
  background: #e8edf3;
}

.share-sheet-preview strong,
.share-sheet-preview span,
.share-sheet-preview small {
  display: block;
}

.share-sheet-preview strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-sheet-preview span {
  margin-top: 5px;
  color: #1678ee;
  font-size: 11px;
  font-weight: 700;
}

.share-sheet-preview small {
  margin-top: 9px;
  color: #14804a;
  font-size: 10px;
  font-weight: 700;
}

.share-sheet-preview small i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #21bd70;
  box-shadow: 0 0 0 3px #e5f8ee;
}

.share-sheet-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 25px;
}

.share-sheet-actions > button {
  display: flex;
  min-width: 0;
  min-height: 100px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 8px 2px;
  border: 0;
  border-radius: 15px;
  color: #3f4857;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.share-action-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 17px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.share-action-icon svg {
  width: 27px;
  height: 27px;
}

.whatsapp-share-icon {
  color: #159653;
  background: #e9f9f0;
}

.copy-share-icon {
  color: #1478ee;
  background: #eaf3ff;
}

.native-share-icon {
  color: #7b42d4;
  background: #f2ebff;
}

.download-share-icon {
  color: #d88115;
  background: #fff4e4;
}

.share-sheet-actions > button.is-copied {
  color: #13804a;
}

.share-sheet-actions > button.is-copied .copy-share-icon {
  color: #fff;
  background: #20ad67;
  box-shadow: 0 7px 15px rgba(32, 173, 103, 0.22);
}

@media (hover: hover) {
  .share-sheet-actions > button:hover .share-action-icon {
    box-shadow: 0 8px 16px rgba(31, 52, 80, 0.13);
    transform: translateY(-3px) scale(1.04);
  }
}

@keyframes share-sheet-in {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .share-sheet-overlay {
    place-items: end center;
    padding: 0;
  }

  .share-sheet {
    width: 100%;
    max-height: min(88svh, 560px);
    padding: 13px 17px calc(20px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 26px 26px 0 0;
    animation: share-sheet-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .share-sheet-handle {
    display: block;
    width: 43px;
    height: 5px;
    margin: 0 auto 17px;
    border-radius: 999px;
    background: #d7dce3;
    cursor: grab;
    touch-action: none;
  }

  .share-sheet-header h2 {
    font-size: 21px;
  }

  .share-sheet-preview {
    grid-template-columns: 94px 1fr;
    margin-top: 19px;
  }

  .share-sheet-preview > img {
    width: 94px;
    height: 70px;
  }

  .share-sheet-actions {
    gap: 4px;
    margin-top: 21px;
  }

  .share-sheet-actions > button {
    min-height: 91px;
    font-size: 10px;
  }

  .share-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}

/* Delete testimonial confirmation */
.delete-confirm-overlay {
  place-items: center;
  background: rgba(19, 29, 45, 0.42);
  backdrop-filter: blur(7px);
}

.delete-confirm-dialog {
  width: min(100%, 430px);
  padding: 32px;
  overflow: hidden;
  text-align: center;
  border-radius: 25px;
}

.delete-confirm-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #d6473f;
  background: #fff0ef;
  box-shadow: 0 0 0 10px rgba(255, 240, 239, 0.58);
}

.delete-confirm-icon svg {
  width: 37px;
  height: 37px;
}

.delete-confirm-dialog h2 {
  margin: 25px 0 0;
  font-size: 25px;
  letter-spacing: -0.35px;
}

.delete-confirm-dialog p {
  margin: 11px auto 0;
  color: #697382;
  font-size: 13px;
  line-height: 1.6;
}

.delete-confirm-dialog p strong {
  color: #252a33;
}

.delete-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 27px;
}

.delete-confirm-actions > button {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.delete-confirm-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #e65c54, #ca3832);
  box-shadow: 0 7px 15px rgba(202, 56, 50, 0.22);
}

.delete-confirm-button svg {
  width: 19px;
  height: 19px;
}

@media (hover: hover) {
  .testi-actions .delete-testi-button:hover {
    border-color: #e9aaa6;
    background: #fff2f1;
  }

  .delete-confirm-button:hover {
    box-shadow: 0 10px 20px rgba(202, 56, 50, 0.3);
  }
}

.testi-card.is-deleting {
  pointer-events: none;
  animation: testi-card-delete 260ms ease-in forwards;
}

@keyframes testi-card-delete {
  to {
    opacity: 0;
    transform: translateX(24px) scale(0.97);
  }
}

@media (max-width: 560px) {
  .delete-confirm-overlay {
    padding: 16px;
  }

  .delete-confirm-dialog {
    padding: 28px 20px 21px;
    border-radius: 22px;
  }

  .delete-confirm-icon {
    width: 68px;
    height: 68px;
  }

  .delete-confirm-dialog h2 {
    margin-top: 22px;
    font-size: 22px;
  }

  .delete-confirm-actions {
    margin-top: 23px;
  }
}

/* Account page */
body.account-page {
  padding-top: 42px;
}

.account-view {
  width: min(720px, calc(100% - 32px));
  min-height: calc(100svh - 105px);
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid #dedfe2;
  border-radius: 54px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.13);
}

.account-content {
  padding: 34px;
}

.account-header {
  display: grid;
  min-height: 68px;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 15px;
}

.account-header-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 17px;
  color: #177cf3;
  background: #edf5ff;
}

.account-header-icon svg {
  width: 31px;
  height: 31px;
}

.account-header h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.45px;
}

.account-header p {
  margin: 5px 0 0;
  color: #707a89;
  font-size: 13px;
}

.account-active-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #13804a;
  background: #eaf9f1;
  font-size: 11px;
  font-weight: 750;
}

.account-active-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20b96c;
}

.account-profile-card {
  display: grid;
  min-height: 146px;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 24px;
  border: 1.5px solid #dce8f9;
  border-radius: 22px;
  background: linear-gradient(135deg, #f6faff 0%, #edf5ff 100%);
  box-shadow: 0 7px 18px rgba(31, 92, 168, 0.07);
}

.account-avatar {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #348ff8, #1766e9);
  box-shadow: 0 7px 17px rgba(23, 102, 233, 0.22);
  font-size: 27px;
  font-weight: 800;
}

.account-avatar > .account-avatar-check {
  position: absolute;
  z-index: 2;
  right: -1px;
  bottom: 2px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #22b96c;
  font-size: 11px;
}

.account-avatar > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.account-avatar > img[hidden] {
  display: none;
}

.account-profile-copy h2 {
  margin: 0;
  font-size: 21px;
}

.account-profile-copy p {
  margin: 6px 0 0;
  color: #1776e8;
  font-size: 13px;
  font-weight: 700;
}

.account-profile-copy small {
  display: block;
  margin-top: 7px;
  color: #737d8b;
  font-size: 11px;
}

.account-profile-card > button {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1.5px solid #cdddf3;
  border-radius: 11px;
  color: #176fd8;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.account-profile-card > button svg {
  width: 17px;
  height: 17px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.account-stats > div {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e3e8ef;
  border-radius: 16px;
  background: #fff;
}

.account-stats strong {
  color: #176fdc;
  font-size: 25px;
}

.account-stats span {
  margin-top: 5px;
  color: #727c8b;
  font-size: 11px;
  font-weight: 650;
}

.account-settings {
  margin-top: 28px;
}

.account-settings > h2 {
  margin: 0 0 13px;
  font-size: 18px;
}

.account-settings-list {
  overflow: hidden;
  border: 1.5px solid #e1e6ed;
  border-radius: 19px;
  background: #fff;
}

.account-settings-list > button {
  display: grid;
  width: 100%;
  min-height: 75px;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 13px;
  padding: 10px 17px;
  border: 0;
  border-top: 1px solid #edf0f4;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.account-settings-list > button:first-child {
  border-top: 0;
}

.account-setting-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
}

.account-setting-icon svg {
  width: 23px;
  height: 23px;
}

.profile-setting-icon { color: #1676e8; background: #eaf3ff; }
.watermark-setting-icon { color: #8046d7; background: #f2ebff; }
.notification-setting-icon { color: #d98516; background: #fff4e4; }
.help-setting-icon { color: #15905a; background: #e9f9f1; }

.account-settings-list button > span:nth-child(2) strong,
.account-settings-list button > span:nth-child(2) small {
  display: block;
}

.account-settings-list button > span:nth-child(2) strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.account-settings-list button > span:nth-child(2) small {
  color: #778190;
  font-size: 10px;
}

.account-setting-chevron {
  width: 22px;
  height: 22px;
  color: #818a98;
  transition: transform 180ms ease;
}

.account-toggle {
  position: relative;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: #cbd2dc;
  transition: background 180ms ease;
}

.account-toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(26, 38, 56, 0.2);
  transition: transform 180ms ease;
}

.account-toggle.is-on {
  background: #1f7df2;
}

.account-toggle.is-on i {
  transform: translateX(19px);
}

.account-logout {
  display: flex;
  width: 100%;
  height: 54px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid #f0d2d0;
  border-radius: 14px;
  color: #c9423b;
  background: #fffafa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.account-logout svg {
  width: 20px;
  height: 20px;
}

.account-signed-out {
  min-height: calc(100svh - 113px);
  padding: 42px 28px;
  place-items: center;
}

.account-signed-out:not([hidden]) {
  display: grid;
}

.account-signed-out-card {
  width: min(100%, 470px);
  padding: 42px;
  text-align: center;
  border: 1.5px solid #dce8f9;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: 0 18px 38px rgba(31, 92, 168, 0.1);
  animation: account-signed-out-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.account-signed-out-icon {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #177cf3;
  background: #eaf3ff;
  box-shadow: 0 0 0 11px rgba(234, 243, 255, 0.62);
}

.account-signed-out-icon svg {
  width: 39px;
  height: 39px;
}

.account-session-badge {
  display: inline-flex;
  margin-top: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #176fd8;
  background: #eaf3ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

.account-signed-out-card h1 {
  margin: 13px 0 0;
  font-size: 27px;
  letter-spacing: -0.4px;
}

.account-signed-out-card p {
  max-width: 360px;
  margin: 11px auto 0;
  color: #6e7887;
  font-size: 13px;
  line-height: 1.65;
}

.account-signed-out-actions {
  display: grid;
  gap: 10px;
  margin-top: 27px;
}

.account-signed-out-actions button {
  width: 100%;
  height: 51px;
}

.logout-confirm-icon {
  color: #d65b47;
  background: #fff1ee;
  box-shadow: 0 0 0 10px rgba(255, 241, 238, 0.62);
}

.logout-confirm-button.is-loading svg {
  animation: logout-icon-pulse 700ms ease-in-out infinite;
}

@keyframes account-signed-out-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logout-icon-pulse {
  50% { opacity: 0.45; transform: translateX(3px); }
}

@media (hover: hover) {
  .account-settings-list > button:hover {
    background: #f8fbff;
  }

  .account-settings-list > button:hover .account-setting-chevron {
    transform: translateX(3px);
  }

  .account-logout:hover {
    border-color: #e8aaa6;
    background: #fff2f1;
  }
}

@media (max-width: 760px) {
  body.account-page {
    padding-top: 10px;
  }

  .account-view {
    width: calc(100% - 20px);
    min-height: 0;
    border-width: 2px;
    border-radius: 31px;
  }

  .account-content {
    padding: 23px 14px 30px;
  }

  .account-signed-out {
    min-height: calc(100svh - 87px);
    padding: 24px 14px;
  }

  .account-signed-out-card {
    padding: 34px 20px 24px;
    border-radius: 23px;
  }

  .account-signed-out-icon {
    width: 74px;
    height: 74px;
  }

  .account-signed-out-card h1 {
    font-size: 23px;
  }

  .account-header {
    grid-template-columns: 48px 1fr auto;
    gap: 11px;
  }

  .account-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .account-header h1 {
    font-size: 23px;
  }

  .account-header p {
    font-size: 11px;
  }

  .account-profile-card {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    margin-top: 23px;
    padding: 18px;
  }

  .account-avatar {
    width: 68px;
    height: 68px;
    font-size: 22px;
  }

  .account-profile-card > button {
    height: 39px;
    grid-column: 1 / -1;
  }

  .account-stats {
    gap: 7px;
  }

  .account-stats > div {
    min-height: 76px;
  }

  .account-stats strong {
    font-size: 22px;
  }

  .account-settings-list > button {
    min-height: 72px;
    grid-template-columns: 42px 1fr auto;
    gap: 11px;
    padding: 9px 13px;
  }
}

@media (max-width: 380px) {
  .account-active-badge {
    display: none;
  }

  .account-header {
    grid-template-columns: 48px 1fr;
  }

  .account-settings-list button > span:nth-child(2) small {
    font-size: 9px;
  }
}

/* Profile information page */
body.profile-page {
  padding-top: 42px;
}

.profile-view {
  width: min(720px, calc(100% - 32px));
  min-height: calc(100svh - 105px);
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid #dedfe2;
  border-radius: 54px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.13);
}

.profile-content {
  padding: 34px;
}

.profile-header {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 15px;
}

.profile-header > button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  padding: 0;
  border: 1.5px solid #e0e5ec;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.profile-header > button svg {
  width: 25px;
  height: 25px;
}

.profile-header h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.45px;
}

.profile-header p {
  margin: 5px 0 0;
  color: #707a89;
  font-size: 12px;
}

.profile-photo-card {
  display: grid;
  grid-template-columns: 102px 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 23px;
  border: 1.5px solid #dce7f6;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff, #eff6ff);
}

.profile-photo-avatar {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: visible;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #348ff8, #1766e9);
  box-shadow: 0 8px 18px rgba(23, 102, 233, 0.22);
  font-size: 30px;
  font-weight: 800;
}

.profile-photo-avatar > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-photo-avatar > img[hidden],
.profile-photo-avatar > span[hidden] {
  display: none;
}

.profile-photo-avatar > i {
  position: absolute;
  right: -4px;
  bottom: 3px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #1678ee;
  font-style: normal;
}

.profile-photo-avatar > i svg {
  width: 18px;
  height: 18px;
}

.profile-photo-card h2 {
  margin: 0;
  font-size: 18px;
}

.profile-photo-card p {
  margin: 7px 0 13px;
  color: #727c8b;
  font-size: 11px;
}

.profile-photo-card button {
  height: 37px;
  padding: 0 14px;
  border: 1.5px solid #cdddf3;
  border-radius: 10px;
  color: #176fd8;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.profile-form-card {
  margin-top: 20px;
  padding: 24px;
  border: 1.5px solid #e1e6ed;
  border-radius: 20px;
  background: #fff;
}

.profile-form-card > header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 19px;
  border-bottom: 1px solid #edf0f4;
}

.profile-form-card > header > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #1676e8;
  background: #eaf3ff;
}

.profile-form-card > header svg {
  width: 23px;
  height: 23px;
}

.profile-form-card h2 {
  margin: 0;
  font-size: 17px;
}

.profile-form-card header p {
  margin: 5px 0 0;
  color: #778190;
  font-size: 10px;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 17px;
  margin-top: 21px;
}

.profile-field {
  display: block;
  min-width: 0;
}

.profile-field > span:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 750;
}

.profile-field > div {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1.5px solid #dde3ea;
  border-radius: 11px;
  background: #fbfcfe;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.profile-field > div:focus-within {
  border-color: #6ca9f5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 124, 243, 0.1);
}

.profile-field > div svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #788596;
}

.profile-field > div > strong {
  color: #718096;
  font-size: 14px;
}

.profile-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.profile-field > small {
  display: block;
  margin-top: 6px;
  color: #89919e;
  font-size: 9px;
}

.profile-bio-field {
  position: relative;
  grid-column: 1 / -1;
}

.profile-bio-field textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 12px 13px 29px;
  border: 1.5px solid #dde3ea;
  border-radius: 11px;
  outline: 0;
  background: #fbfcfe;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.profile-bio-field textarea:focus {
  border-color: #6ca9f5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 124, 243, 0.1);
}

.profile-bio-field .profile-bio-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0;
  padding: 2px 5px;
  background: #fbfcfe;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 13px;
  margin-top: 21px;
}

.profile-actions > button {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.profile-actions .primary-button svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 760px) {
  body.profile-page {
    padding-top: 10px;
  }

  .profile-view {
    width: calc(100% - 20px);
    min-height: 0;
    border-width: 2px;
    border-radius: 31px;
  }

  .profile-content {
    padding: 22px 14px 29px;
  }

  .profile-header {
    gap: 11px;
  }

  .profile-header > button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }

  .profile-header h1 {
    font-size: 22px;
  }

  .profile-header p {
    font-size: 10px;
  }

  .profile-photo-card {
    grid-template-columns: 82px 1fr;
    gap: 16px;
    margin-top: 23px;
    padding: 18px;
  }

  .profile-photo-avatar {
    width: 78px;
    height: 78px;
    font-size: 24px;
  }

  .profile-form-card {
    padding: 18px 15px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .profile-bio-field {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .profile-header p {
    display: none;
  }

  .profile-photo-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-photo-avatar {
    margin: 0 auto;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }
}

/* Help and support page */
body.help-page {
  padding-top: 42px;
}

.help-view {
  width: min(720px, calc(100% - 32px));
  min-height: calc(100svh - 105px);
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid #dedfe2;
  border-radius: 54px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.13);
}

.help-content {
  padding: 34px;
}

.help-header {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 15px;
}

.help-header > button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  padding: 0;
  border: 1.5px solid #e0e5ec;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.help-header > button svg {
  width: 25px;
  height: 25px;
}

.help-header h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.45px;
}

.help-header p {
  margin: 5px 0 0;
  color: #707a89;
  font-size: 12px;
}

.help-hero {
  margin-top: 27px;
  padding: 27px;
  border: 1.5px solid #d9e7fa;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, #f5f9ff, #edf5ff);
}

.help-hero-icon {
  display: grid;
  width: 67px;
  height: 67px;
  margin: 0 auto;
  place-items: center;
  border-radius: 19px;
  color: #1678ee;
  background: #fff;
  box-shadow: 0 7px 17px rgba(26, 104, 199, 0.12);
}

.help-hero-icon svg {
  width: 36px;
  height: 36px;
}

.help-hero h2 {
  margin: 18px 0 0;
  font-size: 23px;
  letter-spacing: -0.3px;
}

.help-hero > p {
  margin: 8px 0 0;
  color: #6f7988;
  font-size: 12px;
}

.help-search {
  display: flex;
  width: min(100%, 490px);
  height: 49px;
  margin: 20px auto 0;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1.5px solid #d5e0ef;
  border-radius: 13px;
  text-align: left;
  background: #fff;
  box-shadow: 0 4px 11px rgba(31, 74, 128, 0.05);
}

.help-search svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: #738095;
}

.help-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.help-topics,
.help-faq,
.help-contact {
  margin-top: 27px;
}

.help-topics > h2,
.help-section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.help-topics > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 13px;
}

.help-topics button {
  display: flex;
  min-height: 122px;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1.5px solid #e1e7ef;
  border-radius: 17px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.help-topics button > span {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 12px;
  color: #1677e9;
  background: #eaf3ff;
}

.help-topics button:nth-child(2) > span { color: #8247d8; background: #f2ebff; }
.help-topics button:nth-child(3) > span { color: #14915a; background: #e9f9f1; }

.help-topics button svg {
  width: 23px;
  height: 23px;
}

.help-topics button strong,
.help-topics button small {
  display: block;
}

.help-topics button strong {
  margin-top: 12px;
  font-size: 12px;
}

.help-topics button small {
  margin-top: 4px;
  color: #7a8492;
  font-size: 9px;
}

.help-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.help-section-heading > span {
  color: #7d8795;
  font-size: 10px;
}

.help-faq-list {
  margin-top: 13px;
  overflow: hidden;
  border: 1.5px solid #e1e6ed;
  border-radius: 18px;
  background: #fff;
}

.help-faq-item {
  border-top: 1px solid #e9edf2;
}

.help-faq-item:first-child {
  border-top: 0;
}

.help-faq-item[hidden] {
  display: none;
}

.help-faq-item > button {
  display: grid;
  width: 100%;
  min-height: 61px;
  grid-template-columns: 1fr 25px;
  align-items: center;
  gap: 14px;
  padding: 12px 17px;
  border: 0;
  text-align: left;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.help-faq-item > button svg {
  width: 21px;
  height: 21px;
  color: #7a8492;
  transition: transform 180ms ease;
}

.help-faq-item.is-open > button {
  color: #176fdc;
  background: #f8fbff;
}

.help-faq-item.is-open > button svg {
  color: #176fdc;
  transform: rotate(180deg);
}

.help-faq-item > div {
  padding: 0 49px 16px 17px;
  color: #697382;
  background: #f8fbff;
  font-size: 11px;
  line-height: 1.65;
  animation: help-answer-in 180ms ease-out;
}

.help-faq-item > div[hidden] {
  display: none;
}

.help-faq-item > div p {
  margin: 0;
}

.help-faq-empty {
  margin: 0;
  padding: 28px 16px;
  color: #778190;
  text-align: center;
  font-size: 11px;
}

@keyframes help-answer-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.help-contact {
  overflow: hidden;
  border: 1.5px solid #d9e7fa;
  border-radius: 20px;
  background: #f6faff;
}

.help-contact-intro {
  display: grid;
  min-height: 104px;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.help-contact-intro > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #1678ee;
  background: #e5f0ff;
}

.help-contact-intro > span svg {
  width: 27px;
  height: 27px;
}

.help-contact h2 {
  margin: 0;
  font-size: 15px;
}

.help-contact-intro p {
  margin: 6px 0 0;
  color: #727c8a;
  font-size: 10px;
}

.help-contact-intro > button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #1678ee;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.support-form {
  padding: 20px;
  border-top: 1.5px solid #dfe9f6;
  background: #fff;
  animation: help-answer-in 200ms ease-out;
}

.support-form[hidden] {
  display: none;
}

.support-form > label {
  display: block;
  margin-top: 15px;
}

.support-form > label:first-child {
  margin-top: 0;
}

.support-form label > span {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 750;
}

.support-form select,
.support-form textarea {
  width: 100%;
  border: 1.5px solid #dde3ea;
  border-radius: 11px;
  outline: 0;
  background: #fbfcfe;
  font: inherit;
  font-size: 11px;
}

.support-form select {
  height: 44px;
  padding: 0 11px;
}

.support-form textarea {
  min-height: 94px;
  resize: vertical;
  padding: 11px;
  line-height: 1.55;
}

.support-form select:focus,
.support-form textarea:focus {
  border-color: #6ca9f5;
  box-shadow: 0 0 0 4px rgba(23, 124, 243, 0.1);
}

.support-form > div {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 11px;
  margin-top: 16px;
}

.support-form > div button {
  height: 47px;
  font-size: 11px;
}

@media (hover: hover) {
  .help-topics button:hover {
    border-color: #c8dbf1;
    box-shadow: 0 7px 15px rgba(32, 91, 160, 0.09);
  }
}

@media (max-width: 760px) {
  body.help-page {
    padding-top: 10px;
  }

  .help-view {
    width: calc(100% - 20px);
    min-height: 0;
    border-width: 2px;
    border-radius: 31px;
  }

  .help-content {
    padding: 22px 14px 29px;
  }

  .help-header {
    gap: 11px;
  }

  .help-header > button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }

  .help-header h1 {
    font-size: 22px;
  }

  .help-header p {
    font-size: 10px;
  }

  .help-hero {
    margin-top: 22px;
    padding: 23px 15px;
  }

  .help-hero h2 {
    font-size: 21px;
  }

  .help-topics > div {
    gap: 7px;
  }

  .help-topics button {
    min-height: 112px;
    padding: 13px 10px;
  }

  .help-contact-intro {
    grid-template-columns: 46px 1fr;
    padding: 17px;
  }

  .help-contact-intro > button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .help-header p {
    display: none;
  }

  .help-topics > div {
    grid-template-columns: 1fr;
  }

  .help-topics button {
    min-height: 76px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 11px;
  }

  .help-topics button > span {
    grid-row: 1 / 3;
  }

  .help-topics button strong,
  .help-topics button small {
    margin: 0;
  }

  .support-form > div {
    grid-template-columns: 1fr;
  }
}

/* Let every page flow directly on the app background without an outer card. */
.app-shell,
.success-view,
.history-view,
.shared-testi-view,
.account-view,
.profile-view,
.help-view {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
