.twlc-root {
  --bg: #f2f4f7;
  --bg2: #eef2f7;
  --card: #ffffff;
  --card-soft: #fbfdff;
  --ink: #0b1220;
  --muted: #5b687a;
  --line: #e4e9f2;
  --shadow: 0 1px 0 rgba(2, 6, 23, 0.05), 0 18px 48px rgba(2, 6, 23, 0.1);
  --shadow-sm: 0 1px 0 rgba(2, 6, 23, 0.05), 0 12px 28px rgba(2, 6, 23, 0.09);
  --accent: #1d4ed8;
  --accent-ink: #0b2b73;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --focus: rgba(29, 78, 216, 0.34);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.twlc-root, .twlc-root * {
  box-sizing: border-box;
}

.twlc-root {
  margin: 0;
  background: linear-gradient(180deg, #f7f8fb 0%, var(--bg) 55%, var(--bg2) 100%);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  width: 100%;
}

.twlc-root [hidden] {
  display: none !important;
}

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

.twlc-root .mono {
  font-family: var(--mono);
}

.twlc-root .topbar {
  /* Not sticky in WordPress to avoid fighting the theme header. */
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.twlc-root .topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.twlc-root .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.twlc-root .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.16);
}

.twlc-root .brand-name {
  font-weight: 800;
  line-height: 1.05;
}

.twlc-root .brand-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 2px;
}

.twlc-root .topbar-chip {
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.18);
  color: var(--accent-ink);
  white-space: nowrap;
}

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

.twlc-root .topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: rgba(15, 23, 42, 0.76);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.twlc-root .topbar-logout:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.twlc-root .topbar-logout:active {
  transform: translateY(0);
}

.twlc-root .topbar-logout:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.twlc-root .page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px 64px;
}

.twlc-root .page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 18px;
}

.twlc-root .page-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.twlc-root .title-back {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(11, 18, 32, 0.85);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  flex: 0 0 auto;
}

.twlc-root .title-back svg {
  width: 18px;
  height: 18px;
}

.twlc-root .title-back:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.05), 0 12px 20px rgba(2, 6, 23, 0.08);
}

.twlc-root .title-back:active {
  transform: translateY(0);
}

.twlc-root .title-back:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.twlc-root .page-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.twlc-root .page-progress {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.twlc-root .prog-bar {
  width: 220px;
  height: 6px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  border: 1px solid rgba(29, 78, 216, 0.2);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.twlc-root .prog-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 60%, #0ea5e9 120%);
  transition: width 160ms ease;
}

.twlc-root .prog-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.twlc-root .wizard {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.twlc-root .wiz-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, var(--card-soft) 0%, #f6f9ff 100%);
}

.twlc-root .wiz-title {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.twlc-root .icon-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(15, 23, 42, 0.74);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.twlc-root .icon-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.twlc-root .icon-btn:active {
  transform: translateY(0);
}

.twlc-root .icon-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.twlc-root .wiz-step {
  display: none;
}

.twlc-root .wiz-step.is-active {
  display: block;
}

.twlc-root .wiz-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
  min-height: 380px;
}

.twlc-root .cats {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  background: var(--card-soft);
  overflow: hidden;
}

.twlc-root .cat-list {
  display: grid;
}

.twlc-root .cat-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(228, 233, 242, 0.95);
  font: inherit;
  color: rgba(11, 18, 32, 0.78);
  position: relative;
  transition: background 140ms ease, color 140ms ease;
}

.twlc-root .cat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.twlc-root .cat-item:hover {
  background: rgba(15, 23, 42, 0.03);
}

.twlc-root .cat-item:last-child {
  border-bottom: 0;
}

.twlc-root .cat-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.twlc-root .cat-icon {
  width: 20px;
  height: 20px;
  color: rgba(11, 18, 32, 0.62);
  flex: 0 0 auto;
}

.twlc-root .cat-label {
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twlc-root .cat-arrow {
  width: 18px;
  height: 18px;
  color: rgba(11, 18, 32, 0.3);
  flex: 0 0 auto;
}

.twlc-root .cat-item.is-active {
  background: #fff;
}

.twlc-root .cat-item.is-active::before {
  background: var(--accent);
}

.twlc-root .cat-item.is-active .cat-icon {
  color: var(--accent);
}

.twlc-root .cat-item.is-active .cat-label {
  color: var(--accent-ink);
  font-weight: 700;
}

.twlc-root .cat-item.is-active .cat-arrow {
  color: var(--accent);
}

.twlc-root .cat-item:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.twlc-root .items {
  min-width: 0;
}

.twlc-root .items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.twlc-root .items-title {
  font-weight: 800;
  font-size: 1.06rem;
  color: rgba(11, 18, 32, 0.9);
}

.twlc-root .item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.twlc-root .item-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  transition:
    .twlc-root transform 140ms ease,
    .twlc-root box-shadow 140ms ease,
    .twlc-root border-color 140ms ease,
    background 140ms ease;
}

.twlc-root .item-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.05), 0 12px 22px rgba(2, 6, 23, 0.08);
  border-color: rgba(15, 23, 42, 0.14);
}

.twlc-root .item-card.is-selected {
  border-color: rgba(29, 78, 216, 0.35);
  background: rgba(29, 78, 216, 0.03);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1), 0 1px 0 rgba(2, 6, 23, 0.04);
}

.twlc-root .item-card.is-selected:hover {
  box-shadow:
    0 0 0 3px rgba(29, 78, 216, 0.1),
    0 1px 0 rgba(2, 6, 23, 0.05),
    0 12px 22px rgba(2, 6, 23, 0.08);
}

.twlc-root .item-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.twlc-root .item-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twlc-root .item-watts {
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--mono);
}

.twlc-root .qty {
  display: grid;
  grid-template-columns: 32px 38px 32px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  flex: 0 0 auto;
}

.twlc-root .qty-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(11, 18, 32, 0.85) !important;
  cursor: pointer;
  height: 32px;
  font-weight: 800;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  display: grid;
  place-items: center;
  padding: 0;
  text-indent: 0;
  transition: background 120ms ease, color 120ms ease;
}

.twlc-root .qty-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(11, 18, 32, 0.9);
}

.twlc-root .qty-btn:active {
  background: rgba(15, 23, 42, 0.09);
}

.twlc-root .qty-val {
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--mono);
  color: rgba(15, 23, 42, 0.84);
  background: #fff;
}

.twlc-root .wiz-foot {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-soft) 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.twlc-root .wiz-foot.step2-foot {
  justify-content: center;
}

.twlc-root .foot-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 620px;
}

.twlc-root .foot-field {
  display: grid;
  gap: 6px;
}

.twlc-root .foot-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.twlc-root .foot-control {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
  font: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.twlc-root .foot-control::placeholder {
  color: rgba(91, 104, 122, 0.75);
}

.twlc-root .foot-control:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.38);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.09);
}

.twlc-root .foot-control:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.twlc-root .foot-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.twlc-root .btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}

.twlc-root .btn.primary {
  background: var(--accent);
  border-color: rgba(29, 78, 216, 0.55);
  color: #fff;
  box-shadow: 0 14px 26px rgba(29, 78, 216, 0.18);
}

.twlc-root .btn.primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(29, 78, 216, 0.22);
}

.twlc-root .btn.primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.twlc-root .btn.ghost {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.82);
}

.twlc-root .btn.ghost:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.16);
}

.twlc-root .btn:disabled {
  cursor: not-allowed;
  background: #eef2f7;
  color: rgba(15, 23, 42, 0.35);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: none;
  transform: none;
}

.twlc-root .btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.twlc-root .btn.small,
.twlc-root .btn-small {
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.twlc-root .btn.full {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.twlc-root .btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
  box-shadow: none;
}

.twlc-root .link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}

.twlc-root .link-btn:hover {
  text-decoration: underline;
}

.twlc-root .custom-wrap {
  margin-top: 14px;
}

.twlc-root .custom-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
}

.twlc-root .custom-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr auto;
  gap: 12px;
  align-items: end;
}

.twlc-root .custom-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.twlc-root .custom-line {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.twlc-root .custom-line.is-selected {
  border-color: rgba(29, 78, 216, 0.3);
  background: rgba(29, 78, 216, 0.03);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.twlc-root .custom-line .meta {
  color: rgba(11, 18, 32, 0.62);
  font-size: 0.92rem;
}

.twlc-root .wiz-body.step2 {
  grid-template-columns: 1fr;
  /* A taller canvas helps the Step 2 screens feel "premium" and less cramped. */
  min-height: clamp(420px, 60vh, 620px);
  align-items: stretch;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #ffffff 55%, rgba(248, 250, 252, 0.95) 100%);
}

.twlc-root .step2-stage {
  display: none;
}

.twlc-root .step2-stage.is-active {
  /* Step 2 screens should feel like standalone "pages". Center the content group. */
  display: grid;
  align-content: center;
  min-height: 100%;
}

/* The final screen has a title row + product card; keep it nearer the top like the reference. */
.twlc-root #step2Product.step2-stage.is-active {
  align-content: start;
}

.twlc-root .step2-edit {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 0 4px;
  display: grid;
  gap: 22px;
}

.twlc-root .step2-intro {
  display: grid;
  gap: 6px;
  text-align: center;
}

.twlc-root .step2-intro-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.22rem;
  color: rgba(11, 18, 32, 0.92);
}

.twlc-root .step2-intro-sub {
  color: rgba(91, 104, 122, 0.92);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.35;
}

.twlc-root .backup-slider {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  padding: 16px 16px 14px;
}

.twlc-root .backup-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.twlc-root .backup-label {
  font-weight: 800;
  color: rgba(11, 18, 32, 0.92);
  letter-spacing: -0.01em;
}

.twlc-root .backup-badge {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--card-soft);
  color: rgba(11, 18, 32, 0.86);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.twlc-root .backup-range {
  position: relative;
  padding-top: 28px;
}

.twlc-root .range {
  --range-pct: 0%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--range-pct),
    rgba(15, 23, 42, 0.16) var(--range-pct),
    rgba(15, 23, 42, 0.16) 100%
  );
  outline: none;
  cursor: pointer;
}

.twlc-root .range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 12px 18px rgba(2, 6, 23, 0.16);
  cursor: pointer;
}

.twlc-root .range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 12px 18px rgba(2, 6, 23, 0.16);
  cursor: pointer;
}

.twlc-root .range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
}

.twlc-root .range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.twlc-root .range:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
}

.twlc-root .range-bubble {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.22);
  pointer-events: none;
  white-space: nowrap;
}

.twlc-root .backup-scale {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(91, 104, 122, 0.92);
  font-weight: 700;
  font-size: 0.9rem;
}

.twlc-root .step2-right {
  max-width: 1040px;
  margin: 0 auto;
}

.twlc-root .rec-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 0 10px;
  display: grid;
  justify-items: center;
  gap: 30px;
}

.twlc-root .rec-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  color: rgba(11, 18, 32, 0.92);
  text-align: center;
}

.twlc-root .rec-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 22px;
}

.twlc-root .rec-card {
  border: 1px solid rgba(228, 233, 242, 0.95);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 22px 22px 20px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04), 0 18px 44px rgba(2, 6, 23, 0.09);
  display: grid;
  gap: 10px;
  align-content: start;
}

.twlc-root .rec-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  background: radial-gradient(
    .twlc-root circle at 30% 30%,
    .twlc-root rgba(29, 78, 216, 0.18) 0%,
    .twlc-root rgba(29, 78, 216, 0.06) 55%,
    rgba(255, 255, 255, 1) 100%
  );
  color: rgba(29, 78, 216, 0.9);
  display: grid;
  place-items: center;
}

.twlc-root .rec-icon svg {
  width: 22px;
  height: 22px;
}

.twlc-root .rec-label {
  color: rgba(91, 104, 122, 0.95);
  font-weight: 700;
  font-size: 0.96rem;
}

.twlc-root .rec-value {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.38rem;
  color: rgba(11, 18, 32, 0.92);
}

.twlc-root .rec-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 4px;
}

.twlc-root .rec-actions .btn {
  min-width: 170px;
}

.twlc-root .sol-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 0 10px;
  display: grid;
  gap: 28px;
}

.twlc-root .sol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.twlc-root .sol-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  color: rgba(11, 18, 32, 0.92);
}

.twlc-root .sol-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.twlc-root .sol-actions .btn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.twlc-root .product-card {
  width: min(420px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(228, 233, 242, 0.95);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04), 0 18px 44px rgba(2, 6, 23, 0.09);
  padding: 22px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.twlc-root .product-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  background: radial-gradient(
      .twlc-root circle at 35% 20%,
      .twlc-root rgba(29, 78, 216, 0.14) 0%,
      .twlc-root rgba(29, 78, 216, 0.05) 55%,
      rgba(255, 255, 255, 1) 100%
    );
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(11, 18, 32, 0.42);
}

.twlc-root .product-media svg {
  width: 88px;
  height: 88px;
}

.twlc-root .product-name {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.12rem;
  color: rgba(11, 18, 32, 0.92);
}

.twlc-root .product-meta {
  color: rgba(91, 104, 122, 0.95);
  font-weight: 700;
  font-size: 0.92rem;
}

.twlc-root .learn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  background: rgba(29, 78, 216, 0.04);
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.twlc-root .learn-link svg {
  width: 18px;
  height: 18px;
}

.twlc-root .learn-link:hover {
  transform: translateY(-1px);
  background: rgba(29, 78, 216, 0.06);
  border-color: rgba(29, 78, 216, 0.24);
  box-shadow: 0 14px 24px rgba(29, 78, 216, 0.12);
}

.twlc-root .learn-link:active {
  transform: translateY(0);
}

.twlc-root .learn-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.twlc-root .learn-link[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

.twlc-root .sol-wrap .adv-settings {
  max-width: 980px;
  margin: 14px auto 0;
}

@keyframes tw-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.twlc-root .step2-stage.is-active .rec-card,
.twlc-root .step2-stage.is-active .product-card {
  animation: tw-rise 220ms ease both;
}

.twlc-root .step2-stage.is-active .rec-card:nth-child(2) {
  animation-delay: 70ms;
}

@media (max-width: 760px) {
  .twlc-root .rec-cards {
    grid-template-columns: 1fr;
  }

  .twlc-root .sol-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.twlc-root .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.twlc-root .field {
  display: block;
}

.twlc-root .label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin: 6px 0 6px;
  color: rgba(11, 18, 32, 0.88);
}

.twlc-root .control-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.twlc-root .control {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.twlc-root .select {
  cursor: pointer;
}

.twlc-root .control:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.38);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.09);
}

.twlc-root .control:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.twlc-root .unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--card-soft);
  color: rgba(91, 104, 122, 0.95);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.twlc-root .advanced {
  margin-top: 2px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 12px;
  background: var(--card-soft);
}

.twlc-root .advanced summary {
  cursor: pointer;
  font-weight: 800;
  color: rgba(11, 18, 32, 0.9);
}

.twlc-root .advanced-body {
  margin-top: 10px;
}

.twlc-root .adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.twlc-root .adv-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.twlc-root .results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.twlc-root .results-title {
  font-weight: 800;
  font-size: 1.08rem;
  color: rgba(11, 18, 32, 0.92);
}

.twlc-root .results-hint {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.twlc-root .result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.twlc-root .r-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
  min-height: 196px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  transition: box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.twlc-root .r-card:hover {
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.05), 0 14px 28px rgba(2, 6, 23, 0.08);
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.14);
}

.twlc-root .r-card h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.twlc-root .kv {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
}

.twlc-root .k {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.twlc-root .v {
  font-weight: 800;
}

.twlc-root .big {
  margin-top: 12px;
  font-weight: 800;
  font-size: 1.52rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.twlc-root .sub {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.twlc-root .muted {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.twlc-root .meta {
  color: rgba(11, 18, 32, 0.62);
  font-weight: 600;
  font-size: 0.92rem;
}

.twlc-root .r-card.r-cta {
  border-color: rgba(29, 78, 216, 0.22);
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.08) 0%, #fff 58%);
}

.twlc-root .r-card.r-cta:hover {
  border-color: rgba(29, 78, 216, 0.3);
}

.twlc-root .fineprint {
  margin: 14px 2px 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .twlc-root .wiz-body {
    grid-template-columns: 1fr;
  }

  .twlc-root .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .twlc-root .prog-bar {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .twlc-root .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .twlc-root .page-progress {
    justify-items: start;
  }

  .twlc-root .prog-bar {
    width: 160px;
  }

  .twlc-root .item-grid {
    grid-template-columns: 1fr;
  }

  .twlc-root .form-grid {
    grid-template-columns: 1fr;
  }

  .twlc-root .adv-grid {
    grid-template-columns: 1fr;
  }

  .twlc-root .results-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .twlc-root .result-grid {
    grid-template-columns: 1fr;
  }

  .twlc-root .foot-fields {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .twlc-root .wiz-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .twlc-root .foot-actions {
    justify-content: stretch;
  }

  .twlc-root .btn {
    width: 100%;
  }

  .twlc-root .custom-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------
   Password Gate (Login Screen)
---------------------------- */

.twlc-root.twlc-locked {
  padding: 34px 16px 52px;
  display: flex;
  justify-content: center;
}

.twlc-root .twlc-lock-card {
  width: min(560px, 100%);
  border: 1px solid rgba(228, 233, 242, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04), 0 24px 70px rgba(2, 6, 23, 0.12);
  padding: 18px 18px 20px;
}

.twlc-root .twlc-lock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.twlc-root .twlc-lock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.twlc-root .twlc-lock-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.16);
}

.twlc-root .twlc-lock-meta {
  color: rgba(91, 104, 122, 0.92);
  font-weight: 700;
  font-size: 0.92rem;
}

.twlc-root .twlc-lock-title {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: rgba(11, 18, 32, 0.92);
}

.twlc-root .twlc-lock-sub {
  margin: 6px 0 0;
  color: rgba(91, 104, 122, 0.92);
  font-weight: 600;
}

.twlc-root .twlc-lock-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: rgba(127, 29, 29, 0.95);
  font-weight: 700;
}

.twlc-root .twlc-lock-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.twlc-root .twlc-lock-field span {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin: 0 0 6px;
  color: rgba(11, 18, 32, 0.88);
}

.twlc-root .twlc-lock-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.twlc-root .twlc-lock-field input:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.38);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.09);
}

.twlc-root .twlc-lock-btn {
  appearance: none;
  border: 1px solid rgba(29, 78, 216, 0.55);
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 36px rgba(29, 78, 216, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.twlc-root .twlc-lock-btn:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(29, 78, 216, 0.22);
}

.twlc-root .twlc-lock-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.twlc-root .twlc-lock-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Aspiro theme alignment */
.twlc-root {
  --bg: #ffffff;
  --bg2: #f7f7f7;
  --card: #ffffff;
  --card-soft: #ffffff;
  --ink: #222222;
  --muted: #626262;
  --line: #e7e7e7;
  --shadow: 0 20px 55px rgba(23, 32, 43, 0.08);
  --shadow-sm: 0 12px 28px rgba(23, 32, 43, 0.06);
  --accent: #f12d21;
  --accent-ink: #a71e16;
  --accent-soft: rgba(241, 45, 33, 0.1);
  --focus: rgba(241, 45, 33, 0.22);
  --accent-gradient: #f12d21;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: transparent;
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
}

.twlc-root .topbar {
  display: none;
}

.twlc-root .tool-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(24, 194, 182, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 107, 44, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.twlc-root .tool-shell-head__copy {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.twlc-root .tool-shell-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.twlc-root .tool-shell-head__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.twlc-root .tool-shell-head__title,
.twlc-root .page-title,
.twlc-root .wiz-title,
.twlc-root .step2-intro-title,
.twlc-root .rec-title,
.twlc-root .sol-title {
  font-family: Roboto, Arial, sans-serif;
  letter-spacing: -0.045em;
}

.twlc-root .tool-shell-head__title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
}

.twlc-root .tool-shell-head__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.twlc-root .tool-shell-head__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.twlc-root .tool-shell-head__action:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 194, 182, 0.28);
  box-shadow: 0 16px 32px rgba(15, 15, 15, 0.08);
}

.twlc-root .page {
  max-width: none;
  margin: 0;
  padding: 0 0 6px;
}

.twlc-root .page-head {
  padding: 0 0 18px;
}

.twlc-root .page-progress {
  gap: 8px;
}

.twlc-root .prog-bar {
  background: rgba(241, 45, 33, 0.08);
  border-color: rgba(241, 45, 33, 0.14);
}

.twlc-root .prog-fill,
.twlc-root .brand-mark,
.twlc-root .twlc-lock-mark,
.twlc-root .btn.primary,
.twlc-root .cat-item.is-active {
  background: var(--aspiro-red, var(--accent)) !important;
  color: #fff !important;
}

.twlc-root .wizard,
.twlc-root .custom-card,
.twlc-root .rec-card,
.twlc-root .sol-card,
.twlc-root .twlc-lock-card {
  border-color: var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.twlc-root .wiz-head,
.twlc-root .wiz-foot,
.twlc-root .cats,
.twlc-root .items-head,
.twlc-root .twlc-lock-head {
  border-color: var(--line);
}

.twlc-root .btn,
.twlc-root .cat-item,
.twlc-root .icon-btn,
.twlc-root .title-back,
.twlc-root .link-btn,
.twlc-root .topbar-logout,
.twlc-root .twlc-lock-btn {
  border-radius: 16px;
}

.twlc-root .btn,
.twlc-root .cat-item,
.twlc-root .icon-btn,
.twlc-root .title-back,
.twlc-root .link-btn,
.twlc-root .twlc-lock-btn,
.twlc-root .control,
.twlc-root input,
.twlc-root select {
  font-family: inherit;
}

.twlc-root .btn,
.twlc-root .cat-item,
.twlc-root .icon-btn,
.twlc-root .title-back,
.twlc-root .link-btn {
  border-color: rgba(23, 23, 23, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.twlc-root .btn:hover,
.twlc-root .cat-item:hover,
.twlc-root .icon-btn:hover,
.twlc-root .title-back:hover,
.twlc-root .link-btn:hover,
.twlc-root .twlc-lock-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 45, 33, 0.3);
  box-shadow: 0 16px 32px rgba(15, 15, 15, 0.08);
}

.twlc-root .foot-control,
.twlc-root .control,
.twlc-root input,
.twlc-root select,
.twlc-root textarea,
.twlc-root .twlc-lock-field input {
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.twlc-root .foot-control:focus,
.twlc-root .control:focus,
.twlc-root input:focus,
.twlc-root select:focus,
.twlc-root textarea:focus,
.twlc-root .twlc-lock-field input:focus {
  border-color: rgba(241, 45, 33, 0.4);
  box-shadow: 0 0 0 4px rgba(241, 45, 33, 0.1);
  outline: none;
}

.twlc-root.twlc-locked {
  padding: 0;
  background: transparent;
}

.twlc-root .twlc-lock-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 860px) {
  .twlc-root .tool-shell-head {
    padding: 20px;
    border-radius: 22px;
  }

  .twlc-root .tool-shell-head__title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }
}

@media (max-width: 680px) {
  .twlc-root .tool-shell-head {
    flex-direction: column;
  }

  .twlc-root .tool-shell-head__action {
    width: 100%;
  }
}
