.track-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: stretch;
  margin-bottom: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10px 10px, #d7bb88 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) 10px, #d7bb88 0 2px, transparent 3px),
    radial-gradient(circle at 10px calc(100% - 10px), #d7bb88 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #d7bb88 0 2px, transparent 3px),
    linear-gradient(145deg, #183548, #071925 72%);
  border: 1px solid rgba(213, 184, 133, .58);
  border-radius: 2px;
  box-shadow: inset 0 0 0 4px #0b2231, inset 0 0 0 5px rgba(213,184,133,.2), 0 16px 34px rgba(0,0,0,.18);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.track-row:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 204, 154, .85);
  box-shadow: inset 0 0 0 4px #0b2231, inset 0 0 0 5px rgba(231,204,154,.3), 0 24px 46px rgba(0,0,0,.28);
}

.tracks { border-top: 0; }
.track-row .track { grid-template-columns: 62px 1fr 38px; gap: 16px; border-bottom: 0; padding: 24px 25px; }
.track-row .track:hover,
.track-row .track.active { background: transparent; }
.track-row .track b { transition: color .2s; }
.track-row:hover .track b { color: #f1d6a6; }
.track-row .track i { transition: transform .2s, background .2s, color .2s; }
.track-row:hover .track i { transform: scale(1.08); }
.memorial-initial { width: 58px; height: 58px; display: grid; place-items: center; align-content: center; color: #f0d8aa; font: 500 29px/1 var(--serif); border: 1px solid rgba(213,184,133,.56); border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(7,25,37,.8); }
.memorial-initial small { margin-top: 4px; color: #9baab1 !important; font: 600 7px/1 var(--sans); letter-spacing: .16em; }
.memorial-copy em,.memorial-copy b,.memorial-copy strong,.memorial-copy small { display: block; }
.memorial-copy em { color: #9baab1; font-size: 8px; font-style: normal; letter-spacing: .18em; text-transform: uppercase; }
.memorial-copy b { margin: 1px 0 3px; color: #f3e8d4; font: 500 24px/1.1 var(--serif); }
.memorial-copy strong { color: #d8bd8b; font: 500 13px/1.35 var(--serif); }
.memorial-copy small { margin-top: 5px; color: #8299a5 !important; font-size: 9px; }

.style-cta {
  width: auto;
  padding: 14px 18px;
  color: var(--champagne);
  font: 600 9px/1.35 var(--sans);
  letter-spacing: .13em;
  text-align: left;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(200, 169, 119, .1), rgba(255, 255, 255, .025));
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: color .2s, background .2s, padding .2s;
}

.style-cta span { display: block; margin-top: 7px; font-size: 15px; }

.style-cta:hover,
.style-cta:focus-visible {
  color: #fff;
  padding-left: 23px;
  background: rgba(184, 147, 88, .28);
}

.demo-launch {
  width: min(390px, 100%);
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 38px;
  padding: 13px 16px;
  color: #fff;
  text-align: left;
  background: linear-gradient(110deg, rgba(200,169,119,.2), rgba(255,255,255,.035));
  border: 1px solid rgba(200,169,119,.5);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(0,0,0,.13);
  transition: transform .25s, background .25s, box-shadow .25s;
}

.demo-launch:hover {
  transform: translateY(-3px);
  background: linear-gradient(110deg, rgba(200,169,119,.3), rgba(255,255,255,.07));
  box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

.demo-launch-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  color: var(--night);
  background: var(--champagne);
}

.demo-launch-icon i { width: 3px; border-radius: 2px; background: var(--night); animation: demo-bars 1.1s ease-in-out infinite alternate; }
.demo-launch-icon i:nth-child(1) { height: 10px; }
.demo-launch-icon i:nth-child(2) { height: 20px; animation-delay: .2s; }
.demo-launch-icon i:nth-child(3) { height: 14px; animation-delay: .4s; }
.demo-launch small,.demo-launch b { display: block; }
.demo-launch small { color: #a9bdc7; font-size: 8px; letter-spacing: .15em; }
.demo-launch b { margin-top: 2px; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.demo-launch em { color: var(--champagne); font-size: 22px; font-style: normal; }

@keyframes demo-bars { to { transform: scaleY(.5); } }

.inline-demo {
  --demo-progress: 25%;
  width: min(410px, 100%);
  margin: 0 0 42px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  border: 1px solid rgba(200,169,119,.48);
  border-radius: 5px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  overflow: hidden;
}

.inline-demo-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.inline-demo-head p { margin: 0; }
.inline-demo-head small,.inline-demo-head b { display: block; }
.inline-demo-head small { color: var(--champagne); font-size: 8px; letter-spacing: .16em; }
.inline-demo-head b { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.inline-demo-head em { color: #8fa4af; font-size: 10px; font-style: normal; }
.inline-demo-progress { height: 2px; margin: 15px 0; background: rgba(255,255,255,.1); }
.inline-demo-progress i { display: block; width: var(--demo-progress); height: 100%; background: var(--champagne); transition: width .55s ease; }
.inline-demo-fields label { position: relative; min-height: 71px; padding: 11px 13px; color: #fff; background: rgba(4,17,27,.45); border: 1px solid rgba(255,255,255,.1); }
.inline-demo-fields label span,.inline-demo-fields label strong { display: block; }
.inline-demo-fields label span { color: #8298a4; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.inline-demo-fields label strong { margin-top: 5px; padding-right: 8px; font-size: 11px; font-weight: 500; line-height: 1.45; }
.inline-demo-fields label i { position: absolute; left: 13px; bottom: 8px; width: 1px; height: 13px; background: var(--champagne); animation: cursor-blink .7s steps(1) infinite; }
.inline-demo-fields p { min-height: 28px; margin: 10px 0 0; color: #8fa4af !important; font-size: 9px !important; }
.inline-demo.frame-change .inline-demo-fields label { animation: field-glow .7s ease; }

@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes field-glow { 0% { border-color: var(--champagne); box-shadow: 0 0 0 4px rgba(200,169,119,.12); } }

.style-selection-note {
  display: none;
  margin: 14px 0 4px;
  padding: 10px 12px;
  color: #315440;
  font-size: 11px;
  background: #eef3ee;
  border-left: 3px solid var(--gold);
}

.style-selection-note.show { display: block; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 8px; padding: 4px; background: #eee9df; }
.auth-tabs button { padding: 10px; color: #68757c; font-size: 11px; background: transparent; border: 0; cursor: pointer; }
.auth-tabs button.active { color: var(--night); background: #fff; box-shadow: 0 2px 10px rgba(9,27,42,.08); }
.auth-status { min-height: 18px; margin: 0; color: #9a4f47; font-size: 11px; }
.auth-choice { display: grid; gap: 12px; margin: 28px 0; }
.auth-choice button { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px; color: var(--night); text-align: left; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: .2s; }
.auth-choice button:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(9,27,42,.08); }
.auth-choice b,.auth-choice small { display: block; }
.auth-choice b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.auth-choice small { color: var(--muted); font-size: 10px; }
.auth-choice span { grid-row: 1/3; grid-column: 2; align-self: center; color: var(--gold); font-size: 20px; }
.auth-back,.forgot-password { width: max-content; padding: 0; color: var(--muted); font-size: 10px; background: none; border: 0; cursor: pointer; }
.forgot-password { text-decoration: underline; }
.pro-access { display: inline-flex; align-items: center; gap: 8px; max-width: 190px; }
.pro-access-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-status-dot { display: none; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #74a47f; box-shadow: 0 0 0 4px rgba(116,164,127,.14); }
.pro-access.is-connected { color: #315440; font-weight: 600; }
.pro-access.is-connected .pro-status-dot { display: block; }
.auth-status { transition: color .2s; }
.auth-status:not(:empty) { padding: 8px 10px; background: #fff8ec; border-left: 2px solid var(--gold); }
.login-dialog button:disabled { cursor: wait; opacity: .65; }
.empty-orders { padding: 28px 4px; color: var(--muted); font-size: 12px; text-align: center; }
.orders-table .order-data { display: grid; }
.admin-panel { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.dash-layout main.admin-mode > :not(#admin-panel) { display: none; }
.dash-layout main.admin-mode #admin-panel { display: block; margin-top: 0; padding-top: 0; border-top: 0; }
#admin-nav { color: #8b6430; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 18px; }
.admin-title h3 { margin: 0 0 20px; font: 500 28px var(--serif); }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 20px; }
.admin-stats article { padding: 16px; background: #fff; }
.admin-stats small,.admin-stats b { display: block; }
.admin-stats small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.admin-stats b { font: 500 28px var(--serif); }
.admin-users { background: #fff; overflow-x: auto; }
.admin-users>div { min-width: 620px; display: grid; grid-template-columns: 1.1fr 1fr 1.6fr .8fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 10px; }
.admin-users>div:first-child { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }

.guided-banner {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  margin: 18px 0;
  color: #315440;
  background: #eef3ee;
  border: 1px solid #ccdacf;
}

.guided-banner.show { display: flex; }
.guided-banner p { flex: 1; margin: 0; }
.guided-banner b,
.guided-banner small { display: block; }
.guided-banner b { font-size: 11px; }
.guided-banner small { color: #6c7d70; font-size: 9px; }
.guided-banner button {
  color: #6a776d;
  font-size: 9px;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
}

.demo-pulse {
  width: 9px;
  height: 9px;
  background: #6f987b;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(111, 152, 123, .5);
  animation: demo-pulse 1.4s infinite;
}

@keyframes demo-pulse {
  70% { box-shadow: 0 0 0 8px rgba(111, 152, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 152, 123, 0); }
}

.order-dialog.demo-active input.demo-writing,
.order-dialog.demo-active textarea.demo-writing,
.order-dialog.demo-active select.demo-writing,
.order-dialog.demo-active label.demo-writing > span {
  background: #fffaf0;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 147, 88, .15);
  transition: .2s;
}

@media (max-width: 640px) {
  .guided-banner { align-items: flex-start; }
  .track-row { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-users { overflow-x: auto; }
  .admin-users > div { min-width: 620px; }
  .style-cta {
    width: 100%;
    padding: 10px 16px 14px 62px;
    border-left: 0;
  }
}
