.editor-tutorial-dialog {
  width:min(620px,calc(100vw - 24px));
  max-width:none;
  max-height:calc(100dvh - 24px);
  margin:auto;
  padding:0;
  overflow:hidden;
  color:#eef4e8;
  background:#18211e;
  border:1px solid #6b8051;
  border-radius:14px;
  box-shadow:0 24px 100px #000b;
}
.editor-tutorial-dialog[open] { display:flex; flex-direction:column; }
.editor-tutorial-dialog::backdrop { background:#080e0cdb; backdrop-filter:blur(5px); }
.editor-tutorial-header { display:flex; flex:none; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 20px 14px; border-bottom:1px solid #354438; }
.editor-tutorial-header > div { min-width:0; }
.editor-tutorial-dialog .editor-tutorial-eyebrow { margin:0 0 8px; color:#c4d99c; font-size:10px; font-weight:650; letter-spacing:1.3px; line-height:1.5; }
.editor-tutorial-dialog h2 { margin:0; font-size:23px; line-height:1.35; }
.editor-tutorial-dialog .editor-tutorial-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:18px 20px; scroll-padding-block:12px; }
.editor-tutorial-description { margin:0; color:#bfccba; font-size:14px; line-height:1.8; }
.editor-tutorial-steps { display:grid; gap:14px; list-style:none; padding:0; margin:22px 0 0; }
.editor-tutorial-steps li { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.editor-tutorial-step-number { display:grid; flex:none; place-items:center; width:30px; height:30px; border:1px solid #83985f; border-radius:50%; color:#d5ff5f; font-size:13px; font-weight:700; }
.editor-tutorial-steps strong { display:block; margin:1px 0 4px; color:#e9f4db; font-size:14px; line-height:1.5; }
.editor-tutorial-steps p { margin:0; color:#b7c8b1; font-size:13px; line-height:1.75; }
.editor-tutorial-navigation { display:flex; flex:none; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; padding:14px 20px; border-top:1px solid #354438; background:#1b2820; }
.editor-tutorial-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:44px; min-height:46px; padding:10px 15px; border:1px solid #6d805a; border-radius:7px; color:#e2eed6; background:#27342b; font:600 14px/1.4 "Segoe UI","Leelawadee UI",Tahoma,sans-serif; text-align:center; cursor:pointer; }
.editor-tutorial-button:hover { background:#354932; border-color:#b6d183; }
.editor-tutorial-button.is-primary { color:#1c2b0d; border-color:#d5ff5f; background:#d5ff5f; }
.editor-tutorial-button.is-primary:hover { background:#e6ff9b; border-color:#e6ff9b; }
.editor-tutorial-button:focus-visible { outline:2px solid #d5ff5f; outline-offset:3px; }
.editor-tutorial-dialog .editor-tutorial-close { flex:none; width:44px; height:44px; padding:0; font-size:25px; font-weight:400; }
.editor-tutorial-screen-name { display:block; color:#eef7dc; font-size:21px; line-height:1.5; overflow-wrap:anywhere; }
.editor-tutorial-size { margin:8px 0 16px; color:#d5ff5f; font-size:15px; line-height:1.5; }
.editor-tutorial-ready-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.editor-tutorial-ready-actions .editor-tutorial-button { width:100%; }
#builder-tutorial-note { margin:0 0 8px; padding:10px 12px; border-left:3px solid #d5ff5f; border-radius:5px; color:#dfeec9; background:#d5ff5f0c; font-size:12px; line-height:1.7; }
#builder-tutorial-skip { min-height:44px; margin:0 0 14px; padding:7px 10px; font-size:12px; }
@media(max-width:480px) {
  .editor-tutorial-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:12px; }
  .editor-tutorial-header { padding:14px; }
  .editor-tutorial-dialog h2 { font-size:21px; }
  .editor-tutorial-dialog .editor-tutorial-content { padding:14px; }
  .editor-tutorial-navigation { padding:12px 14px; }
  .editor-tutorial-description { font-size:13px; }
  .editor-tutorial-steps { gap:12px; margin-top:18px; }
  .editor-tutorial-steps p { font-size:12px; }
  .editor-tutorial-ready-actions .editor-tutorial-button { padding-inline:8px; font-size:13px; }
}
@media(orientation:landscape) and (max-height:600px) {
  #screen-builder-dialog { position:fixed; }
  #screen-builder-dialog #builder-tutorial-skip { position:absolute; top:6px; right:64px; width:auto; max-width:155px; min-height:44px; height:44px; margin:0; padding:7px 10px; }
  #screen-builder-dialog .builder-heading > div:first-child { max-width:calc(100% - 180px); }
  #screen-builder-dialog #builder-tutorial-note { flex:none; max-height:56px; overflow:auto; margin:0; padding:6px 12px; font-size:11px; line-height:1.6; }
  .editor-tutorial-dialog { width:min(700px,calc(100vw - 16px)); max-height:calc(100dvh - 16px); }
  .editor-tutorial-header { padding:8px 12px; align-items:center; }
  .editor-tutorial-dialog .editor-tutorial-eyebrow { display:none; }
  .editor-tutorial-dialog h2 { font-size:18px; }
  .editor-tutorial-dialog .editor-tutorial-content { padding:12px; }
  .editor-tutorial-steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; margin-top:12px; }
  .editor-tutorial-steps p { font-size:12px; line-height:1.6; }
  .editor-tutorial-description { font-size:12px; line-height:1.7; }
  .editor-tutorial-navigation { padding:8px 12px; }
  .editor-tutorial-size { margin:4px 0 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .editor-tutorial-dialog *,#builder-tutorial-skip { transition:none; scroll-behavior:auto; }
}
