#registration-dialog {
  width: min(1100px,calc(100% - 24px)); max-height: 90dvh;
  overflow: hidden; padding: 0; border: 2px solid var(--ui-gold);
  border-radius: 8px; box-shadow: var(--ui-raised); background: #160a0b;
}
#registration-dialog[open] { display:flex; flex-direction:column; }
.reg-heading { position:relative; flex:none; padding:20px 46px; background:linear-gradient(#401315,#230b0c); text-align:center; border-bottom:1px solid #78472a; }
.reg-heading h2 { margin:0; color:#a2ee83; font-size:clamp(19px,2vw,29px); line-height:1.35; text-transform:uppercase; }
.reg-heading .panel-x { top:4px; right:6px; width:38px; height:38px; }
.reg-body { min-height:0; overflow:auto; overscroll-behavior:contain; padding:clamp(14px,3vw,32px); scrollbar-color:var(--ui-gold) #261111; }
.reg-body h3 { text-align:center; margin:0 0 16px; padding-bottom:12px; color:#ffdb72; border-bottom:1px dashed #955029; font-size:clamp(17px,2vw,22px); }
.reg-steps { list-style:none; padding:0; margin:0; counter-reset:step; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.reg-steps li { counter-increment:step; text-align:center; padding:16px 12px; border:1px solid #86532e; border-radius:6px; background:#2a1112; }
.reg-steps li::before { content:counter(step,decimal-leading-zero); display:grid; place-items:center; width:35px; height:35px; margin:0 auto 8px; border-radius:50%; border:1px solid #ed9652; color:#fff2d6; background:linear-gradient(#bd3325,#6b100e); font-weight:bold; }
.reg-steps strong { color:#ffda87; }
.reg-steps p,.reg-note p { margin:5px 0 0; color:#fae9da; }
.reg-example { max-width:680px; margin:20px auto; }
.reg-scene { display:grid; place-items:center; aspect-ratio:16/8; border:2px solid #d8ab48; border-radius:6px; background:#281914 url("registration-harbor.webp") center/cover no-repeat; box-shadow:var(--ui-raised); }
.reg-client { width:min(250px,78%); margin:12px auto; padding:12px 14px; border:3px double #b1a28c; border-radius:6px; background:linear-gradient(#323239f7,#141416fa); box-shadow:0 6px 18px #0009; }
.reg-client-title { color:#ffe09b; text-align:center; font-weight:700; letter-spacing:.06em; margin-bottom:8px; }
.reg-fields { display:grid; grid-template-columns:auto 1fr; gap:5px; font-size:12px; color:#f7eee4; }
.reg-fields i { background:#110e10; border:1px solid #82776d; }
.reg-actions { display:flex; gap:6px; justify-content:center; margin-top:10px; }
.reg-actions span { border:1px solid #8f8171; border-radius:2px; padding:2px 6px; font-size:12px; color:#fff2bc; }
.reg-actions span:first-child { background:#82221a; outline:2px solid #ffcb56; font-weight:700; }
.reg-example figcaption { text-align:center; font-size:14px; color:#eed5ae; margin-top:7px; }
.reg-note { padding:12px 16px; border:1px solid #b88b34; border-radius:5px; }
.reg-note b { color:#ffdc74; }
#registration-dialog .panel-bottom { margin:0; padding:10px; flex:none; }
@media(max-width:690px) {
  .reg-steps { grid-template-columns:1fr; gap:8px; }
  .reg-steps li { text-align:left; display:grid; grid-template-columns:35px 1fr; gap:2px 12px; padding:10px; }
  .reg-steps li::before { grid-row:span 2; margin:0; }
  .reg-steps p { grid-column:2; }
  .reg-heading { padding:14px 40px; }
}
