#sis-tutorial-root { position: fixed; right: 1rem; bottom: 1rem; z-index: 950; max-width: min(22rem, calc(100vw - 2rem)); font-family: inherit; }
#sis-tutorial-root[hidden], .sis-tour-dialog[hidden], .sis-tour-dialog [hidden] { display: none !important; }
#sis-tutorial-root [data-tutorial-launch] { display: block; margin-left: auto; border: 1px solid #1c1c1c; border-radius: 2rem; background: #1c1c1c; color: #fff; padding: .7rem 1rem; font: inherit; font-weight: 650; font-size: .88rem; line-height: 1.35; cursor: pointer; box-shadow: 0 3px 14px #0002; }
#sis-tutorial-root [data-tutorial-launch]::before { content: '?'; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: .45rem; border-radius: 50%; background: var(--guud-yellow, #f0b323); color: #1c1c1c; font-weight: 800; }
#sis-tutorial-root [data-tutorial-launch]:hover { background: #383838; }
#sis-tutorial-root [data-tutorial-status] { margin: .5rem 0 0; padding: .6rem .8rem; border-radius: .65rem; color: #1c1c1c; background: #fff; box-shadow: 0 2px 12px #0002; font-size: .82rem; line-height: 1.45; }
#sis-tutorial-root [data-tutorial-status]:empty { display: none; }
.sis-tour-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; background: transparent; overflow: hidden; overscroll-behavior: contain; color: #1c1c1c; font-family: inherit; z-index: 2147483000; }
.sis-tour-dialog::backdrop { background: transparent; }
.sis-tour-dialog[open] { display: block; }
.sis-tour-shade { position: fixed; inset: 0; background: rgb(12 17 23 / 62%); pointer-events: none; }
.sis-tour-spotlight { position: fixed; border: 3px solid var(--guud-yellow, #f0b323); border-radius: 8px; background: transparent; box-shadow: 0 0 0 100vmax rgb(12 17 23 / 62%); pointer-events: none; box-sizing: border-box; }
.sis-tour-panel { position: fixed; width: 370px; max-width: calc(100vw - 28px); max-height: calc(100vh - 28px); overflow: auto; overscroll-behavior: contain; border: 1px solid #e1e1e1; border-top: 4px solid var(--guud-yellow, #f0b323); border-radius: 14px; background: #fff; box-shadow: 0 14px 70px #0005; padding: 1.1rem 1.2rem 1.15rem; box-sizing: border-box; text-align: left; line-height: 1.5; }
.sis-tour-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; margin: 0 0 .8rem; }
.sis-tour-label { margin: 0; color: #646464; font-size: .75rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.sis-tour-close { flex: 0 0 auto; border: 0; border-radius: 5px; padding: .1rem .25rem; background: transparent; color: #4b4b4b; font: inherit; font-size: .76rem; text-decoration: underline; cursor: pointer; }
.sis-tour-heading { padding: 0; margin: 0 0 .7rem; font: inherit; font-size: 1.2rem; font-weight: 750; color: #1c1c1c; line-height: 1.3; overflow-wrap: anywhere; }
.sis-tour-heading:focus { outline: none; }
.sis-tour-description { margin: 0; font-size: .93rem; line-height: 1.6; color: #333; white-space: pre-line; overflow-wrap: anywhere; }
.sis-tour-feedback { margin: .85rem 0 0; padding: .6rem .7rem; background: #fff6d6; border-radius: 7px; color: #3a310c; font-size: .82rem; line-height: 1.5; }
.sis-tour-feedback:empty { display: none; }
.sis-tour-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 1.15rem; }
.sis-tour-counter { color: #676767; font-size: .78rem; white-space: nowrap; }
.sis-tour-actions { display: flex; gap: .5rem; margin-left: auto; }
.sis-tour-button { border: 1px solid #d2d2d2; border-radius: 7px; padding: .55rem .8rem; font: inherit; font-size: .85rem; font-weight: 650; line-height: 1.3; color: #1c1c1c; background: #fff; cursor: pointer; }
.sis-tour-next { background: var(--guud-yellow, #f0b323); border-color: var(--guud-yellow, #f0b323); }
.sis-tour-button:hover { background: #f0f0f0; }
.sis-tour-next:hover { background: var(--guud-yellow-hover, #ecad19); }
.sis-tour-button:disabled { opacity: .55; cursor: wait; }
.sis-tour-dialog button:focus-visible, #sis-tutorial-root button:focus-visible { outline: 3px solid #1c1c1c; outline-offset: 3px; }
@media (max-width: 600px) {
  #sis-tutorial-root { right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); }
  #sis-tutorial-root [data-tutorial-launch] { padding: .65rem .85rem; font-size: .82rem; }
  .sis-tour-panel { width: 370px; padding: .95rem 1rem 1rem; }
  .sis-tour-heading { font-size: 1.1rem; }
  .sis-tour-description { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sis-tour-dialog, .sis-tour-dialog * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print { #sis-tutorial-root, .sis-tour-dialog { display: none !important; } }

/* Compact guidance uses the same rhythm as the application controls. */
#sis-tutorial-root [data-tutorial-launch] { min-height: 40px; padding: 9px 14px; font-size: 12px; box-shadow: 0 3px 12px #0002; }
#sis-tutorial-root [data-tutorial-launch]::before { width: 22px; height: 22px; margin-right: 7px; }
#sis-tutorial-root [data-tutorial-status] { padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.sis-shell #sis-tutorial-root { right: 24px; bottom: calc(var(--shell-footer) + 12px); }
.sis-tour-panel { padding: 22px; border-radius: 14px; }
.sis-tour-label { font-size: 12px; }
.sis-tour-heading { font-size: 21px; margin-bottom: 12px; }
.sis-tour-description { font-size: 14px; line-height: 1.7; }
.sis-tour-counter { font-size: 12px; }
.sis-tour-close { padding: 6px 9px; border: 1px solid #e1e4e8; border-radius: 7px; font-size: 12px; text-decoration: none; }
.sis-tour-button { min-height: 38px; padding: 8px 13px; font-size: 13px; border-radius: 8px; }
.sis-tour-footer { margin-top: 22px; gap: 10px; }
@media (max-width: 600px) { .sis-shell #sis-tutorial-root { right: 12px; bottom: calc(var(--shell-footer) + 8px); } #sis-tutorial-root [data-tutorial-launch] { font-size: 12px; padding: 8px 12px; } }
/* Keep help available without covering a narrow screen with its full label. */
@media (max-width: 768px) {
  #sis-tutorial-root { right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  #sis-tutorial-root [data-tutorial-launch] { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
  #sis-tutorial-root [data-tutorial-launch]::before { margin: 0; }
  #sis-tutorial-root .tutorial-launch-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sis-shell #sis-tutorial-root { right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(var(--shell-footer) + 8px); }
  body:not(.sis-shell):has(#sis-tutorial-root) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
