/* Guided first days: real controls remain visible through a guarded spotlight. */
.tutorial-layer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; font-family: system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif; color: #233f36; text-align: left; }
.tutorial-layer[hidden], .tutorial-layer [hidden] { display: none !important; }
.tutorial-layer *, .tutorial-layer *::before, .tutorial-layer *::after { box-sizing: border-box; }
.tutorial-shade { position: fixed; pointer-events: auto; background: rgba(8, 25, 22, .7); touch-action: none; }
.tutorial-target-frame { position: fixed; z-index: 1; border: 2px solid #ffe59d; border-radius: 13px; box-shadow: 0 0 0 4px #ffe59d23, inset 0 0 0 2px #fff7d423, 0 0 25px #ffe28b30; pointer-events: none; transition: box-shadow .2s; }
.tutorial-layer[data-interactive="true"] .tutorial-target-frame { animation: tutorial-beacon 1.7s ease-in-out infinite; }
.tutorial-target-label { position: absolute; right: -2px; top: -29px; padding: 5px 9px 5px 10px; border: 1px solid #ffe8a1; border-radius: 7px 7px 0 7px; background: #ffe9aa; color: #3e4632; box-shadow: 0 2px 7px #071c2326; font-size: 10px; line-height: 1.2; font-weight: 850; white-space: nowrap; }
.tutorial-bubble { position: fixed; z-index: 2; margin: 0; padding: 0; max-width: calc(100vw - 24px); border: 1px solid #ecdfbc; border-radius: 21px; background: #fffdf6; box-shadow: 0 14px 56px #071c235c, 0 3px 0 #173c3829; pointer-events: auto; outline: none; overscroll-behavior: contain; -webkit-tap-highlight-color: transparent; }
.tutorial-bubble-content { position: relative; display: flex; flex-direction: column; max-height: inherit; overflow: hidden; padding: 18px 21px 16px; border-radius: inherit; overscroll-behavior: contain; }
.tutorial-copy { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d4caae transparent; }
.tutorial-topline { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.tutorial-status { display: inline-flex; align-items: center; gap: 6px; color: #78836a; font-size: 10px; line-height: 1.3; font-weight: 750; letter-spacing: -.1px; }
.tutorial-status > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #78836a; }
.tutorial-step { display: inline-flex; justify-content: center; align-items: center; padding: 4px 8px; border-radius: 6px; background: #edf2e7; color: #49684d; font-size: 10px; line-height: 1.2; font-weight: 850; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tutorial-coach { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e9e9db; margin-bottom: 15px; }
.tutorial-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border: 1px solid #d2dec5; border-radius: 50%; background: #e9edda; }
.tutorial-avatar svg { display: block; width: 40px; height: 40px; }
.tutorial-coach > span:nth-child(2) { flex: 1; min-width: 0; }
.tutorial-coach small { display: block; margin-bottom: 3px; color: #89917b; font-size: 9px; line-height: 1.3; font-weight: 700; }
.tutorial-coach strong { display: block; color: #3e5d4b; font-size: 12px; line-height: 1.3; font-weight: 750; }
.tutorial-coach-dot { width: 7px; height: 7px; border: 2px solid #dce9cd; border-radius: 50%; background: #799a54; box-shadow: 0 0 0 3px #f0f4e8; }
.tutorial-title { margin: 0 0 9px !important; padding: 0; color: #214536; font-family: inherit; font-size: 20px; line-height: 1.42; font-weight: 850; letter-spacing: -.7px; word-break: keep-all; overflow-wrap: break-word; }
.tutorial-body { margin: 0 !important; padding: 0; color: #5a6b5c; font-size: 13px; line-height: 1.8; font-weight: 500; letter-spacing: -.24px; word-break: keep-all; overflow-wrap: break-word; white-space: pre-line; }
.tutorial-detail { margin: 11px 0 0 !important; padding: 10px 12px; border: 1px solid #e4e8d8; border-radius: 9px; background: #f2f5e9; color: #788369; font-size: 11px; line-height: 1.7; letter-spacing: -.15px; word-break: keep-all; overflow-wrap: break-word; white-space: pre-line; }
.tutorial-bottom { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tutorial-hint { flex: 1 1 130px; margin: 0 !important; padding: 0; color: #89917b; font-size: 10px; line-height: 1.6; font-weight: 600; word-break: keep-all; }
.tutorial-next { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; max-width: 100%; padding: 11px 16px; border: 1px solid #1d5545; border-radius: 10px; background: #245e4c; box-shadow: 0 2px 0 #173c37; color: #fffdf3; font-family: inherit; font-size: 12px; line-height: 1.4; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.tutorial-next::after { content: '→'; margin-left: 9px; color: #c2d6b8; font-size: 15px; }
.tutorial-next:hover { background: #1c513f; }
.tutorial-next:active { transform: translateY(1px); box-shadow: 0 1px 0 #173c37; }
.tutorial-next:focus-visible { outline: 3px solid #dba83d; outline-offset: 4px; }
.tutorial-next:disabled { cursor: wait; opacity: .6; }
.tutorial-progress { flex: 0 0 3px; height: 3px; margin-top: 16px; border-radius: 3px; overflow: hidden; background: #e9ecdf; }
.tutorial-progress > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg,#b8c7a3,#6c9368); transition: width .3s ease; }
.tutorial-pointer { position: absolute; z-index: -1; display: block; width: 19px; height: 19px; background: #fffdf6; border: 1px solid #ecdfbc; transform: rotate(45deg); }
.tutorial-bubble[data-placement="below"] .tutorial-pointer { top: -10px; left: calc(var(--tutorial-pointer-x, 50%) - 10px); border-right: 0; border-bottom: 0; }
.tutorial-bubble[data-placement="above"] .tutorial-pointer { bottom: -10px; left: calc(var(--tutorial-pointer-x, 50%) - 10px); border-left: 0; border-top: 0; }
.tutorial-bubble[data-placement="left"] .tutorial-pointer { right: -10px; top: calc(var(--tutorial-pointer-y, 50%) - 10px); border-left: 0; border-bottom: 0; }
.tutorial-bubble[data-placement="right"] .tutorial-pointer { left: -10px; top: calc(var(--tutorial-pointer-y, 50%) - 10px); border-right: 0; border-top: 0; }
.tutorial-bubble[data-placement="center"] .tutorial-pointer { display: none; }
.tutorial-layer[data-missing="true"] .tutorial-hint { font-size: 0; }
.tutorial-layer[data-missing="true"] .tutorial-hint::after { content: '자료를 불러오고 있습니다.'; font-size: 10px; }
.tutorial-target-label, .tutorial-layer:not([data-missing="true"]) .tutorial-hint { display: none !important; }
.tutorial-layer[data-has-next="false"]:not([data-missing="true"]) .tutorial-bottom { display: none; }
.tutorial-next { margin-left: auto; }
.tutorial-layer[data-missing="true"] .tutorial-next { display: none; }
.tutorial-enter { animation: tutorial-card-in .22s ease-out both; }
.tutorial-compact .tutorial-bubble-content { padding: 12px 16px; }
.tutorial-compact .tutorial-topline { margin-bottom: 8px; }
.tutorial-compact .tutorial-coach { gap: 8px; padding-bottom: 9px; margin-bottom: 10px; }
.tutorial-compact .tutorial-avatar, .tutorial-compact .tutorial-avatar svg { width: 30px; height: 30px; }
.tutorial-compact .tutorial-avatar { flex-basis: 30px; }
.tutorial-compact .tutorial-coach strong { font-size: 11px; }
.tutorial-compact .tutorial-coach small { font-size: 8px; margin-bottom: 1px; }
.tutorial-compact .tutorial-title { margin-bottom: 6px !important; font-size: 17px; line-height: 1.35; }
.tutorial-compact .tutorial-body { font-size: 12px; line-height: 1.65; }
.tutorial-compact .tutorial-detail { margin-top: 8px !important; padding: 7px 9px; font-size: 10px; line-height: 1.5; }
.tutorial-compact .tutorial-bottom { margin-top: 10px; gap: 7px; }
.tutorial-compact .tutorial-progress { margin-top: 10px; }
.tutorial-impact { margin-top: 13px; padding: 11px 12px 8px; border: 1px solid #dce6cf; border-radius: 11px; background: linear-gradient(135deg,#f3f7eb,#edf3e3); }
.tutorial-impact-head { display: flex; align-items: center; gap: 9px; padding-bottom: 8px; }
.tutorial-impact-icon { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid #cfddc4; border-radius: 9px; background: #e0ebd5; color: #548044; }
.tutorial-impact-icon svg { width: 18px; height: 18px; }
.tutorial-impact-heading { flex: 1; min-width: 0; }
.tutorial-impact-title { display: block; color: #3a6645; font-size: 12px; line-height: 1.4; font-weight: 800; letter-spacing: -.25px; overflow-wrap: anywhere; }
.tutorial-impact-body { margin: 3px 0 0 !important; color: #7b896c; font-size: 10px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.tutorial-impact-changes { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.tutorial-impact-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 9px; padding: 7px 0; border-top: 1px solid #dce6d1; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tutorial-impact-label { grid-column: 1; min-width: 0; color: #7a886b; font-size: 10px; font-weight: 650; overflow-wrap: anywhere; }
.tutorial-impact-values { grid-column: 1; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-width: 0; color: #304b37; font-size: 12px; overflow-wrap: anywhere; }
.tutorial-impact-before { color: #9bA38f; font-size: 10px; }
.tutorial-impact-arrow { color: #abb39c; font-size: 10px; }
.tutorial-impact-after { font-size: 13px; font-weight: 850; letter-spacing: -.35px; }
.tutorial-impact-delta { grid-column: 2; grid-row: 1 / span 2; padding: 4px 6px; border-radius: 6px; background: #e5ebdc; color: #80916d; font-size: 10px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; max-width: 105px; }
.tutorial-impact-delta[data-direction="up"] { background: #daeacb; color: #4c7b37; }
.tutorial-impact-delta[data-direction="up"]::before { content: '↗'; margin-right: 3px; }
.tutorial-impact-delta[data-direction="down"] { background: #efe6d4; color: #947545; }
.tutorial-compact .tutorial-impact { margin-top: 9px; padding: 8px 10px 5px; }
.tutorial-compact .tutorial-impact-row { padding: 5px 0; }
.tutorial-layer[data-waiting="true"] .tutorial-shade { background: rgba(8,25,22,.12); }
.tutorial-layer[data-waiting="true"] .tutorial-bubble { border-radius: 15px; background: #fffdf6f5; border-color: #dce3ce; box-shadow: 0 7px 25px #133c3030; }
.tutorial-layer[data-waiting="true"] .tutorial-bubble-content { padding: 10px 13px; }
.tutorial-layer[data-waiting="true"] .tutorial-pointer,
.tutorial-layer[data-waiting="true"] .tutorial-coach,
.tutorial-layer[data-waiting="true"] .tutorial-bottom { display: none !important; }
.tutorial-layer[data-waiting="true"] .tutorial-topline { margin-bottom: 5px; }
.tutorial-layer[data-waiting="true"] .tutorial-step { padding: 3px 6px; font-size: 9px; }
.tutorial-layer[data-waiting="true"] .tutorial-status { color: #779368; }
.tutorial-layer[data-waiting="true"] .tutorial-status > span { background: #8ca36e; box-shadow: 0 0 0 3px #8ca36e12; animation: tutorial-field-signal 2.2s ease-in-out infinite; }
.tutorial-layer[data-waiting="true"] .tutorial-copy { display: flex; flex-direction: column; overflow: hidden; }
.tutorial-layer[data-waiting="true"] .tutorial-title { flex: 0 0 auto; margin-bottom: 4px !important; font-size: 14px; line-height: 1.4; letter-spacing: -.4px; }
.tutorial-layer[data-waiting="true"] .tutorial-body { flex: 0 0 auto; font-size: 10.5px; line-height: 1.6; }
.tutorial-layer[data-waiting="true"] .tutorial-detail { flex: 0 0 auto; margin-top: 6px !important; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 10px; line-height: 1.4; }
.tutorial-layer[data-waiting="true"] .tutorial-impact { flex: 0 1 auto; min-height: 0; margin-top: 7px; padding: 6px 8px 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd8bc transparent; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-head { gap: 6px; padding-bottom: 4px; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-icon { flex-basis: 19px; width: 19px; height: 19px; border-radius: 6px; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-icon svg { width: 12px; height: 12px; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-title { font-size: 10px; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-body { display: none; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-row { grid-template-columns: minmax(0,1fr) auto auto; gap: 3px 6px; padding: 4px 0; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-label { grid-column: 1; font-size: 9px; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-values { grid-column: 2; gap: 4px; font-size: 10px; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-before,
.tutorial-layer[data-waiting="true"] .tutorial-impact-arrow { font-size: 9px; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-after { font-size: 10px; }
.tutorial-layer[data-waiting="true"] .tutorial-impact-delta { grid-column: 3; grid-row: 1; max-width: 80px; padding: 3px 4px; font-size: 9px; }
.tutorial-layer[data-waiting="true"] .tutorial-progress { margin-top: 9px; height: 3px; }
@keyframes tutorial-field-signal { 0%,100% { box-shadow: 0 0 0 2px #8ca36e12; } 50% { box-shadow: 0 0 0 5px #8ca36e20; } }
@keyframes tutorial-beacon { 0%,100% { box-shadow: 0 0 0 4px #ffe59d23,inset 0 0 0 2px #fff7d423,0 0 21px #ffe28b30; } 50% { box-shadow: 0 0 0 7px #ffe59d10,inset 0 0 0 2px #fff7d423,0 0 30px #ffe28b65; } }
@keyframes tutorial-card-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 400px) {
  .tutorial-bubble { border-radius: 17px; }
  .tutorial-bubble-content { padding: 14px 16px 13px; }
  .tutorial-topline { margin-bottom: 11px; }
  .tutorial-coach { margin-bottom: 12px; padding-bottom: 11px; }
  .tutorial-avatar,.tutorial-avatar svg { width: 34px; height: 34px; }
  .tutorial-avatar { flex-basis: 34px; }
  .tutorial-title { font-size: 18px; letter-spacing: -.55px; }
  .tutorial-body { font-size: 12px; line-height: 1.75; }
  .tutorial-bottom { margin-top: 12px; }
  .tutorial-next { min-height: 44px; padding: 10px 13px; }
  .tutorial-progress { margin-top: 12px; }
}
@media (max-height: 480px) {
  .tutorial-coach { display: none; }
  .tutorial-topline { margin-bottom: 9px; }
  .tutorial-bubble-content { padding: 12px 15px; }
  .tutorial-detail { padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-layer *, .tutorial-layer *::before, .tutorial-layer *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
