/* DPRO TUTORIAL HAIR / R3 FIRST10 STANDARD V1.1
   Tutorial-only UI. Dedicated drag handle + explicit Close. */
.dpro-tutorial-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.dpro-tutorial-launcher,.dpro-guide-center-link{min-height:38px;padding:7px 11px;border-radius:10px;border:1px solid #c3d7cd;background:#fff;color:#153f34;font:850 .74rem/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;cursor:pointer;white-space:nowrap}
.dpro-tutorial-launcher{background:#153f34;color:#fff;border-color:#153f34;box-shadow:0 6px 16px rgba(21,63,52,.14)}
.dpro-tutorial-launcher:focus-visible,.dpro-guide-center-link:focus-visible,.dpro-tutorial-card button:focus-visible,.dpro-tutorial-card__drag-handle:focus-visible{outline:3px solid rgba(38,112,92,.34);outline-offset:2px}
.dpro-tutorial-shield{position:fixed;inset:0;z-index:2147483000;background:rgba(7,22,17,.08);pointer-events:auto}
.dpro-tutorial-highlight{position:fixed;z-index:2147483001;pointer-events:none;border:3px solid #f4bd55;border-radius:14px;background:rgba(255,255,255,.03);box-shadow:0 0 0 9999px rgba(5,19,14,.58),0 0 0 6px rgba(244,189,85,.2);transition:top .18s ease,left .18s ease,width .18s ease,height .18s ease,opacity .12s ease}
.dpro-tutorial-highlight[hidden]{display:none!important}
.dpro-tutorial-card{position:fixed;z-index:2147483002;width:min(430px,calc(100vw - 24px));max-height:min(680px,calc(100vh - 24px));overflow:auto;padding:18px;border:1px solid #cbdad2;border-radius:18px;background:#fff;color:#17221d;box-shadow:0 24px 70px rgba(4,24,17,.34);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;line-height:1.6}
.dpro-tutorial-card__top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:start}
.dpro-tutorial-card__chapter{color:#26705c;font-size:.68rem;font-weight:950;letter-spacing:.08em;align-self:center}
.dpro-tutorial-card__tools{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.dpro-tutorial-card.is-dragging{user-select:none}
.dpro-tutorial-card__drag-handle{display:inline-flex;align-items:center;justify-content:center;min-width:70px;min-height:34px;padding:5px 9px;border:1px dashed #88aa9a;border-radius:999px;background:#eef6f2;color:#153f34;font-size:.66rem;font-weight:950;line-height:1;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.dpro-tutorial-card.is-dragging .dpro-tutorial-card__drag-handle{cursor:grabbing;background:#dfeee7}
.dpro-tutorial-card__close{min-height:34px!important;padding:5px 9px!important;border-color:#d4ddd8!important;background:#fff!important;color:#596861!important;font-size:.66rem!important}
.dpro-tutorial-card__progress{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#66756e;font-size:.69rem;font-weight:900}
.dpro-tutorial-card__bar{width:112px;height:6px;border-radius:999px;background:#e7eeea;overflow:hidden}
.dpro-tutorial-card__bar>span{display:block;height:100%;border-radius:999px;background:#26705c;transition:width .18s ease}
.dpro-tutorial-card h3{margin:10px 0 0;font-size:1.18rem;line-height:1.35}
.dpro-tutorial-card__body{margin:9px 0 0;color:#34443d;font-size:.86rem}
.dpro-tutorial-card__safety{margin-top:11px;padding:9px 10px;border:1px solid #ead7ae;border-radius:11px;background:#fff8e9;color:#71521f;font-size:.72rem}
.dpro-tutorial-card__missing{margin-top:9px;padding:8px 10px;border-radius:10px;background:#f1f4f2;color:#607068;font-size:.7rem}
.dpro-tutorial-card__controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px;padding-top:13px;border-top:1px solid #e2e9e5}
.dpro-tutorial-card__left,.dpro-tutorial-card__right{display:flex;gap:7px;flex-wrap:wrap}
.dpro-tutorial-card button{min-height:38px;padding:7px 11px;border:1px solid #c6d5ce;border-radius:9px;background:#fff;color:#153f34;cursor:pointer;font-size:.73rem;font-weight:900}
.dpro-tutorial-card button[data-role="next"]{border-color:#153f34;background:#153f34;color:#fff}
.dpro-tutorial-card button[data-role="skip"]{color:#7f5c20;border-color:#e4cf9d;background:#fffaf0}
.dpro-tutorial-card button:disabled{opacity:.45;cursor:not-allowed}
.dpro-tutorial-toast{position:fixed;z-index:2147482999;right:18px;bottom:18px;max-width:min(360px,calc(100vw - 36px));padding:11px 13px;border:1px solid #c9d8d1;border-radius:12px;background:#fff;color:#34443d;box-shadow:0 12px 34px rgba(20,58,47,.16);font-size:.76rem;font-weight:850}
.dpro-tutorial-toast[hidden]{display:none!important}
@media(max-width:760px){
  .dpro-tutorial-actions{gap:5px}.dpro-tutorial-launcher,.dpro-guide-center-link{min-height:36px;padding:6px 8px;font-size:.68rem}.dpro-guide-center-link{display:none}
  .dpro-tutorial-card{left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;width:auto;max-height:min(62vh,560px);padding:15px;border-radius:17px}
  .dpro-tutorial-card__top{grid-template-columns:minmax(0,1fr) auto}.dpro-tutorial-card__tools{max-width:180px}.dpro-tutorial-card__drag-handle,.dpro-tutorial-card__close{min-height:36px!important}.dpro-tutorial-card__bar{width:78px}.dpro-tutorial-highlight{border-radius:11px}
}
@media(max-width:340px){.dpro-tutorial-card__tools{gap:4px}.dpro-tutorial-card__drag-handle{min-width:60px;padding-inline:7px}.dpro-tutorial-card__close{padding-inline:7px!important}.dpro-tutorial-card__controls{align-items:flex-end}.dpro-tutorial-card__right{justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){.dpro-tutorial-highlight,.dpro-tutorial-card__bar>span{transition:none}}

/* R3 MOBILE OVERFLOW FIX V1.1: keep the owner admin-code row inside the viewport. */
@media(max-width:760px){
  body.hair-operation-owner #topAdminCodeForm,
  body.hair-operation-owner #topAdminConnectionStatus{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box;
  }
  body.hair-operation-owner #topAdminCodeForm .top-admin-code__input{
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
  }
  body.hair-operation-owner #topAdminCodeForm .top-admin-code__save,
  body.hair-operation-owner #topAdminCodeForm .top-admin-code__clear{
    flex:0 1 auto!important;
    min-width:0!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
  body.hair-operation-owner #topAdminConnectionStatus{
    overflow-wrap:anywhere;
  }
}

/* R3 NARROW LAUNCHER FIX V1.2: keep tutorial entry inside 320px topbar. */
@media(max-width:340px){
  body.hair-operation-owner .dpro-tutorial-actions{
    flex:0 1 96px!important;
    width:96px!important;
    max-width:96px!important;
    min-width:0!important;
  }
  body.hair-operation-owner #dproTutorialLauncher{
    width:96px!important;
    max-width:96px!important;
    min-width:0!important;
    padding:5px 6px!important;
    white-space:normal!important;
    line-height:1.15!important;
    text-align:center;
  }
}
