/* LC Benefits Admin V2 | canonical Booking-aligned stylesheet. */

:root {
  --lc-bg: #fff9fc;
  --lc-surface: rgba(255, 253, 254, .94);
  --lc-surface-strong: #fff;
  --lc-border: rgba(105, 44, 67, .12);
  --lc-border-soft: rgba(105, 44, 67, .08);
  --lc-border-pink: rgba(189, 77, 121, .27);
  --lc-ink: #41202e;
  --lc-muted: #846e78;
  --lc-pink: #bd4d79;
  --lc-pink-dark: #7e294c;
  --lc-rose: #d27398;
  --lc-rose-light: #edb9cd;
  --lc-wine: #6d203e;
  --lc-wine-deep: #471426;
  --lc-success: #477b64;
  --lc-danger: #b63a52;
  --lc-shadow: 0 12px 28px rgba(72, 30, 47, .085);
  --lc-shadow-soft: 0 8px 22px rgba(109, 32, 62, .09);
  --lc-shadow-modal: 0 24px 54px rgba(72, 30, 47, .17);
  --lc-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --lc-display: Georgia, "Times New Roman", serif;
  --lc-soft: #f9e7ef;
  --lc-soft-2: #f7f0f4;
  --lc-success-bg: #e8f2ed;
  --lc-danger-bg: #fbe8ec;
  --lc-warning: #956624;
  --lc-warning-bg: #fff4df;
  --lc-radius: 16px;
  --lc-gap: 12px;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 8% 0%, rgba(210, 114, 151, .12), transparent 26rem),
    linear-gradient(180deg, #fffafd 0%, #faf3f7 100%);
  color: var(--lc-ink);
  font: 12px/1.48 var(--lc-font);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: not-allowed;
  opacity: .48;
}
a {
  color: var(--lc-pink-dark);
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2.4px solid #f39bc4;
  outline-offset: 1.6px;
}
[hidden] {
  display: none !important;
}
#app-error {
  width: 100%;
}
h1, h2, h3, h4, p {
  margin: 0;
}
h2 {
  font-size: 15.2px;
  line-height: 1.25;
}
h3 {
  font-size: 13px;
  line-height: 1.3;
}
h4 {
  font-size: 12px;
  line-height: 1.3;
}
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 896px;
  min-height: 100dvh;
  margin: 0 auto;
  background: rgba(255,250,253,.14);
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 12px max(66px, calc(52px + env(safe-area-inset-right, 0px))) 12px max(66px, calc(52px + env(safe-area-inset-left, 0px)));
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,253,254,.97), rgba(247,235,241,.96));
  border-bottom: 1px solid var(--lc-border);
  box-shadow: var(--lc-shadow-soft);
  backdrop-filter: blur(24px);
}
.header-title {
  min-width: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.header-title h1 {
  margin-top: 3px;
  overflow: hidden;
  color: var(--lc-wine-deep);
  font: italic 500 20px/1.05 var(--lc-display);
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-eyebrow {
  display: block;
  color: #d05d8b;
  font-size: 7px;
  line-height: 1.15;
  letter-spacing: .24em;
  font-weight: 900;
}
.header-icon {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 37px;
  min-width: 37px;
  height: 37px;
  min-height: 37px;
  padding: 0;
  border: 1px solid var(--lc-border);
  border-radius: 11px;
  background: rgba(255,255,255,.86);
  color: var(--lc-wine);
  box-shadow: var(--lc-shadow-soft);
  font-size: 10px;
  font-weight: 800;
}
.header-icon:hover:not(:disabled) {
  background: var(--lc-soft);
  border-color: rgba(189,77,121,.28);
}
.app-main {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  padding: 17.6px 12.8px calc(86px + env(safe-area-inset-bottom, 0px));
  background-color: var(--lc-bg);
  background-image: linear-gradient(180deg, rgba(255,250,253,.46), rgba(255,250,253,.62)),
    url("../assets/admin-soft-floral-wallpaper.webp");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}
#app-view {
  width: min(100%, 712px);
  margin: 0 auto;
  max-width: 712px;
}
.header-action {
  left: auto;
  right: max(16px, env(safe-area-inset-right, 0px));
  font: 600 19px/1 var(--lc-font);
  color: var(--lc-wine);
}
.app-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: min(calc(100% - 16px), 696px);
  min-height: 0;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid rgba(105,44,67,.12);
  background: linear-gradient(180deg, rgba(255,253,254,.94), rgba(247,235,241,.96));
  box-shadow: 0 20px 44px rgba(72,30,47,.17);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(105,44,67,.13);
  border-radius: 20px;
}
.app-bottom-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 47px;
  gap: 3px;
  padding: 5px 2px 6px;
  border: 0;
  border-radius: 13px;
  color: #8a747d;
  font-size: clamp(8px, 2.08vw, 9.6px);
  font-weight: 620;
  text-decoration: none;
  text-align: center;
}
.app-bottom-nav a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-basis: 18px;
}
.app-bottom-nav a.active {
  background: linear-gradient(180deg, rgba(250,233,241,.92), rgba(249,229,238,.76));
  color: #7b2346;
  box-shadow: inset 0 0 0 1px rgba(189,77,121,.08);
}
.app-bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 31%;
  right: 31%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #8b2a50, #d7749c);
}
.app-bottom-nav a:hover {
  background: rgba(249,231,239,.72);
}
.page-heading {
  margin: 0 0 14px;
  color: var(--lc-ink);
  font: 750 16px/1.25 var(--lc-font);
  letter-spacing: -.015em;
}
.overview-balance {
  margin: 0 0 8px;
  padding: 12px 13px;
  border: 1px solid rgba(105,44,67,.105);
  border-radius: 12px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 4px 13px rgba(72,30,47,.05);
}
.overview-summary {
  margin-bottom: 8px;
  padding: 12px 13px;
}
.overview-summary .summary-row {
  margin-top: 0;
}
.overview-summary > p {
  margin-top: 8px;
  font-size: 10.4px;
  margin: 6px 0 0;
}
.card, .list-row, .stat-card {
  min-width: 0;
  border: 1px solid rgba(105,44,67,.10);
  border-radius: var(--lc-radius);
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(249,237,243,.80));
  box-shadow: var(--lc-shadow);
  backdrop-filter: blur(11px);
}
.card {
  padding: 13.6px;
  margin-bottom: 11.2px;
}
.card h2, .card h3 {
  margin-top: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 9.6px;
  margin-bottom: 9.6px;
}
.stat-card {
  position: relative;
  min-height: 72px;
  padding: 13.6px;
  overflow: hidden;
  border: 1px solid rgba(105,44,67,.12);
  border-radius: 16px;
  background: rgba(255, 252, 254, .84);
  box-shadow: 0 12px 26px rgba(72,30,47,.055);
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg, #ef9dbc, #7d2347);
  display: block;
}
.stat-card::after {
  content: "BENEFIT";
  position: absolute;
  right: 7px;
  bottom: -4px;
  color: rgba(109,32,62,.04);
  font: italic 500 22px/1 var(--lc-display);
  display: none;
}
.stat-label {
  color: var(--lc-muted);
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0;
}
.stat-value {
  margin-top: 6px;
  color: var(--lc-ink);
  font: 760 18px/1.1 var(--lc-font);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.page-intro {
  margin: -7px 0 14px;
  color: var(--lc-muted);
  font-size: 10.8px;
}
.page-section {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 21px 2px 10px;
  color: var(--lc-wine-deep);
  font: italic 500 21px/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
  text-transform: none;
}
.page-section::before {
  content: "";
  width: 31px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #7f2448, #e7a6bf);
  display: block;
  flex: 0 0 31px;
}
.eyebrow {
  color: #d15d8a;
  font-size: 7px;
  letter-spacing: .24em;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 19px 0 10px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--lc-wine-deep);
  font: italic 500 21px/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
  text-transform: none;
}
.section-heading h2::before {
  content: "";
  width: 31px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #7f2448, #e7a6bf);
  display: block;
}
.soft-panel {
  padding: 13px;
  border: 1px solid rgba(189,77,121,.16);
  border-radius: var(--lc-radius);
  background: rgba(249,231,239,.48);
}
.muted {
  color: var(--lc-muted);
}
.balance-number {
  margin: 5px 0 7px;
  color: var(--lc-ink);
  font: 780 18px/1.15 var(--lc-font);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  font-size: 20px;
}
.mini-label {
  color: var(--lc-muted);
  font-size: 9.7px;
  font-weight: 740;
  letter-spacing: .015em;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin-top: 7px;
  font-size: 10.2px;
}
.summary-row strong {
  color: var(--lc-ink);
}
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 37px;
  padding: 8px 12px;
  border: 1px solid rgba(105,44,67,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.80);
  color: var(--lc-ink);
  font-size: 11.2px;
  font-weight: 740;
  text-align: center;
  box-shadow: inset 0 1px rgba(255,255,255,.65);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover:not(:disabled) {
  background: rgba(249,231,239,.86);
  border-color: rgba(189,77,121,.26);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, #913258 0%, #6d203e 58%, #511529 100%);
  color: #fff;
  border-color: rgba(109,32,62,.92);
  box-shadow: 0 10px 22px rgba(109,32,62,.20), inset 0 1px rgba(255,255,255,.14);
  font-weight: 760;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #9e3b63, #70213f);
  border-color: var(--lc-wine);
}
.btn-danger {
  background: var(--lc-danger-bg);
  color: var(--lc-danger);
  border-color: #ffd5dc;
}
.btn-sm {
  min-height: 37px;
  padding: 8px 12px;
  font-size: 11.2px;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9.6px 0;
  align-items: center;
}
.btn-row .btn {
  flex: 0 1 auto;
}
.action-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(105,44,67,.105);
  border-radius: 12px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 4px 13px rgba(72,30,47,.05);
  color: var(--lc-ink);
  font-size: 11px;
  font-weight: 760;
  text-align: left;
  backdrop-filter: blur(11px);
  min-height: 55px;
}
.action-tile.primary {
  background: rgba(249,231,239,.45);
  border-color: rgba(189,77,121,.18);
  color: var(--lc-ink);
}
.action-tile:hover {
  border-color: rgba(189,77,121,.22);
  background: #fff;
}
.action-tile small {
  display: block;
  margin-top: 3px;
  color: var(--lc-muted);
  font-size: 10px;
  font-weight: 400;
}
.action-tile .arrow {
  flex: 0 0 auto;
  color: var(--lc-rose);
  font-size: 19px;
  line-height: 1;
}
.action-tile.primary .arrow {
  color: var(--lc-pink);
}
.form-field {
  min-width: 0;
  margin-bottom: 11.2px;
}
.form-field label {
  display: block;
  margin-bottom: 4.8px;
  color: var(--lc-muted);
  font-size: 8.8px;
  font-weight: 730;
  letter-spacing: .025em;
}
.form-field input:not([type="checkbox"]), .form-field select, .form-field textarea, .search-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8.8px 10.4px;
  border: 1px solid var(--lc-border);
  border-radius: 9.6px;
  background: rgba(255,255,255,.82);
  color: var(--lc-ink);
  font-size: 11.2px;
}
.form-field input:not([type="checkbox"]), .form-field select, .search-input {
  min-height: 36.8px;
}
.form-field textarea {
  min-height: 72px;
  resize: vertical;
}
.form-field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-right: 7px;
  vertical-align: middle;
  accent-color: var(--lc-pink);
}
.form-field input::placeholder, .search-input::placeholder {
  color: #a28f98;
}
.form-hint {
  margin-top: 4px;
  color: var(--lc-muted);
  font-size: 9.8px;
  line-height: 1.35;
}
.form-error {
  margin: 6px 0;
  color: var(--lc-danger);
  font-size: 9.8px;
  line-height: 1.35;
}
.search-shell {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-shell::before {
  content: "⌕";
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-53%);
  color: var(--lc-muted);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}
.search-shell input {
  padding-left: 34px;
  background: #fff;
}
.search-shell input:focus {
  border-color: rgba(189,77,121,.42);
  outline: 2px solid rgba(189,77,121,.10);
  outline-offset: 0;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9.6px;
}
.filter-bar {
  padding: 13.6px;
  border-radius: 16px;
  background: rgba(255,255,255,.91);
  border-color: rgba(105,44,67,.105);
  box-shadow: 0 4px 13px rgba(72,30,47,.05);
}
.filter-bar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 37px;
}
.filter-bar-toggle strong {
  color: var(--lc-ink);
  font-size: 10.6px;
  font-weight: 750;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 9.6px;
  margin-top: 9.6px;
  padding-top: 9.6px;
  border-top: 1px solid var(--lc-border);
}
.filter-grid[hidden] {
  display: none;
}
.filter-bar .btn-row {
  margin: 11px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--lc-border);
}
.segmented, .tab-bar {
  display: flex;
  gap: 0;
  padding: 0;
  border: 1px solid var(--lc-border);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.segmented {
  margin: 4px 0 12px;
}
.segmented button, .tab-bar button {
  position: relative;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--lc-border);
  border-radius: 0;
  background: transparent;
  color: var(--lc-muted);
  font-size: 10.8px;
  font-weight: 700;
  transition: background .15s, color .15s;
}
.segmented button:last-child, .tab-bar button:last-child {
  border-right: 0;
}
.segmented button:hover, .tab-bar button:hover {
  background: rgba(247,236,242,.45);
  color: var(--lc-wine);
}
.segmented button {
  flex: 1;
}
.segmented button.active, .tab-bar button.active {
  background: var(--lc-soft);
  color: var(--lc-wine-deep);
  box-shadow: inset 0 -2px var(--lc-pink);
}
.segmented button:focus-visible, .tab-bar button:focus-visible {
  z-index: 1;
  outline: 2px solid rgba(189,77,121,.28);
  outline-offset: -2px;
}
.list-row {
  position: relative;
  min-height: 55px;
  margin-bottom: 7px;
  padding: 11.2px 13px 11.2px 15px;
  overflow: visible;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  border-radius: 16px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 4px 13px rgba(72,30,47,.05);
  gap: 9.6px;
}
.list-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg, var(--lc-rose-light), var(--lc-wine));
  display: none;
}
.list-row:hover {
  border-color: rgba(189,77,121,.22);
  box-shadow: 0 7px 18px rgba(72,30,47,.075);
  transform: none;
}
.list-row .row-title {
  margin-bottom: 3px;
  color: var(--lc-wine-deep);
  font-size: 11.6px;
  font-weight: 740;
  overflow-wrap: anywhere;
  font: italic 500 14px/1.15 var(--lc-display);
}
.list-row .row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 3px 0;
  color: var(--lc-muted);
  font-size: 10.4px;
}
.list-row-readonly {
  cursor: default;
}
.list-row-readonly:hover {
  border-color: rgba(105,44,67,.105);
  box-shadow: 0 4px 13px rgba(72,30,47,.05);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(247,244,245,.96);
  color: var(--lc-muted);
  font-size: 9.3px;
  font-weight: 730;
  white-space: nowrap;
  min-height: 21px;
  border: 1px solid rgba(105,44,67,.10);
  line-height: 1.2;
}
.badge-success {
  background: rgba(21,124,89,.08);
  color: var(--lc-success);
  border-color: rgba(21,124,89,.14);
}
.badge-danger {
  background: rgba(182,47,80,.08);
  color: var(--lc-danger);
  border-color: rgba(182,47,80,.14);
}
.badge-warning {
  background: rgba(136,96,21,.09);
  color: var(--lc-warning);
  border-color: rgba(136,96,21,.16);
}
.badge-pink {
  background: rgba(189,77,121,.07);
  color: var(--lc-wine);
  border-color: rgba(189,77,121,.13);
}
.rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
}
.rule-row .rule-value {
  color: var(--lc-wine);
  font: 780 14px/1.15 var(--lc-font);
  letter-spacing: -.01em;
}
.rule-row .rule-name {
  color: var(--lc-ink);
  font: 740 11.6px/1.25 var(--lc-font);
  letter-spacing: 0;
}
.rule-row .rule-detail {
  color: var(--lc-muted);
  font-size: 10.2px;
}
.rule-row .rule-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.list-row .btn {
  margin-top: 5px;
}
.tab-bar {
  margin-bottom: 15px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab-bar button {
  flex: 1 0 auto;
  min-height: 36.8px;
  white-space: nowrap;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 2px;
  padding-top: 3px;
}
.pagination-bar .muted {
  font-size: 10px;
}
.state-box {
  padding: 11.2px 13px;
  border: 1px dashed var(--lc-border-pink);
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  box-shadow: none;
  color: var(--lc-muted);
  text-align: left;
  border-color: rgba(105,44,67,.105);
  font-size: 10.4px;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.state-error {
  color: var(--lc-danger);
}
.fatal-error {
  padding: 25vh 20px;
}
.spinner {
  width: 18px;
  height: 18px;
  margin: 0 auto 10px;
  border: 3px solid #ffe0ed;
  border-top-color: var(--lc-pink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 9px;
  border-width: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast-container {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: calc(100% - 24px);
  max-width: 420px;
  pointer-events: none;
}
.toast {
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 9.6px;
  box-shadow: 0 8px 22px rgba(43,22,31,.13);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  transition: opacity .3s;
}
.toast-success {
  background: #157c59;
}
.toast-error {
  background: #b62f50;
}
.toast-warning {
  background: #886015;
}
.toast-fade {
  opacity: 0;
}
.kv-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.kv-table td {
  padding: 9px 5px;
  border-bottom: 1px solid var(--lc-border);
  vertical-align: top;
  overflow-wrap: anywhere;
  border-bottom-color: rgba(105,44,67,.08);
  font-size: 10.4px;
  line-height: 1.35;
}
.kv-table td:first-child {
  width: 38%;
  color: var(--lc-muted);
  font-size: 9.8px;
  font-weight: 720;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9.6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 10px;
  border: 1px solid rgba(105,44,67,.08);
  border-radius: 9px;
  background: rgba(247,244,245,.75);
  color: var(--lc-ink);
  line-height: 1.45;
  word-break: break-word;
}
body.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(43,31,36,.34);
  backdrop-filter: blur(4px);
}
.modal-sheet {
  display: flex;
  flex-direction: column;
  width: min(100%, 610px);
  max-height: calc(96dvh - env(safe-area-inset-top, 0px));
  border: 1px solid rgba(105,44,67,.13);
  border-radius: 16px 16px 0 0;
  background: rgba(252,249,250,.995);
  box-shadow: 0 -12px 34px rgba(43,22,31,.13);
  overflow: hidden;
  border-color: rgba(105,44,67,.11);
}
.modal-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 51.2px;
  padding: 9.6px 13.6px;
  border-bottom: 1px solid rgba(105,44,67,.09);
  background: rgba(255,255,255,.96);
  border-bottom-color: rgba(105,44,67,.09);
}
.modal-head h2 {
  flex: 1;
  margin: 0;
  color: var(--lc-ink);
  font: 760 15px/1.2 var(--lc-font);
  letter-spacing: -.01em;
  font-size: 14px;
  line-height: 1.15;
}
.modal-close {
  appearance: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--lc-border);
  border-radius: 9.6px;
  background: rgba(249,231,239,.42);
  color: var(--lc-ink);
  font-size: 18px;
  border-color: rgba(105,44,67,.12);
}
.modal-close:hover {
  background: var(--lc-soft);
}
.modal-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13.6px 13.6px calc(13.6px + env(safe-area-inset-bottom, 0px));
  overflow-wrap: anywhere;
}
.modal-content > .card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.modal-content form > .btn-row:last-child, .modal-content form > .btn:last-child {
  position: sticky;
  bottom: -14px;
  z-index: 2;
  padding: 9px 0 4px;
  background: var(--lc-bg);
}
.modal-content form > .btn-row:last-child > .btn {
  flex: 1;
}
.accordion-section {
  margin: 0 0 8px;
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.accordion-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  padding: 11px;
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.accordion-section > summary::-webkit-details-marker {
  display: none;
}
.accordion-section > summary::after {
  content: "⌄";
  color: var(--lc-pink);
  font-size: 15px;
}
.accordion-section[open] > summary::after {
  transform: rotate(180deg);
}
.accordion-section > .accordion-content {
  padding: 3px 11px 10px;
}
.accordion-section[open] > summary {
  margin-bottom: 9px;
  border-bottom: 1px solid var(--lc-border);
}
.hero {
  position: relative;
  margin-bottom: 17px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(189,77,121,.16);
  border-radius: 19px;
  background: radial-gradient(circle at 88% 10%, rgba(210,115,152,.24), transparent 35%),
    linear-gradient(135deg, rgba(255,253,254,.90), rgba(248,231,239,.80));
  box-shadow: 0 14px 31px rgba(72,30,47,.09);
  backdrop-filter: blur(14px);
}
.hero::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 76px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lc-wine), var(--lc-rose-light));
}
.hero::after {
  content: "PRIVILEGES";
  position: absolute;
  right: -6px;
  bottom: -9px;
  color: rgba(109,32,62,.045);
  font: italic 500 32px/1 var(--lc-display);
  pointer-events: none;
}
.hero h2 {
  margin: 5px 0 5px;
  color: var(--lc-wine-deep);
  font: italic 500 25px/1.02 var(--lc-display);
  letter-spacing: -.045em;
}
.hero p {
  color: var(--lc-muted);
  font-size: 10.4px;
}
.dashboard-hero {
  padding: 17px 15px;
  margin-bottom: 10px;
}
.dashboard-hero h2 {
  margin: 6px 0 5px;
  color: var(--lc-wine-deep);
  font: italic 500 27px/1.02 var(--lc-display);
  letter-spacing: -.05em;
}
.dashboard-hero p {
  font-size: 11px;
}
.user-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9.6px;
  margin-bottom: 10px;
  padding: 13.6px;
  overflow: hidden;
  border: 1px solid rgba(105,44,67,.10);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(249,237,243,.80));
  box-shadow: var(--lc-shadow);
  backdrop-filter: blur(11px);
}
.user-avatar {
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(189,77,121,.16);
  border-radius: 11px;
  background: linear-gradient(145deg, #f8e4ed, #fff9fc);
  color: var(--lc-wine);
  font: 750 14px/1 var(--lc-font);
  box-shadow: none;
  flex-basis: 46px;
}
.user-identity > div:last-child {
  min-width: 0;
}
.user-identity h2 {
  margin: 0;
  color: var(--lc-ink);
  font: 760 15px/1.2 var(--lc-font);
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.15;
}
.user-identity small {
  display: block;
  margin-top: 2px;
  color: var(--lc-muted);
  font-size: 10.4px;
  overflow-wrap: anywhere;
}
.user-identity .user-ids {
  font-size: 10px;
}
.user-hit {
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}
.user-hit .row-meta {
  gap: 4px 10px;
}
.user-hit-id {
  color: var(--lc-muted);
  font-size: 10px;
}
.row-original-name {
  margin: -2px 0 4px;
  color: var(--lc-muted);
  font-size: 10.4px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.user-search-results {
  margin-top: 10px;
}
.user-search-results > .btn {
  width: 100%;
}
.selected-user {
  margin-bottom: 9.6px;
  padding: 11.2px 13px;
  border: 1px solid rgba(189,77,121,.18);
  border-radius: 16px;
  background: var(--lc-soft);
}
.selected-user strong {
  display: block;
  overflow-wrap: anywhere;
}
.selected-user small {
  display: block;
  color: var(--lc-muted);
  font-size: 10.4px;
}
@media (min-width: 720px) {
  .app-main {
    padding: 26px 24px calc(105px + env(safe-area-inset-bottom, 0px));
  }
  .modal-backdrop {
    align-items: center;
    padding: 16px;
  }
  .modal-sheet {
    max-height: calc(100dvh - 56px);
    border-radius: 16.8px;
  }
}
@media (max-width: 390px) {
  .app-main {
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    padding-top: 14px;
    padding: 17.6px 12.8px calc(86px + env(safe-area-inset-bottom, 0px));
  }
  .tab-bar button {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 10px;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    gap: 8px;
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 10px;
  }
  .rule-audience-grid {
    grid-template-columns: 1fr;
  }
  .app-header {
    min-height: 82px;
    padding-right: 57px;
    padding-left: 57px;
    padding: 12px 54px;
  }
  .header-icon {
    left: 12px;
  }
  .header-action {
    left: auto;
    right: 12px;
  }
  .header-title h1 {
    font-size: 20px;
  }
  .header-eyebrow {
    font-size: 6.4px;
    letter-spacing: .16em;
    display: block;
  }
  .app-bottom-nav a {
    min-height: 47px;
    font-size: clamp(8px, 2.08vw, 9.6px);
  }
  .app-bottom-nav a svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .rule-validity-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .btn-row > .btn {
    flex-basis: 100%;
  }
  .kv-table td:first-child {
    width: 34%;
  }
  .app-header::after {
    right: 14px;
    font-size: 50px;
  }
  .hero,
  .dashboard-hero {
    min-height: 132px;
    padding: 16px 13.6px;
    margin-bottom: 17.6px;
  }
  .hero h2,
  .dashboard-hero h2 {
    font-size: 25px;
  }
  .hero p,
  .dashboard-hero p {
    font-size: 12.5px;
  }
  .page-section,
  .section-heading h2 {
    font-size: 15px;
  }
  .app-bottom-nav {
    width: min(calc(100% - 16px), 696px);
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.app-action-footer {
  position: fixed;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(calc(100% - 16px), 696px);
  min-height: 0;
  padding: 8px;
  border-top: 1px solid rgba(105,44,67,.12);
  background: rgba(255,251,253,.94);
  box-shadow: 0 15px 38px rgba(74,29,47,.12);
  backdrop-filter: none;
  border-top-color: rgba(105,44,67,.10);
  border: 1px solid rgba(105,44,67,.13);
  border-radius: 20px;
}
.app-action-footer .btn {
  flex: 1 1 0;
}
.app-shell.has-action-footer .app-main {
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}
.rule-validity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 8px;
}
.rule-validity-grid > .form-field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--lc-wine);
  font-size: 10.4px;
  font-weight: 700;
}
.rule-create-flow {
  display: grid;
  gap: 10px;
}
.rule-create-intro {
  padding: 0;
  margin-bottom: 2px;
}
.rule-create-intro h2 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--lc-ink);
  font: 760 16px/1.25 var(--lc-font);
  letter-spacing: -.015em;
}
.rule-create-intro p {
  margin: 0;
}
.rule-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.rule-choice-card {
  appearance: none;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--lc-border);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: var(--lc-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(72,30,47,.055);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.rule-choice-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}
.rule-choice-card span {
  display: block;
  color: var(--lc-muted);
  font-size: 10.4px;
  line-height: 1.35;
}
.rule-choice-card.active {
  border-color: rgba(189,77,121,.30);
  background: rgba(249,231,239,.42);
  box-shadow: inset 0 0 0 1px rgba(189,77,121,.05);
}
.rule-create-editor {
  display: grid;
  gap: 8px;
}
.rule-flow-section {
  border: 1px solid var(--lc-border);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  overflow: hidden;
}
.rule-flow-heading {
  padding: 11px 12px 8px;
}
.rule-flow-heading h3 {
  margin: 0 0 2px;
  font-size: 11.6px;
}
.rule-flow-heading p {
  margin: 0;
  color: var(--lc-muted);
  font-size: 9.8px;
  line-height: 1.35;
}
.rule-flow-body {
  padding: 0 12px 12px;
}
.rule-inline-options {
  display: flex;
  gap: 6px;
}
.rule-inline-option {
  flex: 1;
  appearance: none;
  min-height: 39px;
  border: 1px solid var(--lc-border);
  border-radius: 9px;
  background: var(--lc-soft-2);
  color: var(--lc-ink);
  font-size: 10.6px;
  font-weight: 700;
  cursor: pointer;
}
.rule-inline-option.active {
  border-color: rgba(189,77,121,.32);
  background: #fff;
  color: var(--lc-wine);
  box-shadow: 0 5px 14px rgba(72,30,47,.08);
}
.rule-discount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 7px;
}
.rule-discount-row input, .rule-discount-row select {
  width: 100%;
  min-height: 42px;
}
.rule-target-picker .target-row {
  margin: 0 0 8px;
  padding: 10px;
  box-shadow: none;
  border-color: rgba(105,44,67,.105);
  border-radius: 11px;
  background: rgba(255,255,255,.94);
}
.rule-target-type-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.rule-target-type-card {
  appearance: none;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  background: #fff;
  color: var(--lc-ink);
  text-align: left;
  cursor: pointer;
}
.rule-target-type-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10.7px;
}
.rule-target-type-card span {
  display: block;
  color: var(--lc-muted);
  font-size: 9.4px;
  line-height: 1.3;
}
.rule-target-type-card:hover {
  border-color: rgba(189,77,121,.30);
  background: rgba(255,249,252,.96);
}
.rule-target-selected-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.rule-target-selected-header strong {
  font-size: 10.8px;
}
.rule-target-add, .rule-target-remove {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rule-target-add {
  width: 100%;
  padding: 8px 0 2px;
  color: var(--lc-pink-dark);
  font-size: 10.3px;
  font-weight: 700;
}
.rule-target-remove {
  width: 100%;
  padding: 6px 0 0;
  color: var(--lc-pink-dark);
  font-size: 9.7px;
}
.rule-validity-simple {
  margin-top: 10px;
}
.rule-validity-times {
  margin-top: 2px;
}
.rule-text-action {
  appearance: none;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--lc-wine);
  font-size: 10.2px;
  font-weight: 700;
  cursor: pointer;
}
.rule-optional-details {
  border: 1px solid var(--lc-border);
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  overflow: hidden;
}
.rule-optional-details > summary {
  padding: 12px;
  list-style: none;
  cursor: pointer;
  font-size: 10.8px;
  font-weight: 700;
}
.rule-optional-details > summary::-webkit-details-marker {
  display: none;
}
.rule-optional-details > summary::after {
  content: "+";
  float: right;
  color: var(--lc-pink-dark);
  font-size: 15px;
  line-height: 12px;
}
.rule-optional-details[open] > summary::after {
  content: "−";
}
.rule-optional-details-body {
  padding: 0 12px 11px;
}
.rule-create-summary {
  padding: 12px;
  border: 1px solid rgba(189,77,121,.18);
  border-radius: 12px;
  background: rgba(255,247,251,.78);
}
.rule-create-summary > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 10.8px;
}
.rule-summary-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rule-summary-lines span {
  padding: 4px 6px;
  border: 1px solid rgba(189,77,121,.14);
  border-radius: 7px;
  background: rgba(247,244,245,.82);
  color: var(--lc-ink);
  font-size: 9.4px;
  border-color: rgba(105,44,67,.10);
  font-weight: 650;
}
.rule-user-search-host .user-search {
  margin-top: 2px;
}
.rule-selected-user {
  margin-bottom: 7px;
}
.rule-scope-section {
  border-top: 1px solid var(--lc-border);
}
.rule-scope-section:first-child {
  border-top: 0;
}
.rule-scope-section-head {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lc-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  text-align: left;
}
.rule-scope-section-head strong {
  display: block;
  font-size: 10.8px;
}
.rule-scope-section-head small {
  display: block;
  margin-top: 2px;
  color: var(--lc-muted);
  font-size: 9.3px;
  font-weight: 400;
}
.rule-scope-chevron {
  color: var(--lc-muted);
  font-size: 17px;
  line-height: 1;
  transition: transform .15s;
}
.rule-scope-section.is-open > .rule-scope-section-head .rule-scope-chevron {
  transform: rotate(90deg);
}
.rule-scope-section-body {
  padding: 0 0 8px;
}
.rule-scope-switch-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px;
  border-top: 1px solid rgba(105,44,67,.09);
}
.rule-scope-switch-row:first-child {
  border-top: 0;
}
.rule-scope-switch-text {
  min-width: 0;
}
.rule-scope-switch-text > span {
  display: block;
  color: var(--lc-ink);
  font-size: 10.3px;
  line-height: 1.3;
}
.rule-scope-switch-text > small {
  display: block;
  margin-top: 2px;
  color: var(--lc-muted);
  font-size: 9px;
}
.rule-scope-switch-row.is-disabled {
  opacity: .55;
}
.rule-switch {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  cursor: pointer;
}
.rule-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rule-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e8dce2;
  transition: background .15s;
}
.rule-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(72,30,47,.16);
  transition: transform .15s;
}
.rule-switch input:checked + .rule-switch-track {
  background: var(--lc-wine);
}
.rule-switch input:checked + .rule-switch-track::after {
  transform: translateX(14px);
}
.rule-switch input:disabled + .rule-switch-track {
  cursor: default;
}
.rule-scope-group {
  padding: 6px 0 2px;
}
.rule-scope-group > strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lc-wine);
  font-size: 9.5px;
}
.rule-scope-group-items {
  padding-left: 8px;
}
.rule-scope-product {
  border-top: 1px solid rgba(105,44,67,.09);
}
.rule-scope-product:first-child {
  border-top: 0;
}
.rule-scope-product-head {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lc-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 2px;
  font-size: 10.3px;
  text-align: left;
}
.rule-scope-product.is-open > .rule-scope-product-head span:last-child {
  transform: rotate(90deg);
}
.rule-scope-product-body {
  padding: 0 0 6px 8px;
}
.page-section,
.section-heading {
  margin-top: 18px;
  margin-bottom: 8px;
  margin: 19px 0 10px;
}
.card,
.list-row,
.stat-card,
.soft-panel,
.user-identity {
  border-color: rgba(105,44,67,.105);
  border-radius: 12px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 5px 16px rgba(72,30,47,.055);
  backdrop-filter: none;
}
.card h2,
.card h3 {
  color: var(--lc-ink);
  font-family: var(--lc-font);
  font-style: normal;
  font-weight: 760;
  letter-spacing: -.01em;
}
.stat-card::before,
.stat-card::after {
  display: none;
}
.hero,
.dashboard-hero {
  margin-bottom: 12px;
  padding: 17.6px 15px;
  border: 1px solid rgba(189, 77, 121, .18);
  border-radius: 16px;
  background: radial-gradient(circle at 91% 18%, rgba(220, 114, 155, .22), transparent 44%),
    linear-gradient(135deg, rgba(255,254,255,.96), rgba(249,228,238,.78));
  box-shadow: 0 15px 34px rgba(80, 34, 50, .07);
  backdrop-filter: none;
  position: relative;
  min-height: 0;
  margin: 0 0 17.6px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  display: none;
}
.hero h2,
.dashboard-hero h2 {
  margin: 6px 0 5px;
  color: var(--lc-wine-deep);
  font: italic 500 34px/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  font-size: 27px;
  line-height: 1.02;
}
.hero p,
.dashboard-hero p {
  color: var(--lc-muted);
  font-size: 11px;
  line-height: 1.35;
}
.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea,
.search-input {
  border-color: rgba(105,44,67,.13);
  border-radius: 9.6px;
  background: rgba(255,255,255,.96);
  box-shadow: none;
  min-height: 36.8px;
  padding: 8.8px 10.4px;
  font: 11.2px/1.4 var(--lc-font);
}
.form-field input:not([type="checkbox"]):focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(189,77,121,.40);
  outline: 2px solid rgba(189,77,121,.09);
  outline-offset: 0;
  box-shadow: none;
}
.action-tile .arrow,
.action-tile.primary .arrow {
  color: var(--lc-muted);
}
.selected-user,
.rule-create-summary {
  padding: 11px 12px;
  border: 1px solid rgba(105,44,67,.105);
  border-radius: 12px;
  background: rgba(249,231,239,.42);
  box-shadow: none;
}
.selected-user strong,
.rule-create-summary > strong {
  color: var(--lc-ink);
  font-weight: 750;
}
.accordion-section,
.rule-flow-section,
.rule-optional-details {
  border-color: rgba(105,44,67,.105);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  box-shadow: none;
}
.accordion-section > summary,
.rule-optional-details > summary,
.rule-scope-section-head {
  min-height: 43px;
  padding: 11px 12px;
  color: var(--lc-ink);
  font-size: 10.6px;
  font-weight: 750;
}
.accordion-section[open] > summary,
.rule-optional-details[open] > summary {
  border-bottom-color: rgba(105,44,67,.09);
  background: rgba(249,231,239,.25);
}
.accordion-section > .accordion-content,
.rule-optional-details-body {
  padding-left: 12px;
  padding-right: 12px;
}
.rule-discount-row input,
.rule-discount-row select {
  min-height: 36.8px;
}
.modal-content form > .btn-row:last-child,
.modal-content form > .btn:last-child {
  bottom: -13px;
  padding: 9px 0 5px;
  border-top: 1px solid rgba(105,44,67,.08);
  background: rgba(252,249,250,.98);
}
.btn-row > .btn {
  min-width: 0;
  flex: 1 1 140px;
}
@media (min-width: 640px) {
  .modal-sheet {
    border-radius: 16px;
  }
}
.rule-choice-card,
.rule-target-type-card {
  border: 1px solid rgba(105,44,67,.105);
  border-radius: 11px;
  background: rgba(255,255,255,.94);
  box-shadow: none;
}
.rule-choice-card:hover,
.rule-target-type-card:hover {
  border-color: rgba(189,77,121,.22);
  background: #fff;
}
.rule-choice-card strong,
.rule-target-type-card strong {
  color: var(--lc-ink);
  font-family: var(--lc-font);
  font-style: normal;
  font-weight: 750;
}
.kv-table tr:last-child td {
  border-bottom: 0;
}
details.card > summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--lc-ink);
  font-size: 10.6px;
  font-weight: 750;
}
details.card[open] > summary {
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(105,44,67,.08);
}
.dashboard-hero + .card-grid {
  margin-bottom: 2px;
}
.stat-card .stat-value.muted {
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}
.card,
.soft-panel,
.action-tile,
.user-card,
.user-profile-head,
.dashboard-hero,
.stat-card {
  backdrop-filter: none;
}
.list-row,
.rule-row,
.user-card,
.selected-user,
.rule-selected-user,
.kv-table,
.kv-table td,
.mono,
.row-meta,
.rule-meta,
.user-identity,
.user-identity * {
  min-width: 0;
  overflow-wrap: anywhere;
}
select,
input,
textarea,
.form-field {
  max-width: 100%;
  min-width: 0;
}
.app-bottom-nav a span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 340px) {
  .header-eyebrow {
    display: none;
  }
  .header-title h1 {
    margin-top: 0;
  }
  .app-bottom-nav {
    padding-right: 2px;
    padding-left: 2px;
  }
  .app-bottom-nav a {
    padding-right: 1px;
    padding-left: 1px;
    font-size: 8.3px;
  }
}
html,
body {
  background: #fff9fc;
  margin: 0;
  padding: 0;
}
html {
  overflow-y: auto;
  scrollbar-width: none;
}
body {
  overflow-x: hidden;
}
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.app-header::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lc-rose), rgba(189,77,121,.14));
  pointer-events: none;
}
.app-header::after {
  content: "LC";
  position: absolute;
  right: 58px;
  top: 50%;
  z-index: 0;
  transform: translateY(-53%);
  color: rgba(104,32,57,.035);
  font: italic 500 56px/1 var(--lc-display);
  pointer-events: none;
}
.hero::before,
.dashboard-hero::before {
  display: block;
  content: "";
  position: absolute;
  left: 15px;
  bottom: 0;
  width: 72px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #7f2448 0 55%, #ebb0c7 100%);
}
.hero::after,
.dashboard-hero::after {
  display: block;
  content: "BENEFITS";
  position: absolute;
  right: 5px;
  bottom: -6px;
  color: rgba(109, 32, 62, .045);
  font: italic 500 42px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  pointer-events: none;
  font-size: 29px;
}
.stat-value,
.stat-card .stat-value.muted {
  margin-top: 5px;
  color: var(--lc-wine-deep);
  font: 700 22px/1.1 var(--lc-font);
  letter-spacing: -.025em;
  font-size: 18px;
  line-height: 1.08;
}
.card,
.list-row,
.soft-panel,
.user-identity,
.overview-balance {
  border-radius: 19px;
  border-color: rgba(105,44,67,.12);
  background: rgba(255,252,254,.83);
  box-shadow: 0 10px 25px rgba(72,30,47,.055);
}
.card,
.stat-card,
.soft-panel,
.user-identity,
.overview-balance {
  border: 1px solid rgba(105,44,67,.10);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(249,237,243,.80));
  box-shadow: var(--lc-shadow);
  backdrop-filter: blur(11px);
}
.eyebrow,
.header-eyebrow {
  font-size: 7px;
}
.page-section,
.section-heading h2 {
  gap: 8px;
  font-size: 15px;
  line-height: 1.1;
}
.page-section::before,
.section-heading h2::before {
  flex-basis: 25px;
  width: 25px;
  height: 2px;
}
.btn,
.btn-sm {
  min-height: 37px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 11.2px;
  font-weight: 680;
}
.form-field input:not([type="checkbox"]):focus,
.form-field select:focus,
.form-field textarea:focus,
.search-input:focus {
  border-color: #ec86b3;
  outline: 2.4px solid #fbe0ec;
  outline-offset: 0;
}
.form-hint,
.form-error {
  font-size: 9.6px;
}
.segmented,
.tab-bar {
  border-radius: 9.6px;
}
.segmented button,
.tab-bar button {
  min-height: 36.8px;
  padding: 6px 10px;
  font-size: 10.4px;
}
.user-identity small,
.selected-user small,
.mini-label,
.summary-row {
  font-size: 10.4px;
}


/* Benefits Admin UX simplification 2026-10-05 */
.overview-action-card {
  display: block; width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
button.overview-action-card { appearance: none; }
.overview-action-card:hover { border-color: rgba(189,77,121,.24); background: rgba(255,255,255,.98); }
.overview-action-link { display: block; margin-top: 8px; color: var(--lc-wine); font-size: 10.5px; font-weight: 750; }
