:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --ink: #1f2a30;
  --muted: #60717b;
  --line: #d7e1e8;
  --brand: #1d68d8;
  --brand-2: #3f8df0;
  --brand-deep: #114fb4;
  --brand-soft: #e9f2ff;
  --warn: #b65a22;
  --safe-top: env(safe-area-inset-top, 0px);
  --sticky-header-height: 56px;
  --sticky-nav-height: 54px;
  --sticky-nav-top: calc(var(--safe-top) + var(--sticky-header-height));
  --feed-sticky-top: calc(var(--sticky-nav-top) + var(--sticky-nav-height) + 6px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(63, 141, 240, 0.16) 0%, rgba(63, 141, 240, 0) 34%),
    linear-gradient(160deg, #edf4ff 0%, #f8fbfd 52%, #eef6f2 100%);
  color: var(--ink);
  overscroll-behavior: none;
}

.app-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: auto -80px 8% auto;
  width: 240px;
  height: 240px;
  background: url("./assets/app-icon.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  filter: saturate(1.1);
  z-index: 0;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(17, 79, 180, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  display: block;
  clip-path: inset(0 round 12px);
  transform: scale(1.12);
  box-shadow: 0 8px 18px rgba(29, 104, 216, 0.18);
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.icon-nav {
  display: flex;
  gap: 4px;
  align-items: end;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, rgba(231, 241, 255, 0.88) 0%, rgba(214, 229, 250, 0.82) 100%);
  padding: 6px 6px 0;
  margin-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  flex-wrap: nowrap;
  position: sticky;
  top: var(--sticky-nav-top);
  z-index: 25;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(17, 79, 180, 0.08);
}

.icon-btn {
  min-width: 72px;
  height: 58px;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(29, 104, 216, 0.1);
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(237, 245, 255, 0.54) 100%);
  cursor: pointer;
  line-height: 1;
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
  flex: 0 0 auto;
  padding: 6px 10px 8px;
  transform: translateY(0);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.icon-btn:hover {
  border-color: rgba(29, 104, 216, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(237, 245, 255, 0.72) 100%);
  box-shadow: 0 8px 18px rgba(29, 104, 216, 0.08);
  transform: translateY(-1px);
}

.icon-btn.active {
  background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
  border-color: rgba(29, 104, 216, 0.24);
  border-bottom-color: #ffffff;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.72) inset, 0 10px 22px rgba(29, 104, 216, 0.08);
  transform: translateY(1px);
  position: relative;
  z-index: 2;
}

.icon-btn.active .nav-label {
  color: var(--brand-deep);
}

.icon-btn.active .nav-glyph {
  background-color: var(--brand);
}

.icon-btn-brand {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.water-card-head-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.water-card-add-btn {
  min-width: 56px;
  width: 56px;
  height: 56px;
  padding: 0;
  font-size: 22px;
}

.nav-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: var(--brand-deep);
  letter-spacing: 0.01em;
}

.nav-glyph {
  width: 22px;
  height: 22px;
  display: block;
  background-color: var(--brand-deep);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.icon-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11.5 12 5l8 6.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 10.5V19h10v-8.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11.5 12 5l8 6.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 10.5V19h10v-8.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon-ratings {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18V10M12 18V6M18 18v-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18V10M12 18V6M18 18v-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.icon-favorites {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 18.4-6.2 3.2 1.2-6.8L2 10l6.9-1L12 2.8 15.1 9l6.9 1-5 4.8 1.2 6.8z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 18.4-6.2 3.2 1.2-6.8L2 10l6.9-1L12 2.8 15.1 9l6.9 1-5 4.8 1.2 6.8z' fill='%23000'/%3E%3C/svg%3E");
}

.icon-add {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.icon-feedback {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5h11A2.5 2.5 0 0 1 20 7.5v9A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='m5.4 6.5 6.1 5 7-5.1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5h11A2.5 2.5 0 0 1 20 7.5v9A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='m5.4 6.5 6.1 5 7-5.1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.header-profile-btn {
  min-width: 44px;
  max-width: 180px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(29, 104, 216, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(29, 104, 216, 0.12);
  padding: 4px 4px 4px 12px;
  transform: translateY(0);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.header-profile-btn:hover {
  border-color: rgba(29, 104, 216, 0.36);
  box-shadow: 0 10px 22px rgba(29, 104, 216, 0.14);
  transform: translateY(-1px);
}

.header-profile-name {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
}

.header-profile-photo,
.header-profile-mark {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}

.header-profile-photo {
  border-radius: 999px;
}

.header-profile-mark {
  border-radius: 10px;
  clip-path: inset(0 round 10px);
  transform: scale(1.14);
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 12px rgba(29, 104, 216, 0.16);
}

.app-header h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.app-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(17, 79, 180, 0.05);
}

.card h2,
.card h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.card h2 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.water-picker-card.selected {
  border-color: var(--brand);
  background: #f2fbff;
}

.report-form-card {
  width: min(100%, 560px);
  margin-inline: auto;
}

.report-form-card > .row.screen-top-actions,
.report-form-card > .filter-card-grid,
.report-form-card > .field,
.report-form-card > .muted,
.report-form-card > .report-form-actions {
  width: min(100%, 420px);
  margin-left: auto;
  margin-right: auto;
}

.report-form-card > .row.screen-top-actions {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.report-form-card .field input[type="file"] {
  width: 100%;
}

.report-form-card {
  padding-bottom: 92px;
}

.report-water-suggestions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.report-water-suggestion {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px 14px;
  cursor: pointer;
  font-size: 14px;
  min-height: 48px;
}

.report-water-suggestion.active {
  border-color: var(--brand);
  background: #f2fbff;
  color: var(--brand);
  font-weight: 700;
}

.suggestion-mark {
  background: #fff2bf;
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

.inline-search-field {
  position: relative;
}

.inline-select-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-select-field select {
  flex: 1 1 auto;
}

.inline-select-field .inline-search-clear {
  position: static;
  transform: none;
  flex: 0 0 auto;
}

.inline-search-field input {
  padding-right: 44px;
}

.inline-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(29, 104, 216, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  color: var(--brand-deep);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.inline-search-clear:hover {
  border-color: rgba(29, 104, 216, 0.36);
  box-shadow: 0 6px 14px rgba(29, 104, 216, 0.08);
  transform: translateY(calc(-50% - 1px));
}

.inline-select-field .inline-search-clear:hover {
  transform: translateY(-1px);
}

.inline-search-clear:active {
  transform: translateY(calc(-50% + 1px)) scale(0.99);
  box-shadow: none;
  filter: saturate(0.98);
}

.inline-select-field .inline-search-clear:active {
  transform: translateY(1px) scale(0.99);
}

.inline-search-clear:focus-visible {
  outline: none;
  border-color: rgba(29, 104, 216, 0.42);
  box-shadow:
    0 0 0 3px rgba(63, 141, 240, 0.16),
    0 8px 18px rgba(29, 104, 216, 0.08);
}

.report-field-error {
  color: #b43f24;
  font-size: 13px;
  margin: 8px 0 0;
}

.grid {
  display: grid;
  gap: 10px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.menu-profile-grid {
  margin-bottom: 10px;
}

.menu-btn,
.btn,
.ghost-btn,
.tab-btn {
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  background: #fff;
  min-height: 42px;
  transform: translateY(0);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.menu-btn {
  min-height: 72px;
  text-align: left;
  font-weight: 700;
}

.btn {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(29, 104, 216, 0.12);
}

.btn.alt {
  background: var(--brand-2);
}

.btn.warn {
  background: linear-gradient(180deg, rgba(237, 245, 255, 0.98) 0%, rgba(223, 236, 255, 0.96) 100%);
  color: var(--brand-deep);
  border-color: rgba(29, 104, 216, 0.18);
  box-shadow: none;
}

.btn.warn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.98) 100%);
  border-color: rgba(29, 104, 216, 0.32);
  box-shadow: 0 8px 18px rgba(29, 104, 216, 0.08);
}

.subscription-locked-btn {
  background: linear-gradient(180deg, rgba(237, 245, 255, 0.98) 0%, rgba(223, 236, 255, 0.96) 100%);
  color: var(--brand-deep);
  border-color: rgba(29, 104, 216, 0.18);
  box-shadow: none;
}

.ad-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(29, 104, 216, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(237,245,255,0.92) 100%);
}

.ad-banner strong {
  color: var(--brand-deep);
}

.inline-ad-card {
  display: grid;
  gap: 6px;
  border-style: dashed;
  border-color: rgba(29, 104, 216, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(237,245,255,0.9) 100%);
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(29, 104, 216, 0.12);
  border: 1px solid rgba(29, 104, 216, 0.18);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

.subscription-badge-compact {
  min-height: 20px;
  padding: 1px 6px;
  font-size: 10px;
  margin-left: 6px;
}

.subscription-locked-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ghost-btn {
  background: #fff;
  color: var(--brand-deep);
  border-color: rgba(29, 104, 216, 0.14);
}

.btn:hover,
.ghost-btn:hover,
.tab-btn:hover,
.menu-btn:hover {
  border-color: rgba(29, 104, 216, 0.34);
  transform: translateY(-1px);
}

.btn:hover {
  box-shadow: 0 10px 22px rgba(29, 104, 216, 0.16);
}

.ghost-btn:hover,
.tab-btn:hover,
.menu-btn:hover {
  box-shadow: 0 8px 18px rgba(29, 104, 216, 0.08);
}

.menu-btn:active,
.btn:active,
.ghost-btn:active,
.tab-btn:active,
.icon-btn:active,
.header-profile-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: none;
  filter: saturate(0.98);
}

.menu-btn:focus-visible,
.btn:focus-visible,
.ghost-btn:focus-visible,
.tab-btn:focus-visible,
.icon-btn:focus-visible,
.header-profile-btn:focus-visible {
  outline: none;
  border-color: rgba(29, 104, 216, 0.42);
  box-shadow:
    0 0 0 3px rgba(63, 141, 240, 0.16),
    0 8px 18px rgba(29, 104, 216, 0.08);
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.screen-top-actions {
  justify-content: flex-end;
  margin-bottom: 8px;
}


.tab-btn.active {
  border-color: var(--brand);
  color: var(--brand-deep);
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(29, 104, 216, 0.16);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.98);
  min-height: 48px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(29, 104, 216, 0.42);
  box-shadow:
    0 0 0 3px rgba(63, 141, 240, 0.14),
    0 6px 14px rgba(29, 104, 216, 0.08);
  background: #ffffff;
}

input[type="file"] {
  min-height: 56px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  color: var(--brand-deep);
}

.field {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.9) 100%);
}

.field .muted:last-child,
.field p:last-child {
  margin-bottom: 0;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.field-head label {
  margin-bottom: 0;
}

.inline-field-action {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-pin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-pin-input {
  width: 132px;
  max-width: 100%;
  flex: 0 0 132px;
  text-align: center;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.auth-pin-row .inline-field-action {
  flex: 0 0 auto;
}
.auth-phone-input {
  width: min(100%, 286px);
}

.auth-screen-card {
  width: min(100%, 440px);
  margin-inline: auto;
  padding: 20px 18px;
}

.auth-screen-card h2 {
  text-align: center;
  margin-bottom: 14px;
}

.auth-screen-card > .tab-row,
.auth-screen-card > .field,
.auth-screen-card > .card,
.auth-screen-card > .checkbox-row,
.auth-screen-card > .muted,
.auth-screen-card > .row {
  width: min(100%, 340px);
  margin-left: auto;
  margin-right: auto;
}

.auth-screen-card > .field,
.auth-screen-card > .card {
  text-align: left;
}

.auth-screen-card > .tab-row {
  justify-content: center;
  margin-bottom: 14px;
}

.auth-screen-card > .row {
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-screen-card > .row > .btn,
.auth-screen-card > .row > .ghost-btn,
.auth-screen-card > .row > .browser-back-btn {
  min-width: 150px;
}

.auth-screen-card .checkbox-row {
  justify-content: center;
  text-align: center;
}

.auth-screen-card > .muted {
  text-align: center;
}

.auth-screen-card .auth-pin-row {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.auth-screen-card .inline-field-action {
  margin-left: auto;
}


@media (min-width: 641px) {
  .auth-phone-input {
    width: 320px;
    max-width: 100%;
  }
}


.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.checkbox-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
}

.checkbox-row span {
  min-width: 0;
}

.report-form-actions {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding-top: 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 247, 249, 0.92) 18%, rgba(244, 247, 249, 1) 100%);
}

.report-form-actions .btn {
  flex: 1 1 auto;
  min-height: 48px;
  font-size: 16px;
}

.pill {
  display: inline-block;
  font-size: 12px;
  color: var(--brand);
  background: #eaf6fb;
  border: 1px solid #c6e8f5;
  border-radius: 999px;
  padding: 4px 8px;
}

.list {
  display: grid;
  gap: 10px;
}

.post-title {
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.post-context-line {
  margin: -2px 0 0;
  line-height: 1.4;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.role-box {
  border: 1px dashed #b8cad5;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.media-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.media-card img,
.media-card video {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.media-zoom-btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.media-card figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  word-break: break-word;
}

.edit-media-card {
  display: grid;
  gap: 8px;
}

.media-remove-btn {
  justify-self: start;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.gallery-screen {
  display: grid;
  gap: 12px;
  min-height: 0;
  min-width: 0;
}

.gallery-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 240px);
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 8px 24px rgba(17, 79, 180, 0.05);
}

.gallery-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.gallery-empty-state {
  margin: 0;
}

.phone-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.phone-gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 10px;
  background: #f3f6f8;
}

.phone-gallery-tile img,
.phone-gallery-tile video,
.phone-gallery-zoom {
  width: 100%;
  height: 100%;
  display: block;
}

.phone-gallery-tile img,
.phone-gallery-tile video {
  object-fit: cover;
}

.phone-gallery-zoom {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.phone-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.phone-gallery-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 7px 6px;
  color: #fff;
  font-size: 11px;
  line-height: 1.1;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0) 0%, rgba(8, 18, 28, 0.64) 100%);
  pointer-events: none;
}

.phone-gallery-tile figcaption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-gallery-tile figcaption .water-link {
  min-width: 0;
  max-width: 58%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font-size: inherit;
  line-height: inherit;
  pointer-events: auto;
}

.phone-gallery-tile figcaption .water-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.gallery-preview,
.gallery-mosaic-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f3f6f8;
  min-width: 0;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.gallery-mosaic-count-1 {
  grid-template-columns: 1fr;
}

.gallery-preview img,
.gallery-preview video,
.gallery-mosaic-tile img,
.gallery-mosaic-tile video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #f3f6f8;
}

.gallery-mosaic-count-1 .gallery-mosaic-tile img,
.gallery-mosaic-count-1 .gallery-mosaic-tile video,
.gallery-zoom-btn img {
  height: 220px;
  object-fit: cover;
}

.gallery-meta {
  display: grid;
  gap: 8px;
}

.media-carousel {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.media-carousel.single {
  grid-template-columns: 1fr;
}

.carousel-stage {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.carousel-stage img,
.carousel-stage video {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  background: #f3f6f8;
}

.carousel-stage .media-zoom-btn img {
  max-height: 420px;
  object-fit: contain;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.carousel-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
}

.feed-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 8px 0 10px;
  display: block;
}

.feed-photo-placeholder {
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 10px;
  padding: 18px 12px;
  margin: 8px 0 10px;
  text-align: center;
  font-size: 13px;
}

.feed-preview-mosaic {
  margin: 8px 0 10px;
  display: grid;
  gap: 6px;
}

.feed-preview-tile {
  position: relative;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f3f6f8;
}

.feed-preview-video,
.feed-preview-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #f3f6f8;
}

.feed-preview-zoom-btn {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.feed-preview-more {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 79, 180, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(17, 79, 180, 0.18);
}

.feed-preview-count-1 {
  grid-template-columns: 1fr;
}

.feed-preview-count-2,
.feed-preview-count-3,
.feed-preview-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-preview-count-1 .feed-preview-tile,
.feed-preview-count-2 .feed-preview-tile:first-child {
  min-height: 220px;
}

.feed-preview-count-1 .feed-preview-video,
.feed-preview-count-1 .feed-preview-image,
.feed-preview-count-2 .feed-preview-video,
.feed-preview-count-2 .feed-preview-image {
  height: 220px;
}

.feed-post {
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.feed-post:hover {
  border-color: #9bc8d8;
}

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.feed-head-main {
  min-width: 0;
}

.feed-sticky-head {
  position: sticky;
  top: var(--feed-sticky-top);
  z-index: 15;
  margin: -16px -16px 10px;
  padding: 12px 16px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.96) 80%, rgba(244, 249, 255, 0.9) 100%);
  border-bottom: 1px solid rgba(29, 104, 216, 0.12);
  backdrop-filter: blur(8px);
}

.feed-sticky-head h2 {
  margin-bottom: 8px;
}

.screen-sticky-head {
  position: sticky;
  top: var(--feed-sticky-top);
  z-index: 15;
  margin: -16px -16px 10px;
  padding: 12px 16px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.96) 80%, rgba(244, 249, 255, 0.9) 100%);
  border-bottom: 1px solid rgba(29, 104, 216, 0.12);
  backdrop-filter: blur(8px);
}

.screen-sticky-head h2 {
  margin-bottom: 8px;
}

.screen-sticky-head .tab-row {
  margin-bottom: 8px;
}

.screen-sticky-head .tab-row:last-child {
  margin-bottom: 0;
}

.screen-sticky-head .field:last-child {
  margin-bottom: 0;
}

.profile-subpage-sticky-head .profile-sections-grid {
  margin-bottom: 10px;
}

.filter-card-grid,
.my-reports-filters {
  display: grid;
  gap: 10px;
}

.filter-card-grid-1 {
  grid-template-columns: minmax(0, 1fr);
}

.filter-card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filter-card-grid-3,
.my-reports-filters {
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(170px, 1fr));
}

.filter-card-field,
.my-reports-filter-field {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.filter-card-field label,
.my-reports-filter-field label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
}

.filter-card-field input,
.filter-card-field select,
.filter-card-field textarea,
.my-reports-filter-field input,
.my-reports-filter-field select {
  min-height: 48px;
  margin: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  line-height: 1.2;
}

.filter-card-field input,
.filter-card-field select,
.my-reports-filter-field input,
.my-reports-filter-field select {
  height: 48px;
  padding: 0 14px;
}

.filter-card-field textarea {
  min-height: 132px;
  padding: 12px 14px;
}

.filter-card-field select,
.my-reports-filter-field select {
  font-weight: 600;
}

.filter-card-field input:focus,
.filter-card-field select:focus,
.filter-card-field textarea:focus,
.my-reports-filter-field input:focus,
.my-reports-filter-field select:focus {
  outline: none;
  border-color: rgba(29, 104, 216, 0.42);
  box-shadow:
    0 0 0 3px rgba(63, 141, 240, 0.16),
    0 6px 14px rgba(29, 104, 216, 0.08);
  background: #ffffff;
}

.rating-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-card {
  display: grid;
  gap: 6px;
}

.ranking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.ranking-card-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ranking-card-title-wrap .post-title {
  margin-bottom: 0;
}

.ranking-index {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(29, 104, 216, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.info-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.9) 100%);
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
}

.water-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
}

.water-star {
  font-size: 18px;
  line-height: 1;
  color: rgba(29, 104, 216, 0.2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.water-star.active {
  color: var(--brand);
}

.rating-report-entry {
  display: grid;
  gap: 6px;
  margin: 0;
}

.rating-report-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.rating-report-top .ghost-btn {
  font-weight: 700;
}

.rating-report-metrics {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.rating-report-metrics .post-metrics-inline {
  gap: 10px;
}

.feed-tab-row {
  margin-bottom: 8px;
}

.feed-sticky-head .tab-btn {
  padding: 8px 10px;
  font-size: 13px;
}

.feed-filter-panel:empty {
  display: none;
}

.water-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.fisher-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.water-pin {
  text-decoration: none;
}

.water-name {
  text-decoration: underline;
}

.icon-like-btn {
  width: 22px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: inline-grid;
  place-items: center;
}

.icon-like-btn .icon-like-shape {
  font-size: 18px;
}

.icon-like-btn.liked {
  background: transparent;
}

.icon-like-shape {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.8px var(--brand-deep);
  transform: translateY(-0.5px);
}

.icon-like-shape::before {
  content: "♡";
}

.icon-like-btn.liked .icon-like-shape {
  color: var(--brand);
  -webkit-text-stroke: 1.8px var(--brand);
}

.icon-like-btn.liked .icon-like-shape::before {
  content: "♥";
}

.icon-stat {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.icon-stat-comment {
  position: relative;
  width: 20px;
  height: 16px;
  border: 2px solid var(--brand-deep);
  border-radius: 6px;
  display: inline-block;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fafdff 0%, #eef6ff 100%);
}

.icon-stat-comment::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border-left: 2px solid var(--brand-deep);
  border-bottom: 2px solid var(--brand-deep);
  background: #fafdff;
  transform: skewY(-25deg) rotate(-8deg);
  box-sizing: border-box;
}

.icon-stat-camera {
  position: relative;
  width: 22px;
  height: 16px;
  border: 2px solid var(--brand-deep);
  border-radius: 5px;
  display: inline-block;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fafdff 0%, #eef6ff 100%);
}

.icon-stat-camera::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  width: 8px;
  height: 5px;
  border: 2px solid var(--brand-deep);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #fafdff;
  box-sizing: border-box;
}

.icon-stat-camera::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--brand-deep);
  border-radius: 999px;
  background: rgba(29, 104, 216, 0.08);
  box-sizing: border-box;
}

.icon-stat-report {
  position: relative;
  width: 16px;
  height: 20px;
  border: 2px solid var(--brand-deep);
  border-radius: 4px;
  display: inline-block;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fafdff 0%, #eef6ff 100%);
}

.icon-stat-report::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--brand-deep);
  border-right: 2px solid var(--brand-deep);
  background: #fafdff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.icon-stat-report::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 3px;
  width: 8px;
  height: 7px;
  border-top: 2px solid rgba(29, 104, 216, 0.5);
  border-bottom: 2px solid rgba(29, 104, 216, 0.25);
  box-sizing: border-box;
}

.stat-group.compact .icon-like-shape {
  font-size: 15px;
}

.stat-group.compact .icon-stat-comment {
  width: 18px;
  height: 14px;
}

.stat-group.compact .icon-stat-comment::before {
  left: 3px;
  bottom: -4px;
  width: 6px;
  height: 6px;
}

.stat-group.compact .icon-stat-camera {
  width: 20px;
  height: 14px;
}

.stat-group.compact .icon-stat-camera::before {
  top: -5px;
  left: 4px;
  width: 7px;
  height: 4px;
}

.stat-group.compact .icon-stat-camera::after {
  top: 2px;
  left: 5px;
  width: 6px;
  height: 6px;
}

.stat-group.compact .icon-stat-report {
  width: 15px;
  height: 18px;
}

.stat-group.compact .icon-stat-report::before {
  width: 6px;
  height: 6px;
}

.stat-group.compact .icon-stat-report::after {
  top: 4px;
  left: 3px;
  width: 7px;
  height: 6px;
}

.stat-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.stat-group.compact {
  gap: 6px;
}

.post-metrics-inline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  line-height: 1;
}

.rating-like-inline {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.rating-like-inline .stat-group.compact {
  gap: 5px;
}

.rating-summary {
  gap: 10px;
}

.stat-count {
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.my-posts-list {
  margin-top: 0;
}

.my-posts-actions {
  margin-bottom: 18px;
}

.profile-sections-grid {
  margin-bottom: 14px;
}

.profile-section-btn {
  min-height: 78px;
}

.profile-section-btn.active {
  border-color: var(--brand);
  background: #eef7fb;
}

.profile-section-btn.active strong,
.profile-section-btn.active .muted {
  color: var(--brand);
}

.profile-avatar-wrap {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.profile-side-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.profile-side-stat {
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  min-height: 76px;
  text-align: center;
}

.profile-side-stat strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.profile-avatar-button {
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  border-width: 1px;
}

.profile-avatar-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #f3f6f8;
  display: block;
}

.profile-avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.profile-avatar-upload {
  cursor: pointer;
  border-style: dashed;
  text-align: center;
  padding: 16px;
}

.profile-avatar-upload:hover {
  border-color: #93c6d9;
  color: var(--brand);
  background: #f2fbff;
}

.profile-avatar-has-photo {
  padding: 0;
  overflow: hidden;
  border-style: solid;
}

.profile-avatar-has-photo img {
  width: 100%;
  height: 100%;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-browser-tabs {
  display: flex;
  gap: 4px;
  align-items: end;
  margin-bottom: 10px;
  padding: 6px 6px 0;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, rgba(231, 241, 255, 0.88) 0%, rgba(214, 229, 250, 0.82) 100%);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  position: relative;
  z-index: 3;
}

.browser-back-btn,
.profile-browser-back {
  align-self: stretch;
  min-width: 58px;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(29, 104, 216, 0.16);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(237, 245, 255, 0.72) 100%);
  padding: 10px 14px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.back-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.7em;
  font-size: 1.18em;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-0.5px);
  text-rendering: geometricPrecision;
}

.browser-back-btn:hover,
.profile-browser-back:hover {
  border-color: rgba(29, 104, 216, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, rgba(237, 245, 255, 0.88) 100%);
}

.profile-browser-tab {
  min-width: 132px;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(29, 104, 216, 0.1);
  border-bottom-color: transparent;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(237, 245, 255, 0.54) 100%);
  padding: 11px 14px 12px;
  text-align: left;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.profile-browser-tab strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
  color: var(--ink);
}

.profile-browser-tab span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
}

.profile-browser-tab.active {
  background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
  border-color: rgba(29, 104, 216, 0.24);
  border-bottom-color: #ffffff;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.72) inset, 0 10px 22px rgba(29, 104, 216, 0.08);
  transform: translateY(1px);
}

.profile-browser-tab.active strong {
  color: var(--brand);
}

.profile-browser-tab:hover {
  border-color: rgba(29, 104, 216, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(237, 245, 255, 0.72) 100%);
}

.profile-info-layout {
  display: grid;
  grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-info-left,
.profile-info-right {
  display: grid;
  gap: 12px;
  align-content: start;
}

.profile-edit-btn {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 9px;
}

.profile-info-left {
  justify-items: stretch;
}

.profile-info-right {
  justify-items: stretch;
}

.profile-info-right > .field,
.profile-info-right > .card,
.profile-info-right > .muted,
.profile-info-right > .row {
  width: 100%;
}

.profile-info-right > .row {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-info-right p {
  margin: 0 0 10px;
}

.profile-info-card {
  border: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.profile-section-card {
  margin-bottom: 0;
  padding: 14px;
}

.profile-section-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.profile-section-body {
  margin-top: 12px;
}

.profile-section-chevron {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(29, 104, 216, 0.08);
  color: var(--brand-deep);
  font-size: 18px;
  line-height: 1;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.profile-data-item {
  padding: 10px 12px;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.profile-data-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.profile-data-item-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-inline-action {
  align-self: flex-start;
  padding: 6px 8px;
  font-size: 12px;
}

.profile-inline-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-icon-action {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}

.profile-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-switch {
  width: 50px;
  height: 30px;
  padding: 3px;
  border: 1px solid rgba(29, 104, 216, 0.18);
  border-radius: 999px;
  background: rgba(29, 104, 216, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: 0 0 auto;
}

.profile-switch.active {
  background: rgba(29, 104, 216, 0.88);
  border-color: rgba(29, 104, 216, 0.88);
}

.profile-switch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 79, 180, 0.18);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.profile-switch.active .profile-switch-thumb {
  transform: translateX(20px);
}

.profile-data-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.profile-bio-block {
  padding: 10px 12px;
  border: 1px solid rgba(29, 104, 216, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.profile-bio-block p {
  margin: 0;
}

.profile-danger-zone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

.profile-danger-zone .row {
  width: 100%;
  margin: 0;
}

.profile-danger-zone .btn.warn {
  width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, rgba(237, 245, 255, 0.98) 0%, rgba(223, 236, 255, 0.96) 100%);
  color: var(--brand-deep);
  border-color: rgba(29, 104, 216, 0.18);
  box-shadow: none;
}

.profile-section-card .row {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-danger-footer {
  width: 100%;
  margin-top: 0;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid rgba(29, 104, 216, 0.12);
}

.danger-text-btn {
  font-size: 12px;
  min-height: auto;
  padding: 0;
  color: var(--brand-deep);
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.danger-text-btn:hover {
  color: var(--brand);
  background: transparent;
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 38, 45, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 1000;
}

.modal-card {
  width: min(640px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.media-lightbox-overlay {
  background: rgba(12, 18, 28, 0.82);
  backdrop-filter: blur(6px);
}

.media-lightbox-card {
  width: min(96vw, 1080px);
  max-height: min(92vh, 980px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(18, 24, 36, 0.96);
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.media-lightbox-head {
  align-items: center;
}

.media-lightbox-head .muted {
  color: rgba(255, 255, 255, 0.72);
}

.media-lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
}

.media-lightbox-stage-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
}

.media-lightbox-stage-wrap.single {
  grid-template-columns: minmax(0, 1fr);
}

.media-lightbox-nav {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.media-lightbox-stage img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(92vh - 96px);
  object-fit: contain;
  border-radius: 12px;
  background: #0f1520;
}

.media-lightbox-meta {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.media-lightbox-scroll-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  :root {
    --sticky-header-height: 56px;
    --sticky-nav-height: 76px;
    --feed-sticky-top: calc(var(--sticky-nav-top) + var(--sticky-nav-height) + 6px);
  }

  .app-shell {
    padding: 10px;
  }

  .app-shell::before {
    width: 180px;
    height: 180px;
    inset: auto -48px 11% auto;
    opacity: 0.04;
  }

  .app-header {
    gap: 10px;
    border-radius: 14px;
    padding: 8px 10px;
    margin-bottom: 10px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .app-header h1 {
    font-size: 22px;
    line-height: 1.02;
  }

  .app-header p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.25;
  }

  .header-profile-btn {
    min-width: 44px;
    height: 42px;
    max-width: 150px;
    gap: 6px;
    padding: 3px 3px 3px 10px;
    border-radius: 999px;
  }

  .header-profile-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .header-profile-photo {
    width: 34px;
    height: 34px;
  }

  .header-profile-name {
    max-width: 86px;
    font-size: 12px;
  }

  .icon-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 5px 5px 0;
    margin-bottom: 10px;
    overflow: visible;
  }

  .icon-btn {
    min-width: 0;
    width: 100%;
    height: 68px;
    padding: 7px 4px 9px;
    border-radius: 12px 12px 0 0;
    gap: 4px;
  }

  .nav-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0;
  }

  .nav-glyph {
    width: 21px;
    height: 21px;
  }

  .profile-browser-tabs {
    gap: 3px;
    padding: 5px 5px 0;
    margin-bottom: 10px;
  }

  .browser-back-btn,
  .profile-browser-back {
    min-width: 52px;
    padding: 9px 12px 11px;
    font-size: 24px;
  }

  .profile-browser-tab {
    min-width: 112px;
    padding: 10px 12px 11px;
  }

  .profile-browser-tab strong {
    font-size: 15px;
  }

  .profile-browser-tab span {
    font-size: 11px;
  }

  .profile-info-card {
    padding-left: 0;
    padding-right: 0;
  }

  .profile-info-left,
  .profile-info-right {
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-info-left {
    gap: 10px;
  }

  .profile-side-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-side-stat {
    min-height: 72px;
    padding: 10px;
  }

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

  .profile-section-card,
  .profile-info-right > .field,
  .profile-info-right > .card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-info-right > .row,
  .profile-section-card .row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-info-right > .row > .btn,
  .profile-info-right > .row > .ghost-btn,
  .profile-section-card .row > .btn,
  .profile-section-card .row > .ghost-btn,
  .profile-section-card .row > .browser-back-btn {
    width: 100%;
    min-width: 0;
  }

  .report-form-card {
    width: min(100%, 100%);
    padding: 16px 14px 98px;
  }

  .report-form-card > .row.screen-top-actions,
  .report-form-card > .filter-card-grid,
  .report-form-card > .field,
  .report-form-card > .muted,
  .report-form-card > .report-form-actions {
    width: min(100%, 340px);
  }

  .report-form-card > .filter-card-grid {
    grid-template-columns: 1fr;
  }

  .report-form-card > .row.screen-top-actions {
    margin-bottom: 8px;
  }

  .report-form-card .report-form-actions {
    padding-left: 0;
    padding-right: 0;
  }

  .report-form-card .report-form-actions .btn {
    width: 100%;
  }

  .profile-info-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-data-grid,
  .profile-side-stats,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .gallery-scroll-area {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
  }

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

  .phone-gallery-tile {
    border: 0;
    border-radius: 0;
  }

  .phone-gallery-tile figcaption {
    padding: 13px 5px 5px;
    font-size: 10px;
  }

  .gallery-screen {
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .gallery-panel {
    min-height: 0;
    margin-top: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .gallery-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 10px;
    border-radius: 12px;
  }

  .gallery-mosaic {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    overflow: hidden;
  }

  .gallery-mosaic-count-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-mosaic-tile {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }

  .gallery-mosaic-count-1 .gallery-mosaic-tile {
    aspect-ratio: 4 / 3;
  }

  .gallery-preview img,
  .gallery-preview video,
  .gallery-mosaic-tile img,
  .gallery-mosaic-tile video,
  .gallery-mosaic-count-1 .gallery-mosaic-tile img,
  .gallery-mosaic-count-1 .gallery-mosaic-tile video,
  .gallery-zoom-btn img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
  }

  .media-lightbox-overlay {
    padding: 0;
    place-items: stretch;
  }

  .media-lightbox-card {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: none;
    grid-template-rows: auto 1fr auto auto;
  }

  .media-lightbox-head {
    gap: 10px;
    align-items: center;
  }

  .media-lightbox-head .ghost-btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 15px;
  }

  .media-lightbox-stage {
    min-height: 0;
    height: 100%;
  }

  .media-lightbox-stage-wrap {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    min-height: 0;
    height: 100%;
    align-items: center;
  }

  .media-lightbox-stage-wrap.single {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .media-lightbox-stage img {
    max-height: calc(100dvh - 160px);
    border-radius: 14px;
  }

  .media-lightbox-scroll-hint {
    padding-bottom: 2px;
    font-size: 13px;
  }

  .card {
    padding: 16px;
    border-radius: 13px;
    margin-bottom: 12px;
  }

  .card h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .card h3 {
    font-size: 18px;
  }

  .feed-sticky-head,
  .screen-sticky-head {
    margin: -14px -14px 8px;
    padding: 8px 12px 8px;
  }

  .feed-sticky-head h2,
  .screen-sticky-head h2 {
    margin-bottom: 6px;
    font-size: 21px;
    line-height: 1.12;
  }

  .feed-tab-row,
  .screen-sticky-head .tab-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -2px 6px;
    padding: 0 2px 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .feed-tab-row::-webkit-scrollbar,
  .screen-sticky-head .tab-row::-webkit-scrollbar {
    display: none;
  }

  .feed-sticky-head .tab-btn,
  .screen-sticky-head .tab-btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 15px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .gallery-screen > .screen-sticky-head.profile-subpage-sticky-head {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0 0 8px;
    padding: 8px 0 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .gallery-screen .profile-browser-tabs,
  .gallery-screen .filter-card-grid {
    width: 100%;
    max-width: 100%;
  }

  .gallery-screen .filter-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .feed-filter-panel {
    margin-top: 2px;
  }

  .field.filter-card-field {
    padding: 12px;
  }

  .feed-list {
    gap: 8px;
  }

  .feed-post {
    padding: 12px;
  }

  .feed-head {
    gap: 8px;
  }

  .post-title {
    font-size: 17px;
    line-height: 1.32;
    margin-bottom: 5px;
  }

  .post-context-line,
  .muted {
    font-size: 14px;
    line-height: 1.42;
  }

  .feed-photo {
    max-height: 220px;
    margin: 6px 0 8px;
    border-radius: 9px;
  }

  .feed-photo-placeholder {
    padding: 16px 12px;
    margin: 6px 0 8px;
    font-size: 14px;
  }

  .feed-post .row,
  .ranking-card-top {
    gap: 6px;
  }

  .ranking-card-title-wrap {
    width: 100%;
  }

  .filter-card-grid-2,
  .filter-card-grid-3,
  .my-reports-filters {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    font-size: 17px;
  }

  .report-form-card {
    padding: 14px 14px 98px;
  }

  .report-form-card .split {
    flex-direction: column;
    align-items: stretch;
  }

  .report-form-card .ghost-btn,
  .report-form-card .btn {
    min-height: 48px;
  }

  .report-water-suggestions {
    max-height: 220px;
    gap: 8px;
  }

  .report-water-suggestion {
    font-size: 17px;
    padding: 15px 16px;
  }

  .screen-sticky-head > .row > .ghost-btn,
  .screen-sticky-head > .row > .btn,
  .feed-sticky-head > .row > .ghost-btn,
  .feed-sticky-head > .row > .btn,
  .rating-report-top .ghost-btn,
  .water-card-head-actions .ghost-btn,
  .water-card-head-actions .btn,
  .profile-section-card .ghost-btn,
  .profile-section-card .btn,
  .row > .ghost-btn,
  .row > .btn {
    min-height: 42px;
    font-size: 16px;
    padding: 10px 13px;
  }

  .screen-sticky-head > .row > .ghost-btn,
  .feed-sticky-head > .row > .ghost-btn,
  .rating-report-top .ghost-btn {
    min-width: 42px;
    font-size: 22px;
    line-height: 1;
    padding-inline: 10px;
  }

  .screen-sticky-head > .row > .browser-back-btn,
  .feed-sticky-head > .row > .browser-back-btn,
  .rating-report-top .browser-back-btn,
  .profile-section-card .browser-back-btn,
  .row > .browser-back-btn {
    min-height: 42px;
    min-width: 46px;
    font-size: 24px;
    padding: 9px 11px 11px;
  }

  .inline-field-action,
  .auth-pin-row .inline-field-action {
    min-height: 34px;
    font-size: 13px;
    padding: 6px 12px;
  }

  .auth-screen-card {
    width: min(100%, 100%);
    padding: 18px 14px;
  }

  .auth-screen-card > .tab-row,
  .auth-screen-card > .field,
  .auth-screen-card > .card,
  .auth-screen-card > .checkbox-row,
  .auth-screen-card > .muted,
  .auth-screen-card > .row {
    width: min(100%, 320px);
  }

  .auth-screen-card .tab-btn {
    min-width: 132px;
    justify-content: center;
    font-size: 16px;
  }

  .auth-screen-card .auth-pin-row {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .auth-screen-card .inline-field-action,
  .auth-screen-card .auth-pin-row .inline-field-action {
    margin-left: 0;
  }

  .auth-screen-card > .row > .btn,
  .auth-screen-card > .row > .ghost-btn,
  .auth-screen-card > .row > .browser-back-btn {
    width: min(100%, 320px);
    min-width: 0;
  }

  .auth-pin-input {
    width: 144px;
    flex-basis: 144px;
    font-size: 18px;
  }

  .auth-phone-input {
    width: min(100%, 320px);
  }

  .filter-card-field label,
  .my-reports-filter-field label,
  label {
    font-size: 13px;
  }

  .report-form-actions {
    position: sticky;
    bottom: -2px;
    margin-inline: -14px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding: 8px;
  }

  .app-header {
    gap: 8px;
    padding: 7px 8px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .app-header h1 {
    font-size: 19px;
  }

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

  .header-profile-btn {
    max-width: 126px;
    padding-left: 8px;
  }

  .header-profile-name {
    max-width: 68px;
    font-size: 11px;
  }

  .icon-nav {
    gap: 3px;
    padding: 4px 4px 0;
  }

  .icon-btn {
    height: 70px;
    padding: 8px 3px 10px;
    gap: 5px;
  }

  .nav-label {
    font-size: 11px;
    line-height: 1.08;
  }

  .nav-glyph {
    width: 20px;
    height: 20px;
  }

  .browser-back-btn,
  .profile-browser-back {
    min-width: 48px;
    padding: 8px 10px 10px;
    font-size: 23px;
  }

  .profile-browser-tab {
    min-width: 104px;
    padding: 9px 10px 10px;
  }

  .profile-browser-tab strong {
    font-size: 14px;
  }

  .profile-browser-tab span {
    font-size: 10px;
  }

  .gallery-card {
    padding: 8px;
  }

  .phone-gallery-grid {
    gap: 2px;
  }

  .gallery-screen .filter-card-grid,
  .phone-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-mosaic {
    gap: 4px;
  }

  .gallery-mosaic-tile {
    border-radius: 9px;
  }

  .feed-sticky-head .tab-btn,
  .screen-sticky-head .tab-btn {
    font-size: 14px;
    padding: 8px 11px;
  }

  .screen-sticky-head > .row > .ghost-btn,
  .screen-sticky-head > .row > .btn,
  .feed-sticky-head > .row > .ghost-btn,
  .feed-sticky-head > .row > .btn,
  .rating-report-top .ghost-btn,
  .water-card-head-actions .ghost-btn,
  .water-card-head-actions .btn,
  .profile-section-card .ghost-btn,
  .profile-section-card .btn,
  .row > .ghost-btn,
  .row > .btn {
    font-size: 15px;
    padding: 9px 12px;
  }

  .auth-screen-card {
    padding: 16px 12px;
  }

  .auth-screen-card .tab-btn {
    min-width: 124px;
    font-size: 15px;
  }

  .auth-screen-card > .tab-row,
  .auth-screen-card > .field,
  .auth-screen-card > .card,
  .auth-screen-card > .checkbox-row,
  .auth-screen-card > .muted,
  .auth-screen-card > .row,
  .report-form-card > .row.screen-top-actions,
  .report-form-card > .filter-card-grid,
  .report-form-card > .field,
  .report-form-card > .muted,
  .report-form-card > .report-form-actions {
    width: min(100%, 100%);
  }
}

.updates-info-card {
  min-height: 100%;
  display: grid;
  gap: 8px;
  align-content: start;
}

.updates-backup-placeholder {
  margin-top: 10px;
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(237, 245, 255, 0.72) 100%);
}

.updates-grid {
  align-items: stretch;
}

.subscription-test-banner {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  border-color: rgba(29, 104, 216, 0.18);
  background:
    linear-gradient(180deg, rgba(233, 242, 255, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
