:root {
  --bg: #05080d;
  --bg-soft: #08111d;
  --panel: rgba(11, 20, 32, 0.64);
  --panel2: rgba(14, 25, 40, 0.78);
  --line: rgba(255, 255, 255, 0.13);
  --ink: #f7fbff;
  --mut: #a9b8c9;
  --amber: #ff9c3d;
  --cyan: #45ddff;
  --green: #57e39b;
  --red: #ff6b6b;
  --slate: #9fb0c4;
  --r: 18px;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(192, 151, 91, 0.14), transparent 28rem),
    radial-gradient(circle at 78% 68%, rgba(192, 151, 91, 0.11), transparent 32rem),
    linear-gradient(180deg, #f9f7f2 0%, #f9f7f2 46%, #f9f7f2 100%);
  overflow-x: clip;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(rgba(192, 151, 91, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 151, 91, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(62deg) translateY(18vh) scale(1.42);
  transform-origin: center bottom;
  opacity: 0.42;
}

body::after {
  z-index: 1;
  background:
    radial-gradient(circle, transparent 34%, rgba(249, 247, 242, 0.88) 100%),
    linear-gradient(90deg, rgba(249, 247, 242, 0.88), transparent 22%, transparent 78%, rgba(249, 247, 242, 0.88));
}

body > :not(.duae-unified-canvas):not(.duae-unified-layer):not(.duae-unified-quick):not(.duae-site-header):not(.duae-mobile-menu):not(.duae-progress-rail) {
  position: relative;
  z-index: 3;
}

.duae-unified-canvas {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.duae-unified-layer {
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(192, 151, 91, 0.08), transparent 32%),
    radial-gradient(circle at 72% 70%, rgba(192, 151, 91, 0.07), transparent 34%);
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7d5324;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-gold), transparent);
  box-shadow: 0 0 12px var(--cyan);
}

h1 {
  max-width: 980px;
  margin: 0.35rem 0 0.7rem;
  color: #302f2c;
  font-size: clamp(2rem, 4.35vw, 4.55rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  color: #302f2c;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  font-weight: 900;
}

h3 {
  color: #7d5324;
  font-weight: 900;
}

.mut,
small,
label {
  color: var(--mut);
}

.amber {
  color: var(--amber);
}

.cyan {
  color: var(--cyan);
}

header {
  position: sticky;
  top: 14px;
  z-index: 90;
  width: min(1480px, calc(100% - clamp(24px, 5vw, 96px)));
  margin: 14px auto 0;
  padding: 10px 12px 10px 18px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(249, 247, 242, 0.88), rgba(249, 247, 242, 0.88));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 52px rgba(75, 65, 51, 0.09);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.hin {
  gap: 16px;
}

.brandbtn,
.logo {
  color: #302f2c;
}

.klogo {
  box-shadow: 0 0 0 1px rgba(75, 65, 51, 0.07), 0 0 28px rgba(192, 151, 91, 0.26);
}

nav {
  gap: 3px;
}

nav a,
nav button,
.pnbtn,
.navcaret,
.searchbtn,
.locbtn,
.tl-chip {
  color: #605b53;
  background: rgba(238, 233, 224, 0.055);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 13px;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

nav a:hover,
nav button:hover,
.pnbtn:hover,
.navcaret:hover,
.searchbtn:hover,
.locbtn:hover,
.tl-chip:hover {
  color: #302f2c;
  background: rgba(192, 151, 91, 0.1);
  border-color: rgba(192, 151, 91, 0.32);
  transform: translateY(-2px);
}

nav a.on,
nav button.on,
.pnbtn.on {
  color: #302f2c;
  background: linear-gradient(120deg, #e1c394, #e1c394 48%, #e1c394);
  border-color: rgba(166, 155, 138, 0.35);
  box-shadow: 0 12px 34px rgba(192, 151, 91, 0.23);
  font-weight: 900;
}

.navsub,
.sitemenu,
.sitepanel,
.sresults {
  color: var(--ink);
  background: linear-gradient(150deg, rgba(249, 247, 242, 0.95), rgba(249, 247, 242, 0.95));
  border-color: rgba(166, 155, 138, 0.28);
  box-shadow: 0 24px 60px rgba(75, 65, 51, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navsub a,
.smitem,
.spitem,
.sresults button {
  color: #302f2c;
  background: rgba(238, 233, 224, 0.045);
  border-color: rgba(166, 155, 138, 0.28);
}

.navsub a:hover,
.smitem:hover,
.spitem:hover,
.sresults button:hover {
  background: rgba(192, 151, 91, 0.08);
  border-color: rgba(192, 151, 91, 0.28);
}

.statusbar,
.duae-indep,
#pageNav,
.duae-share,
footer {
  width: min(1100px, calc(100% - clamp(24px, 5vw, 96px))) !important;
  margin-inline: auto !important;
}

.statusbar {
  margin-top: 14px;
  padding: 0.7rem 1rem;
  color: var(--mut);
  background: rgba(249, 247, 242, 0.88);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.statusbar b {
  color: #7d5324;
}

.duae-indep,
.notice,
.vidbar {
  color: #605b53;
  background: rgba(192, 151, 91, 0.07);
  border: 1px solid rgba(192, 151, 91, 0.28);
  border-inline-start: 3px solid var(--amber);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

main {
  width: min(1100px, calc(100% - clamp(24px, 5vw, 96px)));
  max-width: none;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 6rem;
}

section.page {
  display: block;
  animation: none;
}

section.page:not(.on) {
  display: none;
}

.hero {
  min-height: min(72vh, 780px);
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 68px);
  margin-bottom: 1.6rem;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(249, 247, 242, 0.88), rgba(249, 247, 242, 0.88));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(75, 65, 51, 0.134);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background:
    linear-gradient(105deg, rgba(238, 233, 224, 0.09), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(192, 151, 91, 0.12), transparent 26%);
  border-radius: inherit;
  pointer-events: none;
}

.card,
.tl-panel,
details,
.vidcard,
.dbmbox,
.chatpanel {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(249, 247, 242, 0.88), rgba(249, 247, 242, 0.88));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(75, 65, 51, 0.083);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.card {
  transform-style: preserve-3d;
}

.card:hover,
details:hover,
.tl-panel:hover {
  transform: translateY(-5px) rotateX(1deg);
  border-color: rgba(192, 151, 91, 0.32);
  box-shadow: 0 26px 74px rgba(75, 65, 51, 0.109), 0 0 30px rgba(192, 151, 91, 0.06);
}

.card.hl {
  border-color: rgba(192, 151, 91, 0.42);
}

.grid {
  gap: 1rem;
}

.step {
  background: rgba(238, 233, 224, 0.045);
  border-color: rgba(166, 155, 138, 0.28);
}

.step::before {
  color: #302f2c;
  background: linear-gradient(135deg, #e1c394, #e1c394);
}

details summary {
  color: #302f2c;
}

details .body,
details p {
  color: var(--mut);
}

summary::after {
  color: var(--cyan);
}

table {
  overflow: hidden;
  background: rgba(249, 247, 242, 0.88);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  color: #7d5324;
  background: rgba(192, 151, 91, 0.06);
}

td,
th {
  border-bottom-color: rgba(166, 155, 138, 0.28);
}

tr:hover td {
  background: rgba(192, 151, 91, 0.06);
}

input,
select,
textarea {
  color: var(--ink);
  background: rgba(249, 247, 242, 0.88);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 14px;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn,
button[type="submit"] {
  color: #302f2c;
  background: linear-gradient(120deg, #e1c394, #e1c394 48%, #e1c394);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(192, 151, 91, 0.22);
}

.btn:hover,
button[type="submit"]:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(192, 151, 91, 0.34);
}

.btn.ghost {
  color: #302f2c;
  background: rgba(238, 233, 224, 0.055);
  border-color: rgba(166, 155, 138, 0.28);
  box-shadow: none;
}

.tag {
  color: #605b53;
  background: rgba(238, 233, 224, 0.045);
  border-color: rgba(166, 155, 138, 0.28);
}

.tag.a {
  color: #7d5324;
  border-color: rgba(192, 151, 91, 0.42);
}

.tag.c {
  color: #7d5324;
  border-color: rgba(192, 151, 91, 0.38);
}

.tag.g {
  color: #306c4c;
  border-color: rgba(48, 108, 76, 0.35);
}

.wafab {
  bottom: 92px;
  box-shadow: 0 12px 30px rgba(75, 65, 51, 0.115);
}

.duae-share {
  margin-top: 0 !important;
  color: var(--mut);
  background: rgba(249, 247, 242, 0.88);
  border: 1px solid rgba(166, 155, 138, 0.28) !important;
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

footer {
  margin-bottom: 22px;
  color: var(--mut);
  background: rgba(249, 247, 242, 0.88);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.duae-unified-quick {
  position: fixed;
  z-index: 120;
  left: 16px;
  bottom: 16px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: #302f2c;
  background: rgba(249, 247, 242, 0.88);
  border: 1px solid rgba(192, 151, 91, 0.34);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(75, 65, 51, 0.102);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.duae-unified-home {
  min-width: 44px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #302f2c;
  background: linear-gradient(120deg, #e1c394, #e1c394);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(192, 151, 91, 0.22);
}

.duae-unified-quick select {
  width: min(282px, 52vw);
  height: 38px;
  color: #302f2c;
  background: rgba(249, 247, 242, 0.94);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 12px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.duae-reveal {
  opacity: 1;
  transform: translateY(38px) scale(0.985);
  transition:
    opacity 720ms ease,
    transform 780ms cubic-bezier(0.2, 0.9, 0.18, 1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.duae-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 860px) {
  header {
    top: 8px;
    width: min(100% - 20px, 720px);
    border-radius: 19px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  nav a,
  nav button {
    flex: 0 0 auto;
  }

  .statusbar,
  .duae-indep,
  #pageNav,
  .duae-share,
  footer,
  main {
    width: min(100% - 24px, 720px) !important;
  }

  main {
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 4rem);
  }

  .hero,
  .card,
  .tl-panel,
  details {
    border-radius: 20px;
  }

  .duae-unified-quick {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .duae-unified-quick select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 540px) {
  .hin {
    display: grid;
  }

  .hend,
  .searchwrap {
    width: 100%;
    max-width: none;
  }

  .g2,
  .g3,
  .procon {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .duae-reveal,
  .card,
  details,
  .tl-panel,
  nav a,
  nav button {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .duae-reveal {
    opacity: 1;
  }
}

/* Unified 3D application shell for every generated page. */
body.duae-unified-page > header:not(.duae-site-header),
body.duae-unified-page > .statusbar,
body.duae-unified-page > .duae-indep,
body.duae-unified-page > #pageNav,
body.duae-unified-page > .duae-share,
body.duae-unified-page > .wafab,
body.duae-unified-page > .saifwrap,
body.duae-unified-page > .chatpanel,
body.duae-unified-page > .dbmodal,
body.duae-unified-page > .duae-unified-quick {
  display: none !important;
}

.duae-site-header {
  position: fixed;
  z-index: 110;
  inset-block-start: max(14px, env(safe-area-inset-top));
  inset-inline: 0;
  width: min(calc(100% - clamp(18px, 4vw, 72px)), 1480px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.8vw, 20px);
  padding: 8px 12px;
  color: #302f2c;
  background:
    linear-gradient(135deg, #f9f7f2 0%, #f9f7f2 48%, #f9f7f2 100%);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 22px;
  box-shadow:
    0 18px 54px rgba(75, 65, 51, 0.109),
    inset 0 1px 0 rgba(75, 65, 51, 0.035);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  overflow: hidden;
  isolation: isolate;
}

.duae-site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, #f9f7f2 0%, #f9f7f2 48%, #f9f7f2 100%);
  opacity: 1;
}

.duae-site-header::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset-inline: 22px;
  inset-block-end: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(192, 151, 91, 0.52), transparent);
}

.duae-site-header > * {
  position: relative;
  z-index: 1;
}

.duae-brand {
  min-width: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 5px;
  border-radius: 16px;
  text-decoration: none;
}

.duae-brand__logo-wrap {
  position: relative;
  width: 52px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(238, 233, 224, 0.05);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(192, 151, 91, 0.16);
}

.duae-brand__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duae-brand__text {
  display: grid;
  line-height: 1.25;
}

.duae-brand__text strong {
  color: #302f2c;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.duae-brand__text span {
  color: #605b53;
  font-size: 0.7rem;
  font-weight: 600;
}

.duae-desktop-nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-inline: auto;
  overflow: hidden;
  padding-inline: 4px;
}

.duae-nav-link {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  color: #605b53;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.duae-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e1c394, transparent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.duae-nav-link:hover,
.duae-nav-link.is-active {
  color: #302f2c;
  background: rgba(238, 233, 224, 0.055);
  transform: none;
}

.duae-nav-link:hover::after,
.duae-nav-link.is-active::after {
  transform: scaleX(1);
}

.duae-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.duae-status-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #302f2c;
  background: rgba(48, 108, 76, 0.08);
  border: 1px solid rgba(48, 108, 76, 0.2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.duae-status-pill::before {
  content: "";
  width: 7px;
  aspect-ratio: 1;
  background: #d6e9db;
  border-radius: 50%;
  box-shadow: 0 0 12px #d6e9db;
  animation: duaePulse 1.8s ease-in-out infinite;
}

@keyframes duaePulse {
  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}

.duae-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  color: #302f2c;
  background: rgba(238, 233, 224, 0.055);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 13px;
  cursor: pointer;
}

.duae-menu-toggle span,
.duae-menu-toggle::before,
.duae-menu-toggle::after {
  content: "";
  width: 19px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.duae-menu-toggle::before {
  transform: translateY(-5px);
}

.duae-menu-toggle::after {
  transform: translateY(5px);
}

.duae-menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.duae-menu-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(45deg);
}

.duae-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-2px) rotate(-45deg);
}

.duae-mobile-menu {
  position: fixed;
  z-index: 105;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 118px clamp(16px, 4.6vw, 28px) 42px;
  overflow-y: auto;
  background: rgba(249, 247, 242, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.duae-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.duae-mobile-menu a {
  padding: 15px 18px;
  color: #302f2c;
  background: rgba(238, 233, 224, 0.045);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 15px;
  font-weight: 800;
  text-decoration: none;
}

body.duae-menu-open {
  overflow: hidden;
}

body.duae-unified-page main {
  width: min(100%, 1480px);
  padding: calc(82px + 74px) clamp(20px, 4vw, 72px) 72px;
}

body.duae-unified-page .duae-page-shell {
  display: grid !important;
  gap: clamp(34px, 7vw, 108px);
}

.duae-panel {
  position: relative;
  width: min(100%, 980px);
  margin-inline: auto;
  padding: clamp(24px, 3.4vw, 48px);
  color: #302f2c;
  background: linear-gradient(145deg, rgba(249, 247, 242, 0.88), rgba(249, 247, 242, 0.88));
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(75, 65, 51, 0.144);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  transform-style: preserve-3d;
}

.duae-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(238, 233, 224, 0.09), transparent 24%),
    radial-gradient(circle at 92% 8%, rgba(192, 151, 91, 0.1), transparent 23%);
  border-radius: inherit;
}

.duae-panel > * {
  position: relative;
  z-index: 1;
}

.duae-page-intro {
  min-height: min(68svh, 680px);
  display: grid;
  align-content: center;
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[dir="ltr"] .duae-page-intro {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.duae-page-intro h1,
.duae-page-intro h2 {
  font-size: clamp(2.35rem, 4.7vw, 4.95rem);
  line-height: 1.16;
  max-width: 900px;
}

.duae-motion-panel {
  --duae-panel-y: 0px;
  --duae-panel-rx: 0deg;
  --duae-panel-scale: 1;
  transform:
    translate3d(0, var(--duae-panel-y), 0)
    rotateX(var(--duae-panel-rx))
    scale(var(--duae-panel-scale));
  transition:
    opacity 720ms ease,
    transform 780ms cubic-bezier(0.2, 0.9, 0.18, 1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.duae-motion-panel:hover {
  border-color: rgba(192, 151, 91, 0.32);
  box-shadow: 0 30px 84px rgba(75, 65, 51, 0.16), 0 0 30px rgba(192, 151, 91, 0.06);
}

.duae-page-shell > h2,
.duae-page-shell > h3 {
  width: min(100%, 980px);
  margin-inline: auto;
}

.duae-panel .grid,
.duae-panel .g2,
.duae-panel .g3,
.duae-panel .procon {
  width: 100%;
}

.duae-panel .card,
.duae-panel .tl-panel,
.duae-panel details,
.duae-panel .vidbar {
  box-shadow: none;
}

.duae-panel table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.duae-progress-rail {
  position: fixed;
  z-index: 96;
  inset-inline-end: clamp(10px, 2vw, 28px);
  inset-block-start: 50%;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.duae-progress-dot {
  position: relative;
  width: 14px;
  aspect-ratio: 1;
  padding: 0;
  background: rgba(238, 233, 224, 0.13);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.duae-progress-dot::after {
  content: attr(aria-label);
  position: absolute;
  inset-inline-end: 24px;
  inset-block-start: 50%;
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  color: #302f2c;
  background: rgba(249, 247, 242, 0.9);
  border: 1px solid rgba(166, 155, 138, 0.28);
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.duae-progress-dot:hover::after,
.duae-progress-dot:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.duae-progress-dot.is-active {
  background: #e1c394;
  border-color: rgba(166, 155, 138, 0.9);
  box-shadow: 0 0 18px rgba(192, 151, 91, 0.7);
  transform: scale(1.18);
}

@media (max-width: 1120px) {
  .duae-desktop-nav .duae-nav-link:nth-last-child(-n + 3) {
    display: none;
  }
}

@media (max-width: 860px) {
  .duae-site-header {
    inset-block-start: max(8px, env(safe-area-inset-top));
    inset-inline: 9px;
    width: auto;
    margin: 0;
    height: 68px;
    padding: 8px 9px 8px 13px;
    border-radius: 19px;
  }

  .duae-brand__logo-wrap {
    width: 48px;
  }

  .duae-brand__text strong {
    font-size: 0.84rem;
  }

  .duae-brand__text span,
  .duae-desktop-nav,
  .duae-status-pill {
    display: none;
  }

  .duae-menu-toggle {
    display: grid;
  }

  body.duae-unified-page main {
    width: 100%;
    padding: calc(68px + 42px) clamp(16px, 4.6vw, 28px) 44px;
  }

  .duae-page-intro {
    min-height: min(72svh, 660px);
    width: 100%;
  }

  .duae-page-intro h1,
  .duae-page-intro h2 {
    font-size: clamp(2.15rem, 9.5vw, 3.75rem);
  }

  .duae-panel {
    width: 100%;
    padding: 22px;
    border-radius: 23px;
  }

  .duae-progress-rail {
    inset-inline-end: 8px;
  }

  .duae-progress-dot::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .duae-brand {
    width: 52px;
    justify-content: center;
    padding: 0;
  }

  .duae-brand__text {
    display: none;
  }

  .duae-page-intro {
    min-height: min(68svh, 590px);
  }

  .duae-page-intro,
  .duae-panel {
    width: min(100%, 336px);
    max-width: calc(100vw - 48px);
  }

  .duae-page-intro h1,
  .duae-page-intro h2 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .duae-panel .grid,
  .duae-panel .g2,
  .duae-panel .g3,
  .duae-panel .procon {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .duae-site-header {
    inset-block-start: max(10px, env(safe-area-inset-top));
    inset-inline: 10px;
    height: 66px;
    padding: 8px 9px;
    border-radius: 20px;
  }

  .duae-brand {
    width: auto;
    max-width: calc(100% - 58px);
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 5px;
  }

  .duae-brand__logo-wrap {
    width: 44px;
  }

  .duae-brand__text {
    min-width: 0;
    display: grid;
  }

  .duae-brand__text strong {
    max-width: min(44vw, 160px);
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .duae-menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .duae-mobile-menu {
    inset: calc(66px + max(22px, env(safe-area-inset-top))) 10px auto;
    max-height: calc(100svh - 108px);
    padding: 12px;
    gap: 7px;
    background: linear-gradient(160deg, rgba(249, 247, 242, 0.96), rgba(249, 247, 242, 0.96));
    border: 1px solid rgba(166, 155, 138, 0.28);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(75, 65, 51, 0.16);
    transform: translateY(-8px) scale(0.98);
  }

  .duae-mobile-menu.is-open {
    transform: none;
  }

  .duae-mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 15px;
    font-size: 0.86rem;
  }

  body.duae-unified-page main {
    padding: 162px 12px 42px;
  }

  .duae-page-intro {
    min-height: min(46svh, 430px);
    align-content: end;
    padding-block-start: 112px;
  }

  .duae-page-intro,
  .duae-panel {
    width: min(100%, 430px);
    max-width: calc(100vw - 24px);
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(249, 247, 242, 0.9), rgba(249, 247, 242, 0.88));
    box-shadow: 0 22px 64px rgba(75, 65, 51, 0.154);
  }

  .duae-page-intro h1,
  .duae-page-intro h2 {
    font-size: 2.2rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .duae-panel h2 {
    font-size: 1.78rem;
    line-height: 1.2;
  }

  .duae-panel h3 {
    font-size: 1.1rem;
    line-height: 1.25;
  }

  .duae-panel p,
  .duae-panel li,
  .duae-panel td,
  .duae-panel th {
    font-size: 0.88rem;
    line-height: 1.72;
  }

  .duae-panel .card,
  .duae-panel .tl-panel,
  .duae-panel details,
  .duae-panel .vidbar {
    border-radius: 17px;
  }

  .duae-progress-rail {
    inset-block-start: calc(max(10px, env(safe-area-inset-top)) + 76px);
    inset-inline-start: auto;
    inset-inline-end: auto;
    right: auto;
    left: 50%;
    display: flex;
    gap: 9px;
    padding: 8px 10px;
    background: rgba(249, 247, 242, 0.88);
    border: 1px solid rgba(166, 155, 138, 0.28);
    border-radius: 999px;
    box-shadow: 0 16px 42px rgba(75, 65, 51, 0.109);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    transform: translateX(-50%);
  }

  .duae-progress-dot {
    width: 10px;
  }

  .duae-progress-dot.is-active {
    transform: scale(1.25);
  }

  .duae-unified-quick {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .duae-unified-home {
    height: 42px;
    border-radius: 13px;
  }

  .duae-unified-quick select {
    height: 42px;
    width: 100%;
    min-width: 0;
    font-size: 0.76rem;
  }
}

@media (max-width: 390px) {
  .duae-page-intro,
  .duae-panel {
    padding: 17px;
  }

  .duae-page-intro h1,
  .duae-page-intro h2 {
    font-size: 2.05rem;
  }

  .duae-panel p,
  .duae-panel li,
  .duae-panel td,
  .duae-panel th {
    font-size: 0.82rem;
  }
}
