:root {
  --brand: #0064cc;
  --brand-rgb: 0 100 204;
  --ink: #171a1d;
  --text: #34393f;
  --muted: #6c737c;
  --soft: #f7f8f8;
  --page: #f4f5f6;
  --surface: #ffffff;
  --line: #e1e4e7;
  --line-strong: #d3d7dc;
  --danger: #b42318;
  --danger-soft: #fff2f0;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 4%);
  --shadow-md: 0 10px 28px rgb(16 24 40 / 8%);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(var(--brand-rgb) / 22%);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

[hidden] {
  display: none !important;
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  background: var(--brand);
  padding: 9px;
}

.brand-mark i {
  width: 3px;
  border-radius: 2px;
  background: #fff;
}

.brand-mark i:nth-child(2) {
  width: 5px;
}

.brand-mark i:nth-child(3) {
  width: 2px;
}

.brand > span:last-child {
  display: flex;
  align-items: baseline;
}

.brand b,
.brand small {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

.brand small {
  color: var(--brand);
}

/* Shared controls */
.primary-button,
.secondary-button,
.whatsapp-button,
.google-button,
.hero-primary,
.hero-secondary,
.dark-button,
.outline-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.primary-button,
.whatsapp-button,
.hero-primary,
.dark-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.secondary-button,
.hero-secondary,
.outline-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}

.primary-button:hover:not(:disabled),
.whatsapp-button:hover:not(:disabled),
.hero-primary:hover:not(:disabled),
.dark-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.hero-secondary:hover:not(:disabled),
.outline-button:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgb(16 24 40 / 10%);
  transform: translateY(-1px);
}

.primary-button svg,
.secondary-button svg,
.whatsapp-button svg,
.hero-primary svg,
.hero-secondary svg,
.dark-button svg,
.outline-button svg {
  width: 17px;
  height: 17px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

/* Access */
.access-body {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
}

.access-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.access-shell {
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.access-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
}

.free-pill {
  border: 1px solid rgb(var(--brand-rgb) / 22%);
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 800;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: 58px;
  padding: 50px clamp(34px, 6vw, 72px) 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.access-copy h1 {
  max-width: 650px;
  margin: 18px 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1;
}

.access-copy h1 em {
  color: var(--brand);
  font-style: normal;
}

.access-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.auth-box {
  width: min(560px, 100%);
  margin-top: 26px;
}

.google-button {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.google-button.is-disabled {
  border-color: var(--line);
  background: var(--soft);
  color: #8a9097;
  cursor: not-allowed;
}

.google-g {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  padding: 4px;
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.auth-form label,
.stack-form label {
  display: grid;
  gap: 7px;
  color: #51575f;
  font-size: 14px;
  font-weight: 650;
}

.input-wrap {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
}

.input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 10%);
}

.input-wrap svg {
  width: 17px;
  color: var(--muted);
}

.input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  padding: 11px 0;
  font-size: 14px;
}

.input-wrap input::placeholder {
  color: #a0a5ab;
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form .primary-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 2px;
}

.form-alert {
  margin-top: 13px;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
}

.form-alert.is-error {
  border: 1px solid #efc7c2;
  background: var(--danger-soft);
  color: var(--danger);
}

.form-alert.is-success {
  border: 1px solid rgb(var(--brand-rgb) / 22%);
  background: rgb(var(--brand-rgb) / 7%);
  color: var(--brand);
}

.access-security {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.access-security svg {
  width: 16px;
  flex: none;
  color: var(--brand);
}

.access-card {
  overflow: hidden;
  border-radius: 15px;
  background: var(--brand);
  color: #fff;
}

.access-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  padding: 22px;
}

.access-card-head > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: var(--brand);
}

.access-card-head > div,
.access-feature > span {
  display: flex;
  flex-direction: column;
}

.access-card-head small {
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  font-weight: 650;
}

.access-card-head b {
  margin-top: 4px;
  font-size: 16px;
}

.access-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  padding: 20px 22px;
}

.access-feature:last-child {
  border-bottom: 0;
}

.access-feature > svg {
  width: 21px;
  color: #fff;
}

.access-feature b {
  font-size: 14px;
}

.access-feature small {
  margin-top: 3px;
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
}

/* Main application */
.studio-body {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 18px 14px;
  z-index: 20;
}

.sidebar-brand {
  margin: 1px 10px 18px;
}

.sidebar-account-card {
  border: 1px solid rgb(var(--brand-rgb) / 18%);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(var(--brand-rgb) / 7%), #fff 72%);
  padding: 13px;
}

.sidebar-account-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
}

.avatar,
.profile-avatar,
.post-avatar,
.comment-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.sidebar-account-main .avatar {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.sidebar-account-main > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-account-main b {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-main small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-main button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.sidebar-account-main button:hover {
  background: #fff;
  color: var(--ink);
}

.sidebar-account-main svg {
  width: 17px;
}

.account-plan {
  display: grid;
  width: 100%;
  min-height: 39px;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 0 11px;
  text-align: left;
  cursor: pointer;
}

.account-plan span {
  font-size: 12px;
  font-weight: 700;
}

.account-plan svg {
  width: 15px;
}

.main-nav {
  display: grid;
  min-height: 0;
  flex: 1;
  align-content: start;
  gap: 9px;
  margin-top: 15px;
  overflow-y: auto;
  padding: 0 2px 18px;
  scrollbar-color: rgb(var(--brand-rgb) / 24%) transparent;
  scrollbar-width: thin;
}

.nav-group {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-group:has(.nav-item.is-active) {
  border-color: rgb(var(--brand-rgb) / 24%);
  box-shadow: 0 5px 14px rgb(var(--brand-rgb) / 8%);
}

.nav-group.is-open {
  border-color: rgb(var(--brand-rgb) / 22%);
  background: rgb(var(--brand-rgb) / 4%);
}

.nav-group-title {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow .18s ease, transform .18s ease;
}

.nav-group-title:hover {
  box-shadow: 0 7px 16px rgb(var(--brand-rgb) / 22%);
  transform: translateY(-1px);
}

.nav-group-title svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: #fff;
  stroke-width: 2.1;
}

.nav-group-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-group-title .nav-group-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform .22s ease;
}

.nav-group.is-open .nav-group-chevron {
  transform: rotate(180deg);
}

.nav-group-items {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .22s ease, opacity .16s ease;
}

.nav-group-items > div {
  display: grid;
  min-height: 0;
  overflow: hidden;
  gap: 3px;
  padding: 0 5px;
}

.nav-group.is-open .nav-group-items {
  grid-template-rows: 1fr;
  opacity: 1;
}

.nav-group.is-open .nav-group-items > div {
  padding-top: 5px;
  padding-bottom: 5px;
}

.nav-item {
  position: relative;
  display: grid;
  min-height: 44px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #414a44;
  padding: 0 10px;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.nav-item:hover {
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgb(var(--brand-rgb) / 18%);
}

.nav-item.is-active::before {
  display: none;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  color: var(--brand);
  stroke-width: 1.9;
}

.nav-item span {
  font-size: 14.5px;
  font-weight: 680;
}

.nav-item > b {
  min-width: 24px;
  border-radius: 999px;
  background: #eef0f1;
  color: #737980;
  padding: 3px 6px;
  font-size: 10px;
  text-align: center;
}

.nav-item.is-active > b {
  background: rgb(255 255 255 / 18%);
  color: #fff;
}

.nav-item.is-active svg {
  color: #fff;
}

.admin-nav {
  margin-top: 1px;
}

.app-main {
  min-width: 0;
}

.desktop-topbar {
  position: sticky;
  top: 0;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--brand);
  color: #fff;
  padding: 0 28px;
  box-shadow: 0 2px 8px rgb(16 24 40 / 8%);
  z-index: 14;
}

.topbar-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.topbar-name b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.topbar-name small {
  color: rgb(255 255 255 / 72%);
  font-size: 11px;
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-search {
  display: flex;
  width: min(350px, 32vw);
  height: 40px;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  background: #fff;
  padding: 0 11px;
}

.topbar-search svg {
  width: 17px;
  color: var(--muted);
}

.topbar-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  font-size: 14px;
}

.topbar-search input::placeholder {
  color: #8d939a;
}

.topbar-search kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  padding: 2px 6px;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.topbar-icon {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.topbar-icon:hover {
  background: rgb(255 255 255 / 12%);
}

.topbar-icon svg {
  width: 20px;
}

.topbar-icon > span:not(.notification-count) {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: #fff;
}

.topbar-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-header,
.bottom-nav {
  display: none;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notification-toggle {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.desktop-topbar .notification-count {
  border-color: var(--brand);
  background: #fff;
  color: var(--brand);
}

.notification-panel {
  position: fixed;
  top: 72px;
  right: 20px;
  width: min(410px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 92px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 22px 60px rgb(16 24 40 / 18%);
  z-index: 95;
}

.notification-panel > header,
.notification-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 17px;
}

.notification-panel > header > span {
  display: flex;
  flex-direction: column;
}

.notification-panel > header b {
  color: var(--ink);
  font-size: 15px;
}

.notification-panel > header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.notification-panel > header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
}

.notification-panel > header svg {
  width: 16px;
}

.notification-list {
  max-height: 510px;
  overflow-y: auto;
}

.notification-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) 10px;
  align-items: flex-start;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--soft);
}

.notification-item.is-unread {
  background: rgb(var(--brand-rgb) / 5%);
}

.notification-item-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--brand-rgb) / 10%);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.notification-item-icon svg {
  width: 18px;
}

.notification-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.notification-item b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.notification-item small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-item time {
  margin-top: 5px;
  color: #9299a1;
  font-size: 11px;
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.notification-panel > footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--soft);
  padding: 10px 13px;
}

.notification-panel > footer button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.notification-panel > footer button:last-child {
  color: var(--muted);
}

.notification-panel > footer svg {
  width: 14px;
}

.notification-empty {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  padding: 30px;
  text-align: center;
}

.notification-empty > svg {
  width: 38px;
  height: 38px;
  color: var(--brand);
}

.notification-empty b {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
}

.notification-empty small {
  max-width: 260px;
  margin-top: 5px;
  font-size: 11px;
}

.post-card.is-highlighted {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 12%), var(--shadow-md);
}

.workspace {
  min-width: 0;
  min-height: calc(100vh - 64px);
  background: var(--page);
  padding: 32px clamp(24px, 3.3vw, 48px) 68px;
}

.view {
  width: min(1420px, 100%);
  margin: 0 auto;
  animation: view-in .18s ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-heading > span:first-child,
.panel-head > span {
  display: flex;
  flex-direction: column;
}

.page-heading small,
.panel-head small,
.profile-card > span:last-child,
.google-config-card small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0;
}

.page-heading h1 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(var(--brand-rgb) / 20%);
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 7%);
  color: var(--brand);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.status-pill.admin {
  border-color: rgb(var(--brand-rgb) / 20%);
  background: rgb(var(--brand-rgb) / 7%);
  color: var(--brand);
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.015em;
}

.panel-head > svg {
  width: 21px;
  color: var(--brand);
}

/* Dashboard */
.community-hero {
  display: grid;
  min-height: 250px;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--brand);
  color: #fff;
  padding: clamp(28px, 4vw, 46px);
}

.hero-kicker {
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  font-weight: 700;
}

.community-hero h2 {
  max-width: 720px;
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 760;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.community-hero p {
  max-width: 650px;
  margin: 15px 0 0;
  color: rgb(255 255 255 / 80%);
  font-size: 15px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.community-hero .hero-primary {
  border-color: #fff;
  background: #fff;
  color: var(--brand);
}

.community-hero .hero-secondary {
  border-color: rgb(255 255 255 / 45%);
  background: transparent;
  color: #fff;
}

.hero-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 13px;
  background: rgb(255 255 255 / 9%);
  padding: 24px 18px;
}

.hero-code > svg {
  width: 74px;
  height: 74px;
}

.hero-code > span {
  display: flex;
  flex-direction: column;
}

.hero-code b {
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.hero-code small {
  margin-top: 6px;
  color: rgb(255 255 255 / 72%);
  font-size: 11px;
  font-weight: 700;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.home-stats article {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.home-stats article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
}

.home-stats article > span svg {
  width: 20px;
}

.home-stats article > div {
  display: flex;
  flex-direction: column;
}

.home-stats article b {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.home-stats article small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.home-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 16px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 6px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.link-button svg {
  width: 15px;
}

.home-public-list,
.home-post-list {
  display: grid;
}

.home-public-item,
.home-post-item {
  display: grid;
  width: 100%;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 11px 2px;
  text-align: left;
  cursor: pointer;
}

.home-public-item:last-child,
.home-post-item:last-child {
  border-bottom: 0;
}

.home-public-item:hover,
.home-post-item:hover {
  background: var(--soft);
}

.home-public-item {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.home-public-item > span:first-child {
  display: grid;
  width: 52px;
  height: 52px;
  overflow: hidden;
  place-items: center;
  border-radius: 9px;
  background: var(--soft);
  color: var(--muted);
}

.home-public-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-public-item > span:nth-child(2),
.home-post-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home-public-item b,
.home-post-item b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-public-item small,
.home-post-item small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-public-item strong {
  color: var(--ink);
  font-size: 13px;
}

.home-post-item {
  grid-template-columns: 38px minmax(0, 1fr);
}

.home-post-item > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.home-empty {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.home-empty > svg {
  width: 30px;
  height: 30px;
}

.home-empty > span {
  display: flex;
  flex-direction: column;
}

.home-empty b {
  color: var(--text);
  font-size: 13px;
}

.home-empty small {
  margin-top: 3px;
  font-size: 11px;
}

/* Scanner and forms */
.scanner-layout,
.designer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(370px, .95fr);
  gap: 18px;
}

.reader {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--soft);
}

.reader video {
  width: 100% !important;
  min-height: 360px;
  object-fit: cover;
}

.reader::before,
.reader::after {
  position: absolute;
  inset: 18px;
  border: 2px solid transparent;
  content: "";
  pointer-events: none;
  z-index: 3;
}

.reader::before {
  border-top-color: var(--brand);
  border-left-color: var(--brand);
  clip-path: polygon(0 0, 27% 0, 27% 2px, 2px 2px, 2px 27%, 0 27%);
}

.reader::after {
  border-right-color: var(--brand);
  border-bottom-color: var(--brand);
  clip-path: polygon(73% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 73%, 100% 73%, 100% 100%, 73% 100%);
}

.reader-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
}

.reader-empty > svg {
  width: 50px;
  height: 50px;
  color: #9299a1;
}

.reader-empty b {
  margin-top: 11px;
  color: var(--text);
  font-size: 16px;
}

.reader-empty small {
  margin-top: 5px;
  font-size: 12px;
}

.scanner-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.scanner-actions .primary-button {
  flex: 1;
}

.file-button {
  position: relative;
  cursor: pointer;
}

.file-button input,
.composer-photo input,
.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.manual-scan {
  margin-top: 16px;
}

.manual-scan > label {
  display: block;
  margin-bottom: 7px;
  color: #555c64;
  font-size: 12px;
  font-weight: 650;
}

.manual-scan > div {
  display: grid;
  grid-template-columns: 1fr 46px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
}

.manual-scan input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 13px;
  outline: 0;
}

.manual-scan button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--soft);
  color: var(--brand);
  cursor: pointer;
}

.scanner-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.scanner-message.is-error {
  color: var(--danger);
}

.scanner-message.is-success {
  color: var(--brand);
}

.lookup-state {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--soft);
  padding: 30px;
  text-align: center;
}

.lookup-state > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 12px;
  background: rgb(var(--brand-rgb) / 9%);
  color: var(--brand);
}

.lookup-state > span svg {
  width: 26px;
  height: 26px;
}

.lookup-state b {
  margin-top: 14px;
  color: var(--ink);
  font-size: 16px;
}

.lookup-state small {
  max-width: 360px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.lookup-state.is-loading > span svg {
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  50% {
    opacity: .4;
    transform: scale(.92);
  }
}

.internet-result {
  margin-bottom: 15px;
  border: 1px solid rgb(var(--brand-rgb) / 22%);
  border-radius: 11px;
  background: rgb(var(--brand-rgb) / 6%);
  padding: 15px;
}

.internet-result.is-missing {
  border-color: var(--line);
  background: var(--soft);
}

.internet-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.internet-result-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.internet-result-title > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
}

.internet-result-title svg {
  width: 18px;
}

.internet-result-title > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.internet-result-title small,
.internet-result-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.internet-result-title b {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.internet-source {
  max-width: 180px;
  overflow: hidden;
  flex: none;
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 10%);
  color: var(--brand);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internet-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.internet-result-item {
  border: 1px solid rgb(var(--brand-rgb) / 12%);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.internet-result-item.is-wide {
  grid-column: 1 / -1;
}

.internet-result-item small {
  display: block;
}

.internet-result-item b {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.internet-result-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.lookup-source-trail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.lookup-source-trail svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  color: var(--brand);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form input,
.stack-form textarea,
.stack-form select,
.search-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 12px 13px;
  font-size: 15px;
}

.stack-form textarea {
  resize: vertical;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 10%);
}

.stack-form input:disabled {
  background: var(--soft);
  color: #858b92;
}

.product-photo-editor {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.product-image-preview {
  display: grid;
  min-height: 135px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: #91989f;
}

.product-image-preview img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #fff;
}

.photo-upload {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 11px !important;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--soft);
  padding: 18px;
  cursor: pointer;
}

.photo-upload > svg {
  width: 24px;
  height: 24px;
  color: var(--brand);
}

.photo-upload > span {
  display: flex;
  flex-direction: column;
}

.photo-upload b {
  color: var(--text);
  font-size: 13px;
}

.photo-upload small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.publish-toggle {
  display: grid !important;
  min-height: 72px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px !important;
  border: 1px solid rgb(var(--brand-rgb) / 22%);
  border-radius: 10px;
  background: rgb(var(--brand-rgb) / 6%);
  padding: 14px !important;
  cursor: pointer;
}

.publish-toggle input {
  width: 19px;
  height: 19px;
  accent-color: var(--brand);
}

.publish-toggle > span {
  display: flex;
  flex-direction: column;
}

.publish-toggle b {
  color: var(--ink);
  font-size: 14px;
}

.publish-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.text-button svg {
  width: 14px;
}

.search-field {
  display: flex;
  width: min(380px, 100%);
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
}

.search-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 9%);
}

.search-field svg {
  width: 17px;
  flex: none;
  color: var(--muted);
}

.search-field input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  box-shadow: none !important;
}

/* Product libraries */
.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.community-search {
  width: min(640px, 100%);
  min-height: 46px;
}

.community-toolbar > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.community-toolbar > span svg {
  width: 17px;
  color: var(--brand);
}

.public-products-grid,
.products-grid,
.designs-grid,
.signs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.public-product-card,
.product-card,
.design-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.public-product-card:hover,
.product-card:hover,
.design-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.public-product-media {
  position: relative;
  display: grid;
  height: 240px;
  place-items: center;
  overflow: hidden;
  background: var(--soft);
  padding: 16px;
}

.public-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.public-product-media > svg {
  width: 52px;
  height: 52px;
  color: #9ba1a8;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
}

.public-product-content {
  padding: 16px;
}

.public-category {
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
}

.public-product-content h3 {
  min-height: 40px;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.public-barcode {
  display: block;
  margin-top: 4px;
  color: #8a9097;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.public-product-content > p {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-price {
  display: flex;
  min-height: 34px;
  align-items: baseline;
  gap: 9px;
  margin-top: 10px;
}

.public-price b {
  color: var(--ink);
  font-size: 20px;
}

.public-price del {
  color: #92989f;
  font-size: 12px;
}

.publisher-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.publisher-row > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.publisher-row small {
  color: var(--muted);
  font-size: 11px;
}

.publisher-row small b {
  color: var(--text);
}

.public-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.dark-button,
.outline-button {
  min-height: 39px;
  padding: 0 10px;
  font-size: 12px;
}

.product-card-media {
  position: relative;
  display: grid;
  height: 170px;
  place-items: center;
  overflow: hidden;
  background: var(--soft);
  color: #8f969d;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-media > svg {
  width: 40px;
  height: 40px;
}

.visibility-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #eef0f1;
  color: #666d75;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 700;
}

.visibility-badge.is-public {
  background: rgb(var(--brand-rgb) / 10%);
  color: var(--brand);
}

.visibility-badge svg {
  width: 12px;
  height: 12px;
}

.product-card-body,
.design-card-body {
  padding: 15px;
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-card h3,
.design-card h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .source-tag {
  flex: none;
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 9%);
  color: var(--brand);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 750;
}

.product-card p,
.design-card p {
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-price {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 17px;
}

.barcode-number {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: #596068;
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.barcode-number svg {
  width: 14px;
  color: var(--brand);
}

.card-actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.mini-button {
  display: inline-flex;
  min-height: 36px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #555c64;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mini-button:hover {
  border-color: rgb(var(--brand-rgb) / 32%);
  background: rgb(var(--brand-rgb) / 5%);
  color: var(--brand);
}

.mini-button.is-danger:hover {
  border-color: #efc7c2;
  background: var(--danger-soft);
  color: var(--danger);
}

.mini-button svg {
  width: 14px;
}

.empty-state {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  padding: 30px;
  text-align: center;
}

.empty-state > svg {
  width: 48px;
  height: 48px;
  color: #9aa1a8;
}

.empty-state h2 {
  margin: 15px 0 0;
  color: var(--text);
  font-size: 18px;
}

.empty-state p {
  margin: 7px 0 18px;
  font-size: 13px;
}

/* Designer */
.designer-layout {
  grid-template-columns: minmax(360px, .8fr) minmax(430px, 1.2fr);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.check-grid label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 0 10px;
  cursor: pointer;
}

.check-grid input {
  width: 15px;
  accent-color: var(--brand);
}

.color-input {
  height: 42px;
  padding: 5px !important;
  cursor: pointer;
}

.preview-panel {
  display: flex;
  min-height: 590px;
  flex-direction: column;
}

.label-stage {
  display: grid;
  min-height: 440px;
  flex: 1;
  place-items: center;
  overflow: auto;
  border-radius: 10px;
  background: #eef0f2;
  padding: 35px;
}

.label-preview {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #d9dde1;
  border-radius: 5px;
  background: #fff;
  color: #111;
  box-shadow: 0 14px 30px rgb(16 24 40 / 16%);
  text-align: center;
}

.label-preview.size-50x30 {
  width: 315px;
  height: 189px;
}

.label-preview.size-60x40 {
  width: 360px;
  height: 240px;
}

.label-preview.size-100x50 {
  width: 500px;
  height: 250px;
}

.label-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: var(--label-accent, var(--brand));
}

.label-brand {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.label-name {
  max-width: 85%;
  margin-top: 5px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
}

.label-preview svg {
  width: 78%;
  height: 70px;
  margin-top: 8px;
}

.label-price {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border-radius: 6px;
  background: var(--label-accent, var(--brand));
  color: #fff;
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 900;
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.preview-note svg {
  width: 14px;
}

.design-thumb {
  display: grid;
  min-height: 170px;
  place-items: center;
  background: var(--soft);
  padding: 18px;
}

.design-mini-label {
  position: relative;
  display: flex;
  width: 230px;
  height: 125px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #111;
  padding: 12px;
  text-align: center;
}

.design-mini-label::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--mini-accent, var(--brand));
  content: "";
}

.design-mini-label b {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-mini-label small {
  margin-top: 5px;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Sign designer */
.sign-designer-layout {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(500px, 1.18fr);
  gap: 18px;
  align-items: start;
}

.sign-controls {
  position: sticky;
  top: 82px;
}

.sign-template-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 20px;
}

.sign-template-picker button {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 6px;
  color: var(--muted);
  cursor: pointer;
}

.sign-template-picker button:hover,
.sign-template-picker button.is-active {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 2px rgb(var(--brand-rgb) / 8%);
}

.sign-template-picker button > span {
  position: relative;
  display: grid;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border-radius: 5px;
  background: var(--soft);
  color: var(--ink);
}

.sign-template-picker button > span i {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--brand);
}

.sign-template-picker button > span b {
  font-size: 9px;
}

.sign-template-picker button:nth-child(2) > span {
  justify-items: start;
  padding-left: 7px;
}

.sign-template-picker button:nth-child(2) > span i {
  top: 7px;
  right: 7px;
  left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sign-template-picker button:nth-child(3) > span i {
  inset: 0 auto 0 0;
  width: 17px;
  height: auto;
}

.sign-template-picker button:nth-child(4) > span {
  border: 4px solid var(--brand);
}

.sign-template-picker button:nth-child(4) > span i {
  display: none;
}

.sign-template-picker button:nth-child(5) > span {
  background: var(--brand);
  color: #fff;
}

.sign-template-picker button small {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.sign-controls .stack-form {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.option-row {
  display: flex !important;
  min-height: 54px;
  align-items: center;
  gap: 10px !important;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  padding: 9px 11px;
  cursor: pointer;
}

.option-row input {
  width: 17px;
  flex: none;
  accent-color: var(--brand);
}

.option-row > span {
  display: flex;
  flex-direction: column;
}

.option-row b {
  color: var(--text);
  font-size: 13.5px;
}

.option-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sign-preview-panel {
  min-width: 0;
}

.sign-stage {
  display: grid;
  min-height: 720px;
  place-items: center;
  overflow: auto;
  border-radius: 10px;
  background: #eef0f2;
  padding: 34px;
}

.sign-preview {
  position: relative;
  display: flex;
  width: min(430px, 100%);
  aspect-ratio: 210 / 297;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  padding: 46px 38px;
  box-shadow: 0 20px 45px rgb(16 24 40 / 18%);
  text-align: center;
}

.sign-preview.size-a4-landscape,
.sign-preview.size-letter-landscape {
  width: min(650px, 100%);
  aspect-ratio: 297 / 210;
  padding: 38px 54px;
}

.sign-preview.size-letter-portrait {
  aspect-ratio: 215.9 / 279.4;
}

.sign-preview.size-letter-landscape {
  aspect-ratio: 279.4 / 215.9;
}

.sign-corner {
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  background: var(--brand);
}

.sign-badge {
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  padding: 8px 13px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.sign-eyebrow {
  margin-top: 24px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
}

.sign-preview h2 {
  max-width: 94%;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 47px);
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: .98;
}

.sign-preview p {
  max-width: 86%;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.sign-price-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 23px;
}

.sign-price-block del {
  color: var(--muted);
  font-size: 15px;
}

.sign-price-block strong {
  color: var(--brand);
  font-size: clamp(55px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .95;
}

.sign-barcode {
  width: 55%;
  margin-top: 19px;
}

.sign-barcode svg {
  width: 100%;
  height: 62px;
}

.sign-preview footer {
  position: absolute;
  right: 28px;
  bottom: 22px;
  left: 28px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 10px;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sign-preview.template-minimal {
  align-items: flex-start;
  text-align: left;
}

.template-minimal .sign-corner {
  inset: 24px auto auto 24px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.template-minimal .sign-badge {
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
}

.template-minimal .sign-eyebrow {
  margin-top: 32px;
}

.template-minimal h2,
.template-minimal p {
  max-width: 82%;
  text-align: left;
}

.template-minimal .sign-price-block {
  align-items: flex-start;
}

.template-minimal .sign-barcode {
  align-self: flex-start;
}

.sign-preview.template-split {
  padding-left: 32%;
}

.template-split .sign-corner {
  inset: 0 auto 0 0;
  width: 24%;
  height: auto;
}

.template-split .sign-badge {
  position: absolute;
  top: 35px;
  left: 3%;
  width: 18%;
  background: #fff;
  color: var(--brand);
  padding: 8px 4px;
}

.sign-preview.template-frame {
  border: 12px solid var(--brand);
}

.template-frame .sign-corner {
  display: none;
}

.template-frame .sign-badge {
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
}

.sign-preview.template-price {
  background: var(--brand);
  color: #fff;
}

.template-price .sign-corner {
  display: none;
}

.template-price .sign-badge {
  background: #fff;
  color: var(--brand);
}

.template-price .sign-eyebrow,
.template-price h2,
.template-price p {
  color: #fff;
}

.template-price .sign-price-block {
  min-width: 72%;
  border-radius: 16px;
  background: #fff;
  padding: 15px 25px;
}

.template-price .sign-price-block strong {
  color: var(--brand);
}

.template-price .sign-barcode {
  border-radius: 7px;
  background: #fff;
  padding: 9px;
}

.template-price footer {
  border-color: rgb(255 255 255 / 42%);
  color: #fff;
}

.sign-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.sign-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sign-card h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sign-card p {
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.sign-thumb {
  display: flex;
  min-height: 185px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  background: var(--soft);
  color: var(--ink);
  padding: 22px;
  text-align: center;
}

.sign-thumb span {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sign-thumb b {
  max-width: 92%;
  overflow: hidden;
  margin-top: 7px;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sign-thumb strong {
  margin-top: 8px;
  color: var(--brand);
  font-size: 31px;
  letter-spacing: -.05em;
}

.sign-thumb.template-frame {
  border: 8px solid var(--brand);
}

.sign-thumb.template-price {
  background: var(--brand);
  color: #fff;
}

.sign-thumb.template-price span,
.sign-thumb.template-price strong {
  color: #fff;
}

.print-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Community feed */
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(270px, 340px);
  gap: 18px;
  align-items: start;
}

.post-composer {
  margin-bottom: 14px;
}

.composer-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-head .avatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.composer-head > div {
  display: flex;
  flex-direction: column;
}

.composer-head b {
  color: var(--ink);
  font-size: 15px;
}

.composer-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.post-composer textarea {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  outline: 0;
  padding: 14px;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}

.post-composer textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 9%);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.composer-photo {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  color: var(--brand);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.composer-photo:hover {
  background: rgb(var(--brand-rgb) / 7%);
}

.post-image-preview {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--soft);
}

.post-image-preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.post-image-preview button {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(23 26 29 / 84%);
  color: #fff;
  cursor: pointer;
}

.posts-feed {
  display: grid;
  gap: 14px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.post-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 9px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.post-header > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.post-header b {
  color: var(--ink);
  font-size: 14px;
}

.post-header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.post-header > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #858c93;
  cursor: pointer;
}

.post-header > button:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.post-body {
  color: var(--text);
  padding: 7px 16px 14px;
  font-size: 14px;
  line-height: 1.65;
}

.post-image {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: var(--soft);
}

.post-counts {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding: 11px 16px 8px;
  font-size: 11px;
}

.post-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5px 10px;
}

.post-actions button {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #626971;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.post-actions button:hover {
  background: var(--soft);
}

.post-actions button.is-active {
  color: var(--brand);
}

.post-actions svg {
  width: 17px;
}

.post-comments {
  display: grid;
  gap: 9px;
  padding: 12px 16px 16px;
}

.comment-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.comment-row > div {
  width: fit-content;
  max-width: 100%;
  border-radius: 10px;
  background: var(--soft);
  padding: 8px 10px;
}

.comment-row b {
  color: var(--ink);
  font-size: 11px;
}

.comment-row p {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.comment-row small {
  display: block;
  margin-top: 3px;
  color: #8a9097;
  font-size: 9px;
}

.comment-form {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
}

.comment-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  outline: 0;
  padding: 10px 13px;
  font-size: 12px;
}

.comment-form input:focus {
  border-color: var(--brand);
}

.comment-form button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.comment-form button svg {
  width: 15px;
}

.posts-empty {
  min-height: 280px;
}

.community-guide {
  position: sticky;
  top: 84px;
}

.community-guide > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
}

.community-guide > span svg {
  width: 24px;
  height: 24px;
}

.community-guide h2 {
  margin: 15px 0 0;
  color: var(--ink);
  font-size: 19px;
}

.community-guide p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.community-guide ul {
  display: grid;
  gap: 10px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.community-guide li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4d545b;
  font-size: 12px;
}

.community-guide li svg {
  width: 16px;
  color: var(--brand);
}

/* Account and administration */
.account-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 680px);
  gap: 18px;
  align-items: start;
}

.profile-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 34px 20px;
  text-align: center;
}

.profile-avatar {
  width: 74px;
  height: 74px;
  font-size: 27px;
}

.profile-card h2 {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 19px;
}

.profile-card p {
  margin: 5px 0 17px;
  color: var(--muted);
  font-size: 13px;
}

.profile-card > span:last-child {
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 750;
}

.form-section-title {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 15px;
  font-size: 12.5px;
  font-weight: 750;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.stat-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 17px;
  box-shadow: var(--shadow-sm);
}

.stat-card span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stat-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card b {
  margin-top: 4px;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -.04em;
}

.stat-card > svg {
  width: 25px;
  height: 25px;
  flex: none;
  color: var(--brand);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

td {
  color: #555c64;
  font-size: 12px;
}

.user-cell {
  display: grid;
  min-width: 170px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.user-cell > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.admin-user-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-cell b {
  color: var(--ink);
  font-size: 12px;
}

.user-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.activity-list {
  display: grid;
}

.activity-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 11px 3px;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
}

.activity-item svg {
  width: 16px;
}

.activity-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.activity-item b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-config-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.google-config-card > svg {
  width: 27px;
  height: 27px;
  color: var(--brand);
}

.google-config-card > span {
  display: flex;
  flex-direction: column;
}

.google-config-card b {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.google-config-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.admin-tabs button:hover,
.admin-tabs button.is-active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.admin-tabs svg {
  width: 16px;
}

.admin-section {
  animation: view-in .16s ease both;
}

.admin-overview-grid,
.admin-moderation-grid,
.admin-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 10px;
}

.admin-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.admin-chart-legend span:nth-child(2) i {
  opacity: .58;
}

.admin-chart-legend span:nth-child(3) i {
  opacity: .28;
}

.admin-growth-chart {
  display: grid;
  height: 230px;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 8px 0;
}

.growth-day {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) 28px;
  align-items: end;
  gap: 7px;
  text-align: center;
}

.growth-bars {
  display: flex;
  height: 100%;
  align-items: end;
  justify-content: center;
  gap: 3px;
}

.growth-bars i {
  width: min(10px, 28%);
  min-height: 5px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}

.growth-bars .is-products {
  opacity: .58;
}

.growth-bars .is-posts {
  opacity: .28;
}

.growth-day small {
  color: var(--muted);
  font-size: 9px;
}

.admin-broadcast .primary-button {
  width: 100%;
}

.admin-activity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-toolbar .search-field {
  width: min(480px, 100%);
}

.admin-toolbar select,
.admin-role-select {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 11px;
  font-size: 11px;
  outline: 0;
}

.admin-role-select {
  min-width: 120px;
  min-height: 34px;
}

.admin-role-select:focus,
.admin-toolbar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 9%);
}

.admin-users-table th,
.admin-users-table td {
  white-space: nowrap;
}

.admin-users-table td:nth-child(4) {
  white-space: normal;
}

.user-cell b em {
  margin-left: 4px;
  border-radius: 4px;
  background: rgb(var(--brand-rgb) / 9%);
  color: var(--brand);
  padding: 3px 5px;
  font-size: 8px;
  font-style: normal;
  text-transform: uppercase;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
}

.admin-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.admin-status.is-suspended {
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-content-counts {
  color: var(--muted);
  font-size: 10px;
}

.admin-content-counts b {
  color: var(--text);
}

.admin-row-actions {
  display: flex;
  gap: 5px;
}

.admin-row-actions button {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.admin-row-actions button:hover:not(:disabled) {
  border-color: rgb(var(--brand-rgb) / 28%);
  color: var(--brand);
}

.admin-row-actions button.is-danger:hover:not(:disabled) {
  border-color: #efc7c2;
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-row-actions button:disabled,
.admin-role-select:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.admin-row-actions svg {
  width: 15px;
}

.admin-content-list {
  display: grid;
}

.admin-content-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 12px 1px;
}

.admin-content-item:last-child {
  border-bottom: 0;
}

.admin-content-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
}

.admin-content-icon svg {
  width: 17px;
}

.admin-content-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-content-item b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-content-item small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-content-actions {
  display: flex;
  gap: 5px;
}

.admin-content-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 9px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.admin-content-actions button:hover {
  border-color: rgb(var(--brand-rgb) / 28%);
  color: var(--brand);
}

.admin-content-actions button.is-danger:hover {
  border-color: #efc7c2;
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-content-actions svg {
  width: 13px;
}

.admin-system-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.admin-system-grid .google-config-card {
  margin-top: 0;
}

.system-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.system-facts > div {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  padding: 12px;
}

.system-facts > div > svg {
  width: 18px;
  color: var(--brand);
}

.system-facts span {
  display: flex;
  flex-direction: column;
}

.system-facts small {
  color: var(--muted);
  font-size: 9px;
}

.system-facts b {
  margin-top: 2px;
  color: var(--text);
  font-size: 11px;
}

.admin-empty-row {
  color: var(--muted);
  padding: 26px 12px;
  font-size: 12px;
  text-align: center;
}

/* Toasts */
.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(410px, calc(100% - 44px));
  gap: 11px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  position: relative;
  display: grid;
  min-height: 78px;
  overflow: hidden;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 12px;
  border: 1px solid rgb(var(--brand-rgb) / 22%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(16 24 40 / 14%), 0 2px 6px rgb(16 24 40 / 5%);
  color: var(--text);
  padding: 14px 13px 15px 15px;
  pointer-events: auto;
  animation: toast-in .28s cubic-bezier(.2, .8, .2, 1) both;
}

.toast::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
  content: "";
}

.toast.is-leaving {
  animation: toast-out .2s ease both;
}

.toast.is-error {
  border-color: #efc7c2;
}

.toast.is-error::before {
  background: var(--danger);
}

.toast-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--brand-rgb) / 10%);
  color: var(--brand);
}

.toast-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.toast.is-error .toast-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.toast-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.toast-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.toast-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.toast-close {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  align-self: start;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.toast-close:hover {
  background: var(--soft);
  color: var(--ink);
}

.toast-close svg {
  width: 15px;
  height: 15px;
}

.toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--brand);
  transform-origin: left;
  animation: toast-progress var(--toast-duration) linear both;
}

.toast.is-error .toast-progress {
  background: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(14px, 10px, 0) scale(.98);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translate3d(18px, 0, 0) scale(.98);
  }
}

@keyframes toast-progress {
  to {
    transform: scaleX(0);
  }
}

/* Responsive */
@media (max-width: 1280px) {
  .public-products-grid,
  .products-grid,
  .designs-grid,
  .signs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .community-hero {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .hero-code {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 1120px) {
  .home-layout,
  .feed-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .community-guide {
    position: static;
  }

  .scanner-layout,
  .designer-layout,
  .sign-designer-layout,
  .admin-overview-grid,
  .admin-moderation-grid,
  .admin-system-grid {
    grid-template-columns: 1fr;
  }

  .sign-controls {
    position: static;
  }

  .admin-activity-grid {
    grid-template-columns: 1fr;
  }

  .community-hero {
    grid-template-columns: 1fr;
  }

  .hero-code {
    display: none;
  }
}

@media (max-width: 960px) {
  .access-grid {
    grid-template-columns: 1fr;
  }

  .access-card {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, calc(100vw - 36px));
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 20px 0 50px rgb(16 24 40 / 15%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .desktop-topbar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
    padding: 0 16px;
    backdrop-filter: blur(12px);
    z-index: 15;
  }

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

  .mobile-header .brand b,
  .mobile-header .brand small {
    font-size: 16px;
  }

  .notification-panel {
    top: 70px;
    right: 12px;
  }

  .workspace {
    min-height: calc(100vh - 64px);
    padding: 24px 18px 94px;
  }

  .bottom-nav {
    position: fixed;
    inset: auto 12px 12px;
    display: grid;
    height: 66px;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgb(255 255 255 / 97%);
    padding: 5px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    z-index: 18;
  }

  .bottom-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #747b82;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  .bottom-nav button.is-active {
    background: rgb(var(--brand-rgb) / 8%);
    color: var(--brand);
  }

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

@media (max-width: 720px) {
  .access-page {
    padding: 0;
  }

  .access-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .access-header {
    min-height: 66px;
    padding: 0 20px;
  }

  .access-grid {
    padding: 34px 20px 44px;
  }

  .access-copy h1 {
    font-size: clamp(38px, 12vw, 53px);
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .page-heading .search-field,
  .page-heading > .primary-button,
  .page-heading > .secondary-button {
    width: 100%;
  }

  .community-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .public-products-grid,
  .products-grid,
  .designs-grid,
  .signs-grid,
  .home-stats,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .public-product-media {
    height: 280px;
  }

  .product-photo-editor,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .product-photo-editor .product-image-preview {
    min-height: 180px;
  }

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

  .community-hero {
    min-height: 0;
    border-radius: 12px;
    padding: 28px 22px;
  }

  .community-hero h2 {
    font-size: 34px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-primary,
  .hero-secondary {
    justify-content: center;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar select {
    width: 100%;
  }

  .admin-content-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .admin-content-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .sign-stage {
    min-height: 560px;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .form-two,
  .internet-result-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .internet-result-item.is-wide {
    grid-column: auto;
  }

  .panel {
    padding: 16px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .scanner-actions,
  .form-actions {
    display: grid;
  }

  .scanner-actions .primary-button,
  .scanner-actions .secondary-button,
  .scanner-actions .file-button,
  .form-actions .primary-button,
  .form-actions .secondary-button {
    width: 100%;
  }

  .label-stage {
    min-height: 340px;
    padding: 18px;
  }

  .label-preview.size-50x30,
  .label-preview.size-60x40,
  .label-preview.size-100x50 {
    width: min(100%, 340px);
    height: 210px;
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .post-header {
    grid-template-columns: 40px minmax(0, 1fr) 32px;
  }

  .post-avatar {
    width: 40px;
    height: 40px;
  }

  .free-pill {
    font-size: 10px;
  }

  .notification-panel {
    top: 66px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 78px);
  }

  .notification-list {
    max-height: calc(100vh - 205px);
  }

  .notification-panel > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .sign-template-picker {
    grid-template-columns: repeat(3, 1fr);
  }

  .sign-stage {
    min-height: 440px;
    padding: 12px;
  }

  .sign-preview {
    padding: 34px 24px;
  }

  .sign-preview.size-a4-landscape,
  .sign-preview.size-letter-landscape {
    padding: 24px 32px;
  }

  .sign-preview h2 {
    font-size: 29px;
  }

  .sign-price-block strong {
    font-size: 52px;
  }

  .sign-preview.template-frame {
    border-width: 8px;
  }

  .system-facts {
    grid-template-columns: 1fr;
  }

  .admin-content-actions {
    flex-wrap: wrap;
  }

  .admin-tabs button {
    padding: 0 10px;
  }

  .toast-region {
    right: 10px;
    bottom: 88px;
    width: calc(100% - 20px);
  }

  .toast {
    min-height: 74px;
    grid-template-columns: 38px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 13px 11px 14px 13px;
  }

  .toast-icon {
    width: 38px;
    height: 38px;
  }
}

/* Access experience — v1.6 */
.access-v2.access-body {
  background: #fff;
}

.access-v2 .access-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(520px, 1.12fr) minmax(430px, .88fr);
  padding: 0;
}

.access-intro {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  flex-direction: column;
  background: #f3f7f5;
  padding: 30px clamp(32px, 5vw, 72px) 26px;
}

.access-intro::after {
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 70px solid rgb(var(--brand-rgb) / 6%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.access-brandbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.access-v2 .free-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgb(var(--brand-rgb) / 18%);
  background: #fff;
  color: #3d5146;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.access-v2 .free-pill i,
.preview-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.access-intro-copy {
  position: relative;
  width: min(720px, 100%);
  margin: auto 0;
  padding: 55px 0 38px;
  z-index: 1;
}

.access-v2 .eyebrow {
  color: #53645a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.access-intro-copy h1 {
  max-width: 720px;
  margin: 20px 0 18px;
  color: var(--ink);
  font-size: clamp(46px, 5.2vw, 72px);
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: .98;
}

.access-intro-copy > p {
  max-width: 610px;
  margin: 0;
  color: #59645e;
  font-size: 16px;
  line-height: 1.7;
}

.access-benefits {
  display: grid;
  max-width: 660px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.access-benefits > span {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  border-left: 2px solid rgb(var(--brand-rgb) / 25%);
  padding: 5px 7px 5px 12px;
}

.access-benefits svg {
  width: 21px;
  height: 21px;
  grid-row: 1 / 3;
  color: var(--brand);
}

.access-benefits b {
  color: #26322b;
  font-size: 12px;
}

.access-benefits small {
  overflow: hidden;
  margin-top: 2px;
  color: #768079;
  font-size: 10px;
  line-height: 1.35;
}

.access-workspace-preview {
  max-width: 680px;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid #dce5df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 55px rgb(20 50 34 / 10%);
}

.preview-topbar {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6ebe8;
  padding: 0 18px;
}

.preview-topbar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-topbar svg {
  width: 18px;
  color: var(--brand);
}

.preview-topbar b {
  color: #26312b;
  font-size: 12px;
}

.preview-status {
  color: #748078;
  font-size: 10px;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 12px;
  background: #f8faf9;
  padding: 14px;
}

.preview-scan-card,
.preview-community-card {
  border: 1px solid #e2e7e4;
  border-radius: 12px;
  background: #fff;
}

.preview-scan-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 15px;
}

.preview-scan-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: rgb(var(--brand-rgb) / 9%);
  color: var(--brand);
}

.preview-scan-card > span svg {
  width: 21px;
}

.preview-scan-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.preview-scan-card small {
  color: #879089;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.preview-scan-card b {
  margin-top: 3px;
  color: #1f2923;
  font-size: 12px;
}

.preview-scan-card p {
  margin: 3px 0 0;
  color: #78817b;
  font-size: 9px;
  line-height: 1.4;
}

.preview-scan-card > svg {
  width: 20px;
  color: var(--brand);
}

.preview-community-card {
  padding: 13px 14px 0;
}

.preview-community-card header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-community-card header > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.preview-community-card header div {
  display: flex;
  flex-direction: column;
}

.preview-community-card header b {
  color: #242d28;
  font-size: 10px;
}

.preview-community-card header small {
  color: #89918c;
  font-size: 8px;
}

.preview-community-card > p {
  margin: 10px 0 13px;
  color: #48524c;
  font-size: 10px;
  line-height: 1.45;
}

.preview-community-card footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e6ebe8;
  padding: 10px 0;
}

.preview-community-card footer span,
.preview-community-card footer b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #68716b;
  font-size: 8px;
}

.preview-community-card footer span:first-child {
  color: #df2e36;
}

.preview-community-card footer b {
  justify-self: end;
  color: #28322c;
}

.preview-community-card footer svg {
  width: 11px;
  height: 11px;
}

.access-intro-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6c786f;
  font-size: 10px;
  z-index: 1;
}

.access-intro-footer svg {
  width: 14px;
  color: var(--brand);
}

.access-auth-pane {
  display: grid;
  min-height: 100vh;
  overflow-y: auto;
  place-items: center;
  background: #fff;
  padding: 42px clamp(30px, 5vw, 74px);
}

.auth-panel {
  width: min(460px, 100%);
}

.access-mobile-brand {
  display: none;
}

.auth-kicker {
  display: inline-block;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.auth-panel > h2 {
  margin: 12px 0 7px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.auth-panel > p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.access-v2 .auth-tabs {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.access-v2 .auth-tab {
  position: relative;
  min-height: 46px;
  border-radius: 0;
  color: #7b8288;
  font-size: 13px;
}

.access-v2 .auth-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.access-v2 .auth-tab.is-active {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.access-v2 .auth-tab.is-active::after {
  background: var(--brand);
}

.access-v2 .auth-form {
  gap: 15px;
  margin-top: 22px;
}

.access-v2 .auth-form label {
  color: #454c48;
  font-size: 12px;
  font-weight: 700;
}

.access-v2 .input-wrap {
  min-height: 50px;
  border-radius: 10px;
  background: #fff;
  padding: 0 13px;
}

.access-v2 .input-wrap input {
  font-size: 14px;
}

.input-wrap [data-password-toggle] {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7f8782;
  cursor: pointer;
}

.input-wrap [data-password-toggle]:hover {
  background: var(--soft);
  color: var(--ink);
}

.input-wrap [data-password-toggle] svg {
  width: 16px;
}

.access-v2 .auth-form .form-two {
  grid-template-columns: 1fr;
  gap: 15px;
}

.access-v2 .auth-submit {
  min-height: 50px;
  margin-top: 4px;
  border-radius: 10px;
  padding: 0 17px;
}

.access-v2 .auth-divider {
  margin: 20px 0 15px;
}

.access-v2 .google-button {
  min-height: 48px;
  border-radius: 10px;
  font-size: 13px;
}

.access-v2 .access-security {
  justify-content: center;
  margin-top: 18px;
  text-align: center;
}

.auth-free-note {
  display: block;
  margin-top: 10px;
  color: #949a96;
  font-size: 10px;
  text-align: center;
}

/* Community and profile experience — v1.6 */
.avatar.has-photo,
.profile-avatar.has-photo,
.post-avatar.has-photo,
.comment-avatar.has-photo,
.topbar-avatar.has-photo,
.notification-item-icon.has-photo,
.home-post-avatar.has-photo,
.profile-upload-preview.has-photo {
  overflow: hidden;
  background: #edf1ef;
  color: transparent;
}

.avatar.has-photo img,
.profile-avatar.has-photo img,
.post-avatar.has-photo img,
.comment-avatar.has-photo img,
.topbar-avatar.has-photo img,
.notification-item-icon.has-photo img,
.home-post-avatar.has-photo img,
.profile-upload-preview.has-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-avatar.has-photo {
  border: 2px solid rgb(255 255 255 / 75%);
  padding: 0;
}

.notification-item-icon.has-photo {
  padding: 0;
}

.home-post-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.feed-layout {
  grid-template-columns: minmax(0, 780px) minmax(270px, 320px);
  gap: 20px;
}

.post-composer {
  border-radius: 16px;
  box-shadow: none;
}

.posts-feed {
  gap: 12px;
}

.community-post-card {
  overflow: hidden;
  border: 1px solid #dde2df;
  border-radius: 16px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.community-post-card:hover {
  border-color: #cfd7d2;
  box-shadow: 0 10px 26px rgb(27 43 34 / 6%);
  transform: translateY(-1px);
}

.community-post-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 8px;
}

.community-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.community-author > span:last-child,
.post-detail-author > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.community-author b,
.post-detail-author b {
  overflow: hidden;
  color: #202622;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-author small,
.post-detail-author small {
  margin-top: 2px;
  color: #808781;
  font-size: 10px;
}

.community-post-card .post-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  font-size: 12px;
}

.community-delete,
.post-detail-author > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b918d;
  cursor: pointer;
}

.community-delete:hover,
.post-detail-author > button:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.community-delete svg,
.post-detail-author > button svg {
  width: 16px;
}

.community-post-copy {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #303732;
  padding: 4px 16px 14px;
  text-align: left;
  cursor: pointer;
}

.community-post-text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.community-post-copy img {
  display: block;
  width: 100%;
  max-height: 280px;
  margin-top: 13px;
  border-radius: 11px;
  background: var(--soft);
  object-fit: cover;
}

.community-post-footer {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-top: 1px solid #e7eae8;
  padding: 8px 12px 9px 14px;
}

.community-post-footer button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #626a64;
  padding: 0 6px;
  font-size: 12px;
  cursor: pointer;
}

.community-post-footer button:hover {
  background: #f5f7f6;
}

.community-post-footer svg {
  width: 17px;
  height: 17px;
}

.community-like {
  color: #68706b;
}

.community-like.is-active,
.community-like:hover {
  color: #df2d36;
}

.community-like.is-active svg {
  fill: currentColor;
}

.community-view-button {
  justify-self: end;
  color: #202622 !important;
  font-weight: 750;
}

.community-view-button svg {
  width: 15px;
  transition: transform .16s ease;
}

.community-view-button:hover svg {
  transform: translateX(2px);
}

.post-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
}

.post-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(17 23 19 / 58%);
  cursor: default;
  backdrop-filter: blur(3px);
}

.post-modal-panel {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  max-height: min(880px, calc(100vh - 48px));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgb(10 22 15 / 28%);
  animation: post-modal-in .2s ease both;
}

@keyframes post-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
}

.has-open-modal {
  overflow: hidden;
}

.post-modal-header {
  display: flex;
  min-height: 64px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 18px 0 20px;
}

.post-modal-header > span {
  display: flex;
  flex-direction: column;
}

.post-modal-header small {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.post-modal-header b {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.post-modal-header > button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--soft);
  color: #59605b;
  cursor: pointer;
}

.post-modal-header > button:hover {
  background: #edf0ee;
  color: var(--ink);
}

.post-modal-header svg {
  width: 18px;
}

.post-modal-content {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.post-detail {
  padding: 19px 20px 22px;
}

.post-detail-author {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 11px;
}

.post-detail-avatar {
  width: 46px;
  height: 46px;
}

.post-detail-body {
  margin-top: 17px;
  color: #2e3530;
  font-size: 15px;
  line-height: 1.72;
}

.post-detail-image {
  display: block;
  width: 100%;
  max-height: 620px;
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
  object-fit: contain;
}

.post-detail-actions {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.post-detail-actions button,
.post-detail-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #646c66;
  padding: 8px 3px;
  font-size: 12px;
}

.post-detail-actions button {
  cursor: pointer;
}

.post-detail-actions svg {
  width: 17px;
}

.post-detail-comments {
  padding-top: 20px;
}

.post-detail-comments > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.post-detail-comments > header span {
  display: flex;
  flex-direction: column;
}

.post-detail-comments > header small {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.post-detail-comments h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 17px;
}

.post-detail-comments > header > b {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 9%);
  color: var(--brand);
  font-size: 11px;
}

.post-comments-list {
  display: grid;
  gap: 11px;
}

.post-detail .comment-row {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
}

.post-detail .comment-avatar {
  width: 36px;
  height: 36px;
}

.post-detail .comment-row > div {
  border-radius: 11px;
  background: #f4f6f5;
  padding: 9px 11px;
}

.post-detail .comment-row b {
  font-size: 11px;
}

.post-detail .comment-row p {
  font-size: 12px;
}

.post-detail .comment-row small {
  font-size: 9px;
}

.post-detail .comment-form {
  grid-template-columns: 36px minmax(0, 1fr) 38px;
  margin-top: 16px;
}

.post-detail .comment-form input {
  min-height: 42px;
  background: #fff;
}

.post-detail .comment-form button {
  width: 38px;
  height: 38px;
}

.comments-empty {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #dbe1dd;
  border-radius: 11px;
  color: #758079;
}

.comments-empty > svg {
  width: 20px;
  color: var(--brand);
}

.comments-empty > span {
  display: flex;
  flex-direction: column;
}

.comments-empty b {
  color: #404943;
  font-size: 11px;
}

.comments-empty small {
  margin-top: 2px;
  font-size: 9px;
}

.post-modal-loading,
.post-modal-error {
  display: flex;
  min-height: 340px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #68716b;
  padding: 40px;
  text-align: center;
}

.post-modal-loading {
  flex-direction: row;
  gap: 12px;
}

.post-modal-loading > svg {
  width: 28px;
  color: var(--brand);
  animation: modal-spin .8s linear infinite;
}

.post-modal-loading > span {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.post-modal-loading b,
.post-modal-error b {
  color: var(--ink);
  font-size: 14px;
}

.post-modal-loading small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.post-modal-error > svg {
  width: 30px;
  margin-bottom: 10px;
  color: var(--danger);
}

.post-modal-error p {
  margin: 5px 0 16px;
  font-size: 12px;
}

@keyframes modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.account-photo-field {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.profile-upload-preview {
  display: grid;
  width: 72px;
  height: 72px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgb(var(--brand-rgb) / 18%);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.account-photo-field > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-photo-field b {
  color: var(--ink);
  font-size: 13px;
}

.account-photo-field small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.account-photo-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.account-photo-actions .secondary-button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 11px;
  cursor: pointer;
}

.account-photo-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.text-button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #747b76;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  background: var(--soft);
  color: var(--danger);
}

@media (max-width: 1120px) {
  .access-v2 .access-page {
    grid-template-columns: minmax(460px, 1fr) minmax(400px, .9fr);
  }

  .access-intro {
    padding-right: 38px;
    padding-left: 38px;
  }

  .access-benefits {
    grid-template-columns: 1fr;
  }

  .access-benefits > span {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .access-benefits small {
    white-space: normal;
  }

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

@media (max-width: 860px) {
  .access-v2 .access-page {
    display: block;
  }

  .access-intro {
    display: none;
  }

  .access-auth-pane {
    min-height: 100vh;
    padding: 34px 24px;
  }

  .access-mobile-brand {
    display: inline-flex;
    margin-bottom: 48px;
  }
}

@media (max-width: 620px) {
  .access-auth-pane {
    align-items: start;
    padding: 22px 18px 36px;
  }

  .access-mobile-brand {
    margin-bottom: 38px;
  }

  .auth-panel > h2 {
    font-size: 30px;
  }

  .post-modal {
    align-items: end;
    padding: 0;
  }

  .post-modal-panel {
    width: 100%;
    max-height: calc(100vh - 18px);
    border-radius: 18px 18px 0 0;
  }

  .post-detail {
    padding: 16px 15px 20px;
  }

  .community-post-header {
    padding: 13px 13px 7px;
  }

  .community-post-copy {
    padding: 4px 13px 13px;
  }

  .community-post-footer {
    padding-right: 8px;
    padding-left: 9px;
  }

  .community-view-button {
    font-size: 11px !important;
  }

  .account-photo-field {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .profile-upload-preview {
    width: 62px;
    height: 62px;
  }
}

/* Digital loyalty cards and public QR — v1.9 */
.card-builder-steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 14px 17px;
}

.card-builder-steps > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #707872;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.card-builder-steps > span b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #eef1ef;
  color: #68706b;
  font-size: 12px;
}

.card-builder-steps > span.is-active {
  color: var(--brand);
}

.card-builder-steps > span.is-active b {
  background: var(--brand);
  color: #fff;
}

.card-builder-steps > i {
  height: 1px;
  background: #e4e8e5;
}

.loyalty-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  align-items: start;
  gap: 18px;
}

.loyalty-builder-controls {
  display: grid;
  min-width: 0;
  gap: 15px;
}

.loyalty-section {
  box-shadow: none;
}

.loyalty-type-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.loyalty-type-picker button {
  position: relative;
  display: flex;
  min-height: 148px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #69716c;
  padding: 16px 12px 13px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.loyalty-type-picker button:hover {
  border-color: rgb(var(--brand-rgb) / 45%);
  transform: translateY(-1px);
}

.loyalty-type-picker button.is-active {
  border-color: var(--brand);
  background: rgb(var(--brand-rgb) / 5%);
  box-shadow: inset 0 0 0 1px var(--brand);
  color: var(--brand);
}

.loyalty-type-picker button.is-active::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.loyalty-type-picker svg {
  width: 27px;
  height: 27px;
  margin-bottom: 4px;
}

.loyalty-type-picker b {
  color: var(--ink);
  font-size: 16px;
}

.loyalty-type-picker small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.loyalty-type-picker em {
  margin-top: 7px;
  border: 1px solid rgb(var(--brand-rgb) / 22%);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  padding: 3px 7px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}

.loyalty-template-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.loyalty-template-picker button {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

.loyalty-template-picker button.is-active {
  border-color: var(--brand);
  background: rgb(var(--brand-rgb) / 5%);
}

.loyalty-template-picker button > em {
  color: #68706b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.template-mini {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1.55;
  overflow: hidden;
  justify-content: center;
  flex-direction: column;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  padding: 9px;
  text-align: left;
}

.template-mini i {
  position: absolute;
  background: rgb(255 255 255 / 18%);
}

.template-mini b {
  position: relative;
  font-size: 11.5px;
  z-index: 1;
}

.template-mini small {
  position: relative;
  color: rgb(255 255 255 / 72%);
  font-size: 10px;
  z-index: 1;
}

.template-mini.is-classic i {
  inset: 0 0 auto;
  height: 4px;
  background: #174ea6;
}

.template-mini.is-modern i {
  top: -20px;
  right: -8px;
  width: 48px;
  height: 80px;
  transform: rotate(24deg);
}

.template-mini.is-elegant {
  border: 2px solid #174ea6;
  background: #fff;
  color: #183125;
}

.template-mini.is-elegant small {
  color: #69736d;
}

.template-mini.is-elegant i {
  inset: 5px;
  border: 1px solid rgb(var(--brand-rgb) / 25%);
  background: transparent;
}

.template-mini.is-bold {
  align-items: flex-end;
  background: #174ea6;
}

.template-mini.is-bold i {
  inset: 0 50% 0 0;
  background: var(--brand);
}

.template-mini.is-minimal {
  justify-content: flex-end;
  background: #f1f4f2;
  color: #173122;
}

.template-mini.is-minimal small {
  color: #6d766f;
}

.template-mini.is-minimal i {
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

.template-mini.is-ticket {
  border: 1px dashed #fff;
  background: #174ea6;
  text-align: center;
}

.loyalty-media-editor {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 11px;
}

.loyalty-upload-box {
  position: relative;
  display: grid !important;
  min-height: 145px;
  overflow: hidden;
  place-items: center;
  align-content: center;
  gap: 3px !important;
  border: 1px dashed #cad2cd;
  border-radius: 11px;
  background: #fafbfa;
  color: #6c756f !important;
  cursor: pointer;
}

.loyalty-upload-box:hover {
  border-color: var(--brand);
  background: rgb(var(--brand-rgb) / 4%);
}

.loyalty-upload-box > span {
  display: grid;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
}

.loyalty-upload-box.is-cover > span {
  width: 92px;
  border-radius: 9px;
}

.loyalty-upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loyalty-upload-box b {
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
}

.loyalty-upload-box small {
  color: var(--muted);
  font-size: 11px;
}

.loyalty-upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.loyalty-media-actions {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  margin-top: -7px;
}

.loyalty-media-actions .text-button {
  justify-self: center;
}

.loyalty-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.color-field {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 6px 10px;
}

.color-field input {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.color-field b {
  color: #616963;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.loyalty-form-actions {
  flex-wrap: wrap;
}

.loyalty-phone-panel {
  position: sticky;
  top: 82px;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  box-shadow: none;
}

.loyalty-preview-status {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin: 0 auto 15px;
  border-radius: 999px;
  background: #eef2ef;
  color: #6a746d;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 650;
}

.loyalty-preview-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.loyalty-preview-status.is-inactive i {
  background: #818a84;
}

.loyalty-phone {
  position: relative;
  width: min(352px, 100%);
  margin: 0 auto;
  border: 1px solid #56615a;
  border-radius: 38px;
  background: #151b17;
  padding: 7px;
  box-shadow:
    0 28px 60px rgb(14 27 19 / 18%),
    0 5px 14px rgb(14 27 19 / 10%),
    inset 0 0 0 1px rgb(255 255 255 / 12%);
}

.loyalty-phone::before,
.loyalty-phone::after {
  position: absolute;
  content: "";
  background: #59625c;
}

.loyalty-phone::before {
  top: 116px;
  right: -3px;
  width: 2px;
  height: 52px;
  border-radius: 0 3px 3px 0;
}

.loyalty-phone::after {
  top: 104px;
  left: -3px;
  width: 2px;
  height: 76px;
  border-radius: 3px 0 0 3px;
}

.loyalty-phone-screen {
  position: relative;
  display: flex;
  min-height: 580px;
  overflow: hidden;
  flex-direction: column;
  border-radius: 31px;
  background:
    radial-gradient(circle at 100% 0, rgb(var(--brand-rgb) / 8%), transparent 30%),
    linear-gradient(180deg, #fbfcfb 0%, #f1f5f2 100%);
  padding: 11px 13px 15px;
}

.loyalty-phone-statusbar {
  display: flex;
  min-height: 27px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  color: #1e2822;
  padding: 0 8px;
  font-size: 10px;
  z-index: 2;
}

.loyalty-phone-statusbar > b {
  font-size: 10px;
  font-weight: 800;
}

.loyalty-phone-statusbar > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.loyalty-phone-statusbar svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.loyalty-phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 76px;
  height: 21px;
  border-radius: 999px;
  background: #101512;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
  transform: translateX(-50%);
  z-index: 3;
}

.loyalty-phone-appbar {
  display: flex;
  min-height: 50px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e0e6e2;
  padding: 8px 4px 11px;
}

.loyalty-phone-brand,
.loyalty-phone-secure {
  display: inline-flex;
  align-items: center;
}

.loyalty-phone-brand {
  gap: 7px;
  color: #1c2820;
  font-size: 11px;
  letter-spacing: .04em;
}

.loyalty-phone-brand > i {
  width: 10px;
  height: 17px;
  border-right: 2px solid #15241a;
  border-left: 2px solid #15241a;
  box-shadow: inset 2px 0 var(--brand), inset -2px 0 var(--brand);
}

.loyalty-phone-secure {
  gap: 4px;
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 750;
}

.loyalty-phone-secure svg {
  width: 12px;
  height: 12px;
}

.loyalty-wallet-preview {
  width: 100%;
  margin-top: 17px;
}

.loyalty-phone-screen .wallet-card {
  width: 100%;
  min-height: 230px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgb(14 31 21 / 16%);
}

.loyalty-phone-screen .wallet-card-header {
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  padding: 17px 17px 0;
}

.loyalty-phone-screen .wallet-card-logo {
  width: 44px;
  height: 44px;
}

.loyalty-phone-screen .wallet-card-header small {
  font-size: 10px;
}

.loyalty-phone-screen .wallet-card-header b {
  font-size: 15px;
}

.loyalty-phone-screen .wallet-card-content {
  padding-right: 17px;
  padding-left: 17px;
}

.loyalty-phone-screen .wallet-card-content h3 {
  flex: none;
  font-size: 21px;
}

.loyalty-phone-screen .wallet-card-kicker,
.loyalty-phone-screen .wallet-card-value small,
.loyalty-phone-screen .wallet-progress > span b,
.loyalty-phone-screen .wallet-progress > span small,
.loyalty-phone-screen .wallet-card-footer span,
.loyalty-phone-screen .wallet-card-footer b {
  font-size: 10px;
}

.loyalty-phone-screen .wallet-card-value strong {
  font-size: 24px;
}

.loyalty-phone-screen .wallet-card-footer {
  min-height: 31px;
  padding: 0 17px;
}

.loyalty-qr-sheet {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  border: 1px solid #dce4df;
  border-radius: 17px;
  background: rgb(255 255 255 / 94%);
  padding: 13px;
  box-shadow: 0 9px 24px rgb(20 39 27 / 7%);
}

.loyalty-qr-sheet > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.loyalty-qr-sheet small {
  color: var(--brand);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
}

.loyalty-qr-sheet b {
  margin-top: 3px;
  color: #1b251f;
  font-size: 15px;
  letter-spacing: -.015em;
}

.loyalty-qr-sheet p {
  margin: 3px 0 0;
  color: #6f7972;
  font-size: 12px;
  line-height: 1.45;
}

.loyalty-preview-qr {
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border: 1px solid #e2e7e4;
  border-radius: 11px;
  background: #fff;
  padding: 6px;
}

.loyalty-preview-qr canvas,
.loyalty-preview-qr img {
  width: 100% !important;
  height: 100% !important;
}

.loyalty-phone-home {
  width: 112px;
  height: 5px;
  flex: none;
  border-radius: 999px;
  background: #202923;
  margin: auto auto 0;
  opacity: .88;
}

.loyalty-preview-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.loyalty-preview-facts > span {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
}

.loyalty-preview-facts svg {
  width: 19px;
  grid-row: 1 / 3;
  color: var(--brand);
}

.loyalty-preview-facts b {
  color: var(--ink);
  font-size: 13px;
}

.loyalty-preview-facts small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.wallet-card {
  --card-primary: #0064cc;
  --card-secondary: #174ea6;
  --card-text: #ffffff;
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1.586;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border-radius: 18px;
  background: var(--card-primary);
  color: var(--card-text);
  box-shadow: 0 16px 35px rgb(14 31 21 / 20%);
  isolation: isolate;
}

.wallet-card::before,
.wallet-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
}

.wallet-card::before {
  right: -22%;
  bottom: -60%;
  width: 70%;
  aspect-ratio: 1;
  border: 22px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
}

.wallet-card::after {
  top: -44%;
  right: -18%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
}

.wallet-card-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--card-secondary);
  z-index: 2;
}

.wallet-card-cover {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 48%;
  opacity: .26;
  object-fit: cover;
  z-index: -1;
}

.wallet-card-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  padding: 16px 16px 0;
}

.wallet-card-logo {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 10px;
  background: rgb(255 255 255 / 92%);
  color: var(--card-primary);
  font-size: 13px;
  font-weight: 850;
}

.wallet-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-card-header > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.wallet-card-header small {
  overflow: hidden;
  color: var(--card-text);
  opacity: .72;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-card-header b {
  overflow: hidden;
  margin-top: 1px;
  color: var(--card-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-card-type-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  color: var(--card-text);
}

.wallet-card-type-icon svg,
.wallet-card-header > svg {
  width: 15px;
  height: 15px;
}

.wallet-card-content {
  display: flex;
  min-height: 0;
  flex: 1;
  justify-content: center;
  flex-direction: column;
  padding: 12px 16px 7px;
}

.wallet-card-kicker {
  color: var(--card-text);
  opacity: .68;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.wallet-card-content h1,
.wallet-card-content h3 {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--card-text);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-card-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--card-text);
  opacity: .82;
  font-size: 11.5px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wallet-card-value {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.wallet-card-value small {
  color: var(--card-text);
  opacity: .66;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
}

.wallet-card-value strong {
  margin-top: 1px;
  color: var(--card-text);
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -.035em;
}

.wallet-progress {
  margin-top: 8px;
}

.wallet-progress > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wallet-progress > span b,
.wallet-progress > span small {
  overflow: hidden;
  color: var(--card-text);
  opacity: .78;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-progress > i {
  display: block;
  height: 4px;
  overflow: hidden;
  margin-top: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 24%);
}

.wallet-progress > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--card-text);
}

.wallet-card-footer {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  padding: 0 16px;
}

.wallet-card-footer span,
.wallet-card-footer b {
  overflow: hidden;
  color: var(--card-text);
  opacity: .68;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-card-footer b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wallet-card-footer svg {
  width: 8px;
  height: 8px;
}

.wallet-template-modern::after {
  top: -45%;
  right: -5%;
  width: 48%;
  border-radius: 0;
  background: var(--card-secondary);
  transform: rotate(24deg);
}

.wallet-template-modern .wallet-card-accent {
  inset: 0 auto 0 0;
  width: 6px;
  height: auto;
}

.wallet-template-elegant {
  border: 3px solid var(--card-secondary);
}

.wallet-template-elegant::before {
  inset: 10px;
  width: auto;
  aspect-ratio: auto;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 12px;
}

.wallet-template-elegant::after {
  display: none;
}

.wallet-template-bold {
  background: var(--card-secondary);
}

.wallet-template-bold::before {
  inset: 0 42% 0 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--card-primary);
}

.wallet-template-bold::after {
  display: none;
}

.wallet-template-bold .wallet-card-accent {
  background: var(--card-text);
}

.wallet-template-minimal {
  border: 1px solid var(--card-secondary);
  box-shadow: 0 12px 28px rgb(19 37 27 / 13%);
}

.wallet-template-minimal::before,
.wallet-template-minimal::after {
  display: none;
}

.wallet-template-minimal .wallet-card-accent {
  right: auto;
  width: 38px;
  height: 6px;
  margin: 12px 0 0 16px;
  border-radius: 999px;
  background: var(--card-text);
}

.wallet-template-ticket {
  border: 2px dashed var(--card-text);
  border-radius: 12px;
  background: var(--card-secondary);
}

.wallet-template-ticket::before {
  right: -14px;
  bottom: 50%;
  width: 28px;
  border: 0;
  background: #fff;
  transform: translateY(50%);
}

.wallet-template-ticket::after {
  top: 50%;
  right: auto;
  left: -14px;
  width: 28px;
  background: #fff;
  transform: translateY(-50%);
}

.loyalty-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.loyalty-stats article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.loyalty-stats article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
}

.loyalty-stats article > span svg {
  width: 21px;
}

.loyalty-stats article > div {
  display: flex;
  flex-direction: column;
}

.loyalty-stats article b {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.loyalty-stats article small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.loyalty-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.loyalty-program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.loyalty-program-card:hover {
  border-color: #ced6d1;
  box-shadow: 0 13px 32px rgb(21 36 27 / 7%);
  transform: translateY(-1px);
}

.loyalty-program-visual {
  background: #f4f6f5;
  padding: 17px;
}

.loyalty-program-visual .wallet-card {
  border-radius: 13px;
}

.loyalty-program-body {
  padding: 14px;
}

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

.loyalty-program-title > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.loyalty-program-title h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loyalty-program-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.loyalty-program-status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
  padding: 5px 7px;
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
}

.loyalty-program-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.loyalty-program-status.is-inactive {
  background: #f0f1f1;
  color: #7b8287;
}

.loyalty-program-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.loyalty-program-metrics span {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.loyalty-program-metrics b {
  color: var(--ink);
  font-size: 17px;
}

.loyalty-program-metrics small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.loyalty-program-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr .9fr auto;
  gap: 7px;
  margin-top: 12px;
}

.loyalty-program-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #545c56;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.loyalty-program-actions button:first-child {
  border-color: var(--brand);
  background: #fff;
  color: var(--brand);
}

.loyalty-program-actions button.is-whatsapp {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.loyalty-program-actions button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.loyalty-program-actions button:first-child:hover {
  background: rgb(var(--brand-rgb) / 6%);
  color: var(--brand);
}

.loyalty-program-actions button.is-whatsapp:hover {
  background: var(--brand);
  color: #fff;
}

.loyalty-program-actions button.is-danger:hover {
  border-color: #e5b8b2;
  background: var(--danger-soft);
  color: var(--danger);
}

.loyalty-program-actions svg {
  width: 16px;
}

.card-manager-modal,
.balance-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  z-index: 105;
}

.card-manager-backdrop,
.balance-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(15 23 18 / 62%);
  backdrop-filter: blur(3px);
}

.card-manager-panel {
  position: relative;
  display: flex;
  width: min(1120px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(9 21 14 / 30%);
  animation: post-modal-in .2s ease both;
}

.card-manager-header,
.balance-modal-panel > header {
  display: flex;
  min-height: 64px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 18px 0 21px;
}

.card-manager-header > span,
.balance-modal-panel > header > span {
  display: flex;
  flex-direction: column;
}

.card-manager-header small,
.balance-modal-panel header small {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.card-manager-header b,
.balance-modal-panel header b {
  color: var(--ink);
  font-size: 17px;
}

.card-manager-header > button,
.balance-modal-panel header button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--soft);
  color: #5e6660;
  cursor: pointer;
}

.card-manager-header svg,
.balance-modal-panel header svg {
  width: 18px;
}

.card-manager-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

.card-manager-loading {
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted);
}

.card-manager-loading svg {
  width: 27px;
  color: var(--brand);
  animation: modal-spin .8s linear infinite;
}

.card-manager-overview {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
}

.manager-program-card,
.issue-member-card,
.members-panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 15px;
}

.manager-program-card {
  align-self: start;
  background: #f5f7f6;
}

.manager-program-card .wallet-card {
  min-height: 220px;
  border-radius: 14px;
}

.manager-program-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.manager-program-actions a,
.manager-program-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4e5751;
  padding: 0 9px;
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.manager-program-actions svg {
  width: 16px;
}

.manager-program-actions .is-whatsapp {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.manager-public-qr {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.manager-public-qr > div {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  padding: 6px;
}

.manager-public-qr canvas,
.manager-public-qr img {
  width: 100% !important;
  height: 100% !important;
}

.manager-public-qr > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.manager-public-qr b {
  color: var(--ink);
  font-size: 13.5px;
}

.manager-public-qr small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.manager-workspace {
  display: grid;
  gap: 14px;
}

.issue-member-card > header,
.members-panel > header,
.public-card-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.issue-member-card > header > span,
.members-panel > header > span,
.public-card-history > header > span {
  display: flex;
  flex-direction: column;
}

.issue-member-card header small,
.members-panel header small,
.public-card-history header small {
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .11em;
}

.issue-member-card h3,
.members-panel h3,
.public-card-history h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.issue-member-card header > svg,
.members-panel header > svg,
.public-card-history header > svg {
  width: 20px;
  color: var(--brand);
}

.issue-member-form {
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr;
  gap: 10px;
}

.issue-member-form label,
.balance-modal-panel > label {
  display: grid;
  gap: 6px;
  color: #555d57;
  font-size: 13px;
  font-weight: 700;
}

.issue-member-form input,
.balance-modal-panel input,
.balance-modal-panel textarea {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  outline: 0;
  padding: 12px 12px;
  font-size: 14px;
}

.issue-member-form input:focus,
.balance-modal-panel input:focus,
.balance-modal-panel textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 9%);
}

.issue-member-form .form-actions {
  grid-column: 1 / -1;
  margin-top: 1px;
}

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

.members-toolbar .search-field {
  width: min(330px, 100%);
}

.members-toolbar > span {
  color: var(--muted);
  font-size: 11px;
}

.member-list {
  display: grid;
  gap: 8px;
}

.member-row {
  display: grid;
  grid-template-columns: 38px minmax(140px, 1fr) 110px minmax(282px, auto);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.member-row.is-inactive {
  opacity: .65;
}

.member-initial {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--brand-rgb) / 9%);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.member-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.member-identity b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-identity small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-balance {
  display: flex;
  flex-direction: column;
}

.member-balance strong {
  color: var(--ink);
  font-size: 14px;
}

.member-balance small {
  color: var(--muted);
  font-size: 10px;
}

.member-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.member-actions button,
.member-actions a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #646c66;
  text-decoration: none;
  cursor: pointer;
}

.member-actions button:hover,
.member-actions a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.member-actions .is-danger:hover {
  border-color: #e5b9b3;
  color: var(--danger);
}

.member-actions .is-whatsapp {
  border-color: rgb(var(--brand-rgb) / 32%);
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
}

.member-actions svg {
  width: 16px;
}

.member-history {
  grid-column: 2 / -1;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.member-history summary {
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

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

.member-history-list span {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  color: #666e68;
  font-size: 10.5px;
}

.manager-empty-members {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #d9dfdb;
  border-radius: 10px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.manager-empty-members svg {
  width: 24px;
  color: var(--brand);
}

.manager-empty-members b {
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
}

.manager-empty-members small {
  margin-top: 3px;
  font-size: 11.5px;
}

.balance-modal {
  z-index: 110;
}

.balance-modal-panel {
  position: relative;
  display: grid;
  width: min(470px, 100%);
  gap: 14px;
  border-radius: 15px;
  background: #fff;
  padding: 0 18px 18px;
  box-shadow: 0 25px 75px rgb(8 19 12 / 30%);
}

.balance-modal-panel > header {
  margin: 0 -18px;
}

.balance-modal-panel textarea {
  resize: vertical;
}

.balance-modal-panel .form-actions {
  margin-top: 1px;
}

.public-card-body {
  min-height: 100vh;
  background: #f3f5f4;
  color: var(--ink);
  font-size: 16px;
}

.public-card-topbar {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 clamp(18px, 5vw, 70px);
}

.public-card-topbar > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #69716c;
  font-size: 12px;
  font-weight: 700;
}

.public-card-topbar > span svg {
  width: 15px;
  color: var(--brand);
}

.public-card-page {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: minmax(330px, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
  margin: 0 auto;
  padding: 60px 0 70px;
}

.public-wallet-column {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.public-wallet-column .wallet-card {
  width: min(460px, 100%);
}

.public-wallet-column .wallet-card-header {
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  padding: 18px 18px 0;
}

.public-wallet-column .wallet-card-logo {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.public-wallet-column .wallet-card-header small {
  font-size: 10px;
}

.public-wallet-column .wallet-card-header b {
  font-size: 15px;
}

.public-wallet-column .wallet-card-content {
  padding: 14px 18px 10px;
}

.public-wallet-column .wallet-card-kicker,
.public-wallet-column .wallet-card-value small,
.public-wallet-column .wallet-progress > span b,
.public-wallet-column .wallet-progress > span small,
.public-wallet-column .wallet-card-footer span,
.public-wallet-column .wallet-card-footer b {
  font-size: 10px;
}

.public-wallet-column .wallet-card-content h1 {
  font-size: 24px;
}

.public-wallet-column .wallet-card-content p {
  font-size: 13px;
}

.public-wallet-column .wallet-card-value strong {
  font-size: 25px;
}

.public-wallet-column .wallet-card-footer {
  min-height: 34px;
  padding: 0 18px;
}

.public-card-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e9efeb;
  color: #657069;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.public-card-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.public-card-status.is-inactive i {
  background: var(--danger);
}

.public-wallet-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  color: #727b75;
  font-size: 12px;
}

.public-wallet-note svg {
  width: 14px;
  color: var(--brand);
}

.public-card-details {
  min-width: 0;
}

.public-detail-kicker {
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
}

.public-card-details > h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.05em;
  line-height: 1.03;
}

.public-card-details > p {
  max-width: 620px;
  margin: 0;
  color: #68716b;
  font-size: 16px;
  line-height: 1.65;
}

.public-qr-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.public-qr-card > div {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid #edf0ee;
  border-radius: 10px;
  padding: 8px;
}

.public-qr-card canvas,
.public-qr-card img {
  width: 100% !important;
  height: 100% !important;
}

.public-qr-card > span {
  display: flex;
  flex-direction: column;
}

.public-qr-card b {
  color: var(--ink);
  font-size: 16px;
}

.public-qr-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.public-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.public-card-actions .primary-button,
.public-card-actions .secondary-button,
.public-card-actions .whatsapp-button {
  min-height: 46px;
  font-size: 13px;
}

.public-copy-status {
  margin-top: 9px;
  border-radius: 8px;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
}

.public-card-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.public-card-facts > span {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.public-card-facts svg {
  width: 18px;
  grid-row: 1 / 3;
  color: var(--brand);
}

.public-card-facts small {
  color: var(--muted);
  font-size: 11px;
}

.public-card-facts b {
  color: var(--ink);
  font-size: 14px;
}

.public-card-history {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 14px;
}

.public-card-history article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

.public-card-history article > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--brand-rgb) / 8%);
  color: var(--brand);
}

.public-card-history article > span:first-child.is-negative {
  background: var(--danger-soft);
  color: var(--danger);
}

.public-card-history article svg {
  width: 13px;
}

.public-card-history article > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.public-card-history article b {
  color: var(--ink);
  font-size: 13px;
}

.public-card-history article small {
  color: var(--muted);
  font-size: 11px;
}

.public-card-history article strong {
  color: var(--ink);
  font-size: 14px;
}

.public-card-terms {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
}

.public-card-terms summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  color: #4f5752;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.public-card-terms summary svg {
  width: 15px;
}

.public-card-terms p {
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 11px 0 13px;
  font-size: 13px;
  line-height: 1.6;
}

.public-card-missing {
  display: flex;
  width: min(520px, calc(100% - 36px));
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  text-align: center;
}

.public-card-missing > .brand {
  position: absolute;
  top: 28px;
}

.public-card-missing > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  background: var(--danger-soft);
  color: var(--danger);
}

.public-card-missing h1 {
  margin: 18px 0 7px;
  color: var(--ink);
  font-size: 31px;
  letter-spacing: -.04em;
}

.public-card-missing p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1280px) {
  .loyalty-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loyalty-template-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1340px) {
  .loyalty-builder-layout {
    grid-template-columns: 1fr;
  }

  .loyalty-phone-panel {
    position: static;
  }
}

@media (max-width: 1120px) {
  .loyalty-builder-layout {
    grid-template-columns: 1fr;
  }

  .loyalty-phone-panel {
    position: static;
  }

  .loyalty-phone {
    width: min(352px, 100%);
  }

  .card-manager-overview {
    grid-template-columns: 1fr;
  }

  .manager-program-card {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 12px;
  }

  .manager-program-actions,
  .manager-public-qr {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  .card-builder-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .card-builder-steps > i {
    display: none;
  }

  .card-builder-steps > span {
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .loyalty-type-picker,
  .loyalty-color-grid,
  .form-three,
  .loyalty-stats {
    grid-template-columns: 1fr 1fr;
  }

  .loyalty-cards-grid {
    grid-template-columns: 1fr;
  }

  .manager-program-card {
    display: block;
  }

  .manager-program-actions,
  .manager-public-qr {
    grid-column: auto;
  }

  .issue-member-form {
    grid-template-columns: 1fr 1fr;
  }

  .issue-member-form label:first-child {
    grid-column: 1 / -1;
  }

  .member-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .member-balance {
    grid-column: 2;
  }

  .member-actions {
    grid-row: 1 / 3;
    grid-column: 3;
    flex-wrap: wrap;
    max-width: 75px;
  }

  .member-history {
    grid-column: 2 / -1;
  }

  .public-card-page {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 36px;
  }
}

@media (max-width: 560px) {
  .loyalty-type-picker {
    grid-template-columns: 1fr 1fr;
  }

  .loyalty-type-picker button {
    min-height: 136px;
  }

  .loyalty-template-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loyalty-media-editor,
  .loyalty-media-actions,
  .loyalty-color-grid,
  .form-three,
  .loyalty-stats {
    grid-template-columns: 1fr;
  }

  .loyalty-phone {
    width: min(352px, 100%);
    border-radius: 32px;
  }

  .loyalty-phone-screen {
    min-height: 570px;
    border-radius: 26px;
    padding: 10px 10px 13px;
  }

  .loyalty-phone-appbar {
    padding-right: 2px;
    padding-left: 2px;
  }

  .loyalty-qr-sheet {
    grid-template-columns: minmax(0, 1fr) 88px;
    padding: 10px;
  }

  .loyalty-preview-qr {
    width: 88px;
    height: 88px;
  }

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

  .loyalty-program-actions button.is-danger {
    grid-column: auto;
  }

  .card-manager-modal,
  .balance-modal {
    align-items: end;
    padding: 0;
  }

  .card-manager-panel {
    width: 100%;
    max-height: calc(100vh - 12px);
    border-radius: 18px 18px 0 0;
  }

  .card-manager-content {
    padding: 12px;
  }

  .issue-member-form {
    grid-template-columns: 1fr;
  }

  .issue-member-form label:first-child {
    grid-column: auto;
  }

  .member-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .member-balance {
    grid-column: 2;
  }

  .member-actions {
    grid-row: auto;
    grid-column: 1 / -1;
    max-width: none;
    justify-content: flex-start;
    padding-left: 47px;
  }

  .member-history {
    grid-column: 1 / -1;
  }

  .balance-modal-panel {
    width: 100%;
    border-radius: 16px 16px 0 0;
  }

  .public-card-topbar {
    height: 62px;
    padding: 0 15px;
  }

  .public-card-topbar > span {
    font-size: 0;
  }

  .public-card-page {
    width: min(100% - 24px, 520px);
    padding: 28px 0 50px;
  }

  .public-wallet-column .wallet-card-header {
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    padding: 14px 16px 0;
  }

  .public-wallet-column .wallet-card-logo {
    width: 42px;
    height: 42px;
  }

  .public-wallet-column .wallet-card-content {
    padding: 8px 18px 6px;
  }

  .public-wallet-column .wallet-card-content h1 {
    flex-shrink: 0;
    font-size: 22px;
  }

  .public-wallet-column .wallet-card-value {
    margin-top: 5px;
  }

  .public-wallet-column .wallet-progress {
    margin-top: 5px;
  }

  .public-wallet-column .wallet-card-footer {
    min-height: 32px;
  }

  .public-card-details > h2 {
    font-size: 30px;
  }

  .public-qr-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 11px;
    padding: 10px;
  }

  .public-qr-card > div {
    width: 112px;
    height: 112px;
  }

  .public-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .public-card-actions .primary-button {
    grid-column: 1 / -1;
  }

  .public-card-actions .whatsapp-button {
    grid-column: 1 / -1;
  }

  .public-card-actions #print-public-card {
    grid-column: 1 / -1;
  }

  .public-card-facts {
    grid-template-columns: 1fr;
  }
}

@media print {
  .sidebar,
  .desktop-topbar,
  .mobile-header,
  .bottom-nav,
  .page-heading,
  .panel-head,
  .preview-note,
  .toast-region {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .view,
  .preview-panel,
  .label-stage {
    display: block;
    width: auto;
    min-height: 0;
    border: 0;
    background: #fff;
    padding: 0;
    box-shadow: none;
  }

  .public-card-body {
    background: #fff;
  }

  .public-card-topbar,
  .public-card-actions,
  .public-copy-status,
  .public-wallet-note {
    display: none !important;
  }

  .public-card-page {
    display: grid;
    width: 100%;
    grid-template-columns: 92mm minmax(0, 1fr);
    gap: 14mm;
    align-items: start;
    padding: 12mm;
  }

  .public-wallet-column,
  .public-card-details {
    break-inside: avoid;
  }

  .public-card-page .wallet-card {
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .public-qr-card {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
