/* Tutorials: player chrome, mock-UI scene kit and animation primitives. */
.tut-root { display: grid; gap: 28px; min-width: 0; color: #17241f; }
.tut-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }

/* Player */
.tut-player { min-width: 0; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid #e2e7df; box-shadow: 0 24px 60px -36px rgba(18,60,45,.55); outline: none; }
.tut-player:focus-visible { box-shadow: 0 0 0 3px #0f9f6e55, 0 24px 60px -36px rgba(18,60,45,.55); }
.tut-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f5f5f1; }
.tut-canvas {
  position: absolute; left: 0; top: 0; width: 800px; height: 450px; box-sizing: border-box; padding: 26px 30px; overflow: hidden;
  transform: scale(var(--tut-scale, 1)); transform-origin: 0 0; font-size: 15px; line-height: 1.4; color: #17241f;
  background: radial-gradient(90% 70% at 100% 0%, #eaf3ec 0%, transparent 60%), #f7f8f4;
}
.tut-canvas *, .tut-canvas *::before, .tut-canvas *::after { box-sizing: border-box; }
.tut-canvas h2, .tut-canvas h3, .tut-canvas p, .tut-canvas ul, .tut-canvas ol { margin: 0; padding: 0; }
.tut-stage.is-paused .tut-canvas *, .tut-stage.is-paused .tut-canvas *::before, .tut-stage.is-paused .tut-canvas *::after { animation-play-state: paused !important; }
.tut-stage.is-reduced .tut-canvas *, .tut-stage.is-reduced .tut-canvas *::before, .tut-stage.is-reduced .tut-canvas *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-play-state: running !important; }
.tut-stage.is-reduced .tut-cursor { display: none; }
.tut-bigplay {
  position: absolute; left: 50%; top: 50%; z-index: 30; display: grid; place-items: center; width: 76px; height: 76px; padding: 0 0 0 4px;
  border: 0; border-radius: 50%; background: rgba(22,56,45,.92); color: #fff; cursor: pointer; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(255,255,255,.35), 0 18px 40px -12px rgba(0,0,0,.45); transition: transform .15s, background .15s;
}
.tut-bigplay:hover { transform: translate(-50%, -50%) scale(1.06); background: #226452; }
.tut-bigplay[hidden] { display: none; }
.tut-end { position: absolute; inset: 0; z-index: 31; display: grid; place-items: center; padding: 16px; background: rgba(13,33,26,.72); backdrop-filter: blur(4px); }
.tut-end[hidden] { display: none; }
.tut-end-card { display: grid; justify-items: center; gap: 10px; max-width: 420px; padding: 26px 28px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.tut-end-card p { margin: 0; color: #0f8a5f; font-size: 11px; font-weight: 750; letter-spacing: 1.5px; }
.tut-end-card h3 { margin: 0; font-size: 22px; letter-spacing: -.5px; }
.tut-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.tut-end-actions .btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tut-end-next { display: inline-flex; align-items: center; gap: 6px; color: #226452; font-size: 13px; font-weight: 650; text-decoration: none; }

.tut-controls { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #12291f; color: #e9f2ec; }
.tut-ctl { display: grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; transition: background .15s; }
.tut-ctl:hover { background: rgba(255,255,255,.1); }
.tut-ctl:focus-visible, .tut-seg:focus-visible { outline: 2px solid #d9ea95; outline-offset: 2px; }
.tut-ctl-main { width: 40px; height: 40px; border-radius: 50%; background: #d9ea95; color: #12291f; }
.tut-ctl-main:hover { background: #e7f2b5; }
.tut-ctl[hidden] { display: none; }
.tut-segments { display: flex; flex: 1; gap: 4px; min-width: 60px; margin: 0 6px; }
.tut-seg { position: relative; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); cursor: pointer; overflow: visible; }
.tut-seg::after { content: ""; position: absolute; inset: -10px 0; }
.tut-seg span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: #d9ea95; }
.tut-seg.is-active { background: rgba(255,255,255,.3); }
.tut-time { flex: none; min-width: 74px; color: #b9cdbf; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.tut-caption { min-height: 64px; margin: 0; padding: 14px 20px 16px; background: #fbfcfa; border-top: 1px solid #edf0ea; color: #26352f; font-size: 15px; line-height: 1.6; }
.tut-player:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; background: #0b1914; }
.tut-player:fullscreen .tut-stage { width: min(100vw, calc((100vh - 140px) * 16 / 9)); margin: 0 auto; }
.tut-player:fullscreen .tut-caption { background: #0b1914; color: #e9f2ec; border: 0; text-align: center; font-size: 18px; }

/* Side: chapters */
.tut-side { display: grid; gap: 14px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid #e2e7df; }
.tut-side-head .eyebrow { margin-bottom: 6px; }
.tut-side-head h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.tut-chapters { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.tut-chapters button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: #33463d; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: background .15s; }
.tut-chapters button:hover { background: #f3f6f2; }
.tut-chapters button small { color: #8a958d; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tut-num { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef2ec; color: #52637a; font-size: 12px; font-weight: 700; }
.tut-num svg { position: absolute; opacity: 0; }
.tut-chapters button.is-done .tut-num { background: #e7f6ee; color: #0f8a5f; }
.tut-chapters button.is-done .tut-num svg { opacity: 1; }
.tut-chapters button.is-done .tut-num b { opacity: 0; }
.tut-chapters button.is-active { background: #e9f0e7; color: #17241f; font-weight: 650; }
.tut-chapters button.is-active .tut-num { background: #226452; color: #fff; }
.tut-chapters button.is-active .tut-num svg { opacity: 0; }
.tut-chapters button.is-active .tut-num b { opacity: 1; }
.tut-cta { justify-content: center; text-align: center; text-decoration: none; }

/* Library */
.tut-library h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: -.4px; }
.tut-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tut-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid #e2e7df; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tut-card:hover { transform: translateY(-2px); border-color: #c4d4ca; box-shadow: 0 16px 30px -22px rgba(18,60,45,.6); }
.tut-card.is-current { border-color: #226452; box-shadow: 0 0 0 3px #22645218; }
.tut-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; background: radial-gradient(80% 120% at 100% 0%, rgba(217,234,149,.35), transparent 50%), linear-gradient(135deg, #16382d, #226452); }
.tut-thumb i { font-size: 34px; font-style: normal; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.tut-thumb b { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d9ea95; color: #12291f; }
.tut-card-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.tut-card-body strong { font-size: 15px; }
.tut-card-body span { color: #63716a; font-size: 13px; line-height: 1.5; }
.tut-card-body small { display: inline-flex; align-items: center; gap: 5px; color: #75816d; font-size: 12px; }
.header-tour { display: inline-flex; align-items: center; gap: 8px; flex: none; text-decoration: none; white-space: nowrap; }

/* ---------- animation primitives ---------- */
.tut-in { animation: tut-in .55s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.tut-pop { animation: tut-pop .5s cubic-bezier(.3,1.5,.5,1) var(--d, 0s) both; }
.tut-off { animation: tut-off .35s ease var(--d, 0s) both; }
.tut-on { animation: tut-on .45s ease var(--d, 0s) both; }
.tut-grow { width: var(--w); animation: tut-grow 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.tut-draw { stroke-dasharray: 420; animation: tut-draw 1.4s ease var(--d, 0s) both; }
@keyframes tut-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tut-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tut-off { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes tut-on { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tut-grow { from { width: 0; } to { width: var(--w); } }
@keyframes tut-draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }

.tut-cursor { position: absolute; left: 0; top: 0; z-index: 20; width: 0; height: 0; pointer-events: none;
  animation: tut-cursor-move 1.1s cubic-bezier(.5,0,.2,1) var(--d, 0s) both, tut-cursor-hide .4s ease calc(var(--d, 0s) + 2.4s) forwards; }
.tut-cursor::before { content: ""; position: absolute; left: -3px; top: -2px; width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5 19.5 13l-7 1.2 4 7.3-2.7 1.4-4-7.3L4.5 20Z' fill='%23111' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.tut-cursor i { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; background: rgba(15,159,110,.45); opacity: 0; animation: tut-click .7s ease calc(var(--d, 0s) + 1.05s) both; }
@keyframes tut-cursor-move { 0% { opacity: 0; transform: translate(var(--x0), var(--y0)); } 15% { opacity: 1; } 100% { opacity: 1; transform: translate(var(--x1), var(--y1)); } }
@keyframes tut-cursor-hide { to { opacity: 0; } }
@keyframes tut-click { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.6); } }

/* ---------- mock UI kit (canvas pixels) ---------- */
.tm-chip { position: absolute; left: 30px; top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid #e2e7df; color: #33463d; font-size: 12.5px; font-weight: 650; }
.tm-chip b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #226452; color: #fff; font-size: 11.5px; }
.tm-chip ~ * { position: relative; }
.tm-chip + * { margin-top: 44px; }
.tm-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tm-row-head h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.5px; }
.tm-row-head small { color: #63716a; font-size: 12.5px; }
.tm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid #d7ded5; color: #226452; font-size: 13px; font-weight: 650; white-space: nowrap; }
.tm-btn-primary { background: #226452; border-color: #226452; color: #fff; }
.tm-emoji { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #f1f5ef; font-size: 18px; }
.tm-bar { height: 7px; border-radius: 999px; background: #edf1eb; overflow: hidden; }
.tm-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f9f6e, #226452); }

.tm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tm-debt { display: grid; gap: 10px; padding: 13px 15px; border-radius: 14px; background: #fff; border: 1px solid #e2e7df; box-shadow: 0 6px 16px -14px rgba(18,60,45,.6); }
.tm-debt-top { display: flex; align-items: center; gap: 10px; }
.tm-debt-top > div { display: grid; flex: 1; min-width: 0; }
.tm-debt-top b { font-size: 14.5px; }
.tm-debt-top small { color: #75816d; font-size: 11.5px; }
.tm-debt-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tm-debt-nums div { display: grid; }
.tm-debt-nums small { color: #8a958d; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; }
.tm-debt-nums b { font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-switch { position: relative; width: 38px; height: 22px; flex: none; border-radius: 999px; background: #c9d2cc; }
.tm-switch i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tm-switch.is-on { background: #226452; }
.tm-switch.is-on i { transform: translateX(16px); }
.tm-flip-off { animation: tm-switch-off .3s ease var(--d) both; }
.tm-flip-off i { animation: tm-knob-off .3s ease var(--d) both; }
@keyframes tm-switch-off { from { background: #226452; } to { background: #c9d2cc; } }
@keyframes tm-knob-off { from { transform: translateX(16px); } to { transform: none; } }
.tm-dim-at { animation: tm-dim .4s ease 2.1s both; }
@keyframes tm-dim { to { opacity: .5; filter: grayscale(.8); } }
.tm-focus-at { animation: tm-focus .5s ease 4.1s both; }
@keyframes tm-focus { to { border-color: #e0b341; box-shadow: 0 0 0 3px #f6d97a55; } }
.tm-star { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff4d6; color: #c98a00; font-size: 15px; }
.tm-tag { position: absolute !important; z-index: 3; padding: 5px 10px; border-radius: 999px; background: #17241f; color: #fff; font-size: 11.5px; font-weight: 650; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.tm-tag-gold { background: #c98a00; }

.tm-strats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tm-strats-3 { grid-template-columns: repeat(3, 1fr); margin-top: 60px; }
.tm-strat { position: relative; display: grid; align-content: start; gap: 5px; min-height: 150px; padding: 13px 13px; border-radius: 14px; background: #fff; border: 1.5px solid #e2e7df; }
.tm-strat.is-locked { background: #fbfaff; border-style: dashed; border-color: #d9cffb; }
.tm-ring { position: absolute; inset: -1.5px; border: 2px solid #226452; border-radius: 14px; box-shadow: 0 0 0 4px #2264521c; pointer-events: none; }
.tm-strat-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tm-strat-head b { font-size: 14.5px; }
.tm-strat small { color: #63716a; font-size: 11.5px; }
.tm-reco { padding: 2px 7px; border-radius: 999px; background: #e7f3ec; color: #12603f; font-size: 9.5px; font-weight: 750; }
.tm-pro { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #f1edff; color: #6d4bd8; font-size: 9.5px; font-weight: 800; letter-spacing: .6px; }
.tm-strat-meta { display: grid; margin-top: 6px; padding-top: 8px; border-top: 1px dashed #e2e7df; color: #63716a; font-size: 11.5px; font-style: normal; }
.tm-strat-meta b { color: #17241f; font-size: 16px; }
.tm-strat-meta i { font-style: normal; }
.tm-first { color: #63716a; font-size: 10.5px; }
.tm-first b { color: #17241f; }
.tm-using { display: inline-grid; font-size: 11px; font-weight: 650; letter-spacing: 0; }
.tm-using span { grid-area: 1 / 1; padding: 3px 9px; border-radius: 999px; background: #eef6f1; color: #1d5b47; }
.tm-toast { position: absolute !important; left: 50%; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #17241f; color: #fff; font-size: 13px; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }
.tm-toast.tut-in { animation-name: tm-toast-in; }
@keyframes tm-toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.tm-toast svg { color: #9be3b5; }

.tm-explain { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: center; margin-top: 56px; }
.tm-big-strat { position: relative; display: grid; gap: 6px; padding: 20px; border-radius: 18px; background: #fff; border: 2px solid #226452; box-shadow: 0 0 0 5px #2264521a; }
.tm-big-strat b { font-size: 18px; }
.tm-big-strat small { color: #63716a; }
.tm-big-strat strong { margin-top: 10px; padding: 4px 8px; border-radius: 8px; font-size: 30px; letter-spacing: -1px; }
.tm-big-strat em { padding: 4px 8px; border-radius: 8px; color: #33463d; font-size: 15px; font-style: normal; }
.tm-hl { animation: tm-hl 1.6s ease var(--d) both; }
@keyframes tm-hl { 0% { background: transparent; box-shadow: none; } 30% { background: #fff4c2; box-shadow: 0 0 0 4px #ffe58a; } 100% { background: #fff8d9; box-shadow: 0 0 0 0 transparent; } }
.tm-callouts { display: grid; gap: 12px; }
.tm-callouts p { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e7df; color: #52637a; font-size: 13px; }
.tm-callouts span { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #226452; color: #fff; font-weight: 700; font-size: 13px; }
.tm-callouts b { color: #17241f; font-size: 14.5px; }
.tm-note { margin-top: 16px; padding: 11px 14px; border-radius: 12px; background: #f3f6fd; border: 1px solid #dfe6f6; color: #34405a; font-size: 13px; }

.tm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.tm-panel { position: relative; display: grid; align-content: start; gap: 10px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #e2e7df; min-height: 290px; }
.tm-panel > small { color: #75816d; font-size: 11px; font-weight: 750; letter-spacing: 1.3px; }
.tm-panel-dark { background: linear-gradient(140deg, #16382d, #226452); border: 0; color: #fff; }
.tm-panel-dark > small { color: #d9ea95; }
.tm-panel-pro { background: linear-gradient(160deg, #fbfaff, #fff); border-color: #ddd3fb; }
.tm-swap-num { display: grid; }
.tm-swap-num b { grid-area: 1 / 1; font-size: 40px; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.tm-swap-inline { display: inline-grid; }
.tm-swap-inline span { grid-area: 1 / 1; text-align: right; }
.tm-slider { position: relative; height: 34px; margin: 4px 0 10px; }
.tm-slider::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 999px; background: #e6ebe4; }
.tm-slider-fill { position: absolute; left: 0; top: 14px; height: 6px; width: 38%; border-radius: 999px; background: #226452; animation: tm-fill 1s ease 1.4s both; }
.tm-knob { position: absolute; left: 38%; top: 7px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 3px solid #226452; box-shadow: 0 3px 8px rgba(0,0,0,.2); animation: tm-knob 1s ease 1.4s both; }
.tm-slider em { position: absolute; left: 22%; top: 26px; color: #8a958d; font-size: 10.5px; font-style: normal; }
.tm-slider em::before { content: ""; position: absolute; left: 0; top: -10px; width: 2px; height: 8px; background: #b6c2b9; }
@keyframes tm-fill { from { width: 38%; } to { width: 62%; } }
@keyframes tm-knob { from { left: 38%; } to { left: 62%; } }
.tm-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; border-top: 1px solid #f0f2ee; color: #52637a; font-size: 13.5px; }
.tm-kv b { color: #17241f; font-variant-numeric: tabular-nums; }
.tm-pill { justify-self: start; padding: 5px 12px; border-radius: 999px; background: rgba(217,234,149,.18); color: #e4f3b0; font-size: 12.5px; font-weight: 650; }
.tm-pill-light { background: #e7f6ee; color: #12603f; }
.tm-chart { width: 100%; height: 120px; margin-top: auto; }
.tm-chart path { fill: none; stroke-width: 3; stroke-linecap: round; }
.tm-chart-base { stroke: rgba(255,255,255,.3); stroke-dasharray: 6 6; }
.tm-chart-old { stroke: rgba(255,255,255,.45); }
.tm-chart-new { stroke: #d9ea95; stroke-width: 4 !important; }

.tm-guide { display: grid; gap: 10px; list-style: none; }
.tm-guide li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e7df; }
.tm-guide i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-style: normal; font-weight: 800; }
.tm-guide .is-warn i { background: #fff6e6; color: #b45309; }
.tm-guide .is-good i { background: #e7f6ee; color: #0f8a5f; }
.tm-guide .is-info i { background: #eef4ff; color: #2563eb; }
.tm-guide div { display: grid; gap: 2px; }
.tm-guide b { font-size: 14px; }
.tm-guide span { color: #63716a; font-size: 12.5px; }

.tm-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tm-day { display: grid; align-content: start; gap: 6px; min-height: 150px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid #e8ece6; }
.tm-day > span { color: #8a958d; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .5px; }
.tm-day > span b { color: #33463d; font-size: 13px; }
.tm-day.is-today { border-color: #226452; box-shadow: inset 0 3px #226452; }
.tm-pay { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid #dfe5dc; box-shadow: 0 4px 10px -8px rgba(18,60,45,.6); }
.tm-pay b { font-size: 11.5px; line-height: 1.25; }
.tm-pay strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.tm-pay small { color: #8a958d; font-size: 10px; }
.tm-pay.is-paid { background: #f2f4f1; border-color: #e6e9e4; box-shadow: none; opacity: .72; filter: grayscale(.6); }
.tm-pay.is-income { background: #effaf3; border-color: #bfe6cf; }
.tm-pay.is-income strong { color: #0f8a5f; }
.tm-pay.is-flex { border: 1.5px dashed #226452; background: #f6fbf8; }
.tm-pay.is-goal { border-color: #b9a7f3; background: #f8f5ff; }
.tm-badge { justify-self: start; padding: 1px 6px; border-radius: 6px; font-size: 9.5px; font-weight: 750; font-style: normal; }
.tm-badge-auto { background: #eef4ff; color: #2563eb; }
.tm-badge-manual { background: #fff1e0; color: #b45309; }
.tm-dialog { position: absolute !important; right: 36px; top: 150px; z-index: 5; display: grid; gap: 8px; width: 270px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #e2e7df; box-shadow: 0 30px 60px -24px rgba(18,60,45,.55); }
.tm-dialog > b { font-size: 16px; }
.tm-dialog > small { color: #75816d; font-size: 11.5px; }
.tm-dialog-center { position: relative !important; right: auto; top: auto; width: 420px; margin: 50px auto 0; }
.tm-input { display: grid; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #226452; box-shadow: 0 0 0 3px #2264521a; font-size: 22px; font-weight: 700; }
.tm-input span { grid-area: 1 / 1; }
.tm-result { display: grid; gap: 2px; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: #f1edff; }
.tm-result b { color: #4c2fb8; font-size: 18px; }
.tm-result span { color: #5b4a99; font-size: 12.5px; }
.tm-order { display: grid; list-style: none; }
.tm-order li { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; border-bottom: 1px solid #eef1ec; background: #fff; font-size: 14px; }
.tm-order li i { color: #9aa79f; font-style: normal; font-size: 12px; }
.tm-move-up { position: relative; z-index: 2; animation: tm-up .5s ease var(--d) both; }
.tm-move-down { animation: tm-down .5s ease var(--d) both; }
@keyframes tm-up { from { transform: none; background: #fff; } to { transform: translateY(44px); background: #f3f0ff; } }
@keyframes tm-down { from { transform: none; } to { transform: translateY(-44px); } }

.tm-emojis { display: flex; gap: 6px; }
.tm-emojis i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f3f5f1; font-style: normal; font-size: 18px; }
.tm-emojis i.is-on { background: #e7f3ec; box-shadow: inset 0 0 0 2px #226452; }
.tm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-field { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; border: 1px solid #dfe5dc; }
.tm-field small { color: #8a958d; font-size: 10.5px; }
.tm-field span { font-size: 14.5px; font-weight: 600; }

.tm-flow { min-height: 0; margin-top: 70px; padding: 26px 28px; }
.tm-flow strong { font-size: 40px; letter-spacing: -1.5px; }
.tm-flow strong em { color: #75816d; font-size: 16px; font-style: normal; letter-spacing: 0; }
.tm-flow-bar { display: flex; height: 22px; margin: 8px 0 4px; border-radius: 999px; overflow: hidden; background: #f0f2ee; }
.tm-flow-bar span { display: block; height: 100%; }
.tm-flow-bar .is-debt, .tm-legend .is-debt i { background: #226452; }
.tm-flow-bar .is-goal, .tm-legend .is-goal i { background: #6d4bd8; }
.tm-flow-bar .is-free, .tm-legend .is-free i { background: #c9d2cc; }
.tm-legend { display: flex; flex-wrap: wrap; gap: 18px; color: #52637a; font-size: 13.5px; }
.tm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.tm-legend b { color: #17241f; }
.tm-legend-center { justify-content: center; margin-top: 16px; }
.tm-legend .is-paid i { background: #d5dad3; }
.tm-legend .is-upcoming i { background: #fff; border: 1.5px solid #8fa596; }
.tm-hint { margin-top: 6px; color: #75816d; font-size: 12.5px; }
.tm-legend .is-income i { background: #bfe6cf; }

.tm-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 64px; }
.tm-goal { position: relative; display: grid; align-content: start; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #e2e7df; min-height: 210px; }
.tm-goal b { font-size: 15.5px; }
.tm-goal small { color: #63716a; font-size: 12px; display: grid; }
.tm-goal small span { grid-area: 1 / 1; }
.tm-goal em { justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; }
.tm-goal em.is-good { background: #e7f6ee; color: #0f8a5f; }
.tm-goal em.is-warn { background: #fff6e6; color: #b45309; }
.tm-goal p { padding: 8px 10px; border-radius: 10px; background: #fff6e6; color: #8a4b0a; font-size: 12px; }
.tm-goal-wide { grid-template-columns: 34px 1fr auto; align-items: center; min-height: 0; margin-top: 14px; }
.tm-goal-wide .tm-bar { grid-column: 1 / -1; }
.tm-goal-wide small { grid-column: 2; }
.tm-goal-wide .tm-btn { grid-row: 1 / span 2; grid-column: 3; }
.tm-goal-wide b { grid-column: 2; }
.tm-goal-wide .tm-emoji { grid-row: 1 / span 2; }
.tm-grow-step { display: block; width: 30%; animation: tm-step .8s ease var(--d) both; }
@keyframes tm-step { from { width: 30%; } to { width: 35%; } }

.tm-hero { display: grid; gap: 6px; margin-top: 50px; padding: 22px 24px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(217,234,149,.22), transparent 42%), linear-gradient(135deg, #16382d, #226452); }
.tm-hero > small { color: #d9ea95; font-size: 11px; font-weight: 750; letter-spacing: 1.5px; }
.tm-hero h3 { font-size: 28px; letter-spacing: -1px; }
.tm-hero > p { color: #b9cdbf; font-size: 14px; }
.tm-hero-card { display: grid; margin-top: 10px; padding: 18px 20px 14px; border-radius: 16px; background: #fff; color: #17241f; }
.tm-hero-card > div:not(.tm-dots) { grid-area: 1 / 1; display: grid; gap: 4px; }
.tm-hero-card em { font-size: 10.5px; font-weight: 750; letter-spacing: 1.2px; font-style: normal; }
.tm-hero-card em.is-bad { color: #be123c; }
.tm-hero-card em.is-good { color: #0f8a5f; }
.tm-hero-card b { font-size: 21px; letter-spacing: -.5px; }
.tm-hero-card span { color: #4d5c55; font-size: 13.5px; }
.tm-dots { grid-area: 2 / 1; display: flex; gap: 6px; margin-top: 14px; }
.tm-dots i { position: relative; width: 46px; height: 6px; border-radius: 999px; background: #e6ebe4; overflow: hidden; }
.tm-dot-fill::after { content: ""; position: absolute; inset: 0; width: 0; background: #226452; animation: tut-grow 3.2s linear var(--d) both; --w: 100%; }

.tm-pulse { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 90px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #16382d, #226452); }
.tm-pulse div { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.tm-pulse span { color: #b9cdbf; font-size: 12px; }
.tm-pulse b { color: #fff; font-size: 21px; letter-spacing: -.5px; }
.tm-pulse small { color: #d9ea95; font-size: 11px; }
.tm-lg { font-size: 20px; letter-spacing: -.4px; }
.tm-dates { display: flex; gap: 8px; margin-top: 8px; }
.tm-dates i { padding: 8px 12px; border-radius: 10px; background: #effaf3; color: #0f8a5f; font-style: normal; font-weight: 700; font-size: 13px; }
.tm-toggle { display: inline-flex; padding: 3px; border-radius: 10px; background: #edf1eb; }
.tm-toggle i { padding: 6px 14px; border-radius: 8px; color: #52637a; font-size: 13px; font-weight: 650; font-style: normal; }
.tm-toggle i.tut-off { animation-name: tm-deactivate; }
.tm-toggle i.tut-on { animation-name: tm-activate; }
@keyframes tm-deactivate { from { background: #fff; color: #17241f; box-shadow: 0 2px 6px rgba(0,0,0,.08); } to { background: transparent; color: #52637a; box-shadow: none; } }
@keyframes tm-activate { from { background: transparent; color: #52637a; } to { background: #fff; color: #17241f; box-shadow: 0 2px 6px rgba(0,0,0,.08); } }
.tm-swap-block { display: grid; }
.tm-swap-block > * { grid-area: 1 / 1; }
.tm-swap-block .tm-day { min-height: 120px; }
.tm-list { display: grid; align-content: start; gap: 6px; list-style: none; }
.tm-list li { display: grid; grid-template-columns: 70px 1fr 70px 80px; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e7df; font-size: 13.5px; }
.tm-list li span { color: #75816d; font-size: 12px; }
.tm-list li strong { text-align: right; font-variant-numeric: tabular-nums; }
.tm-drawer { display: flex; justify-content: space-between; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid #e2e7df; color: #33463d; font-size: 14px; font-weight: 650; }

.tm-intro { position: absolute !important; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; color: #fff; text-align: center;
  background: radial-gradient(70% 90% at 100% 0%, rgba(217,234,149,.25), transparent 50%), radial-gradient(60% 80% at 0% 100%, rgba(15,159,110,.4), transparent 60%), linear-gradient(135deg, #12291f, #1d5242 55%, #226452); }
.tm-intro p { color: #d9ea95; font-size: 12.5px; font-weight: 750; letter-spacing: 2px; }
.tm-intro h2 { font-size: 52px; font-weight: 700; letter-spacing: -2px; line-height: 1.05; }
.tm-intro > span { color: #b9cdbf; font-size: 18px; }
.tm-intro-tiles { display: flex; gap: 14px; margin-top: 22px; }
.tm-intro-tiles i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 30px; font-style: normal; backdrop-filter: blur(6px); }
.tm-outro-check { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 8px; border-radius: 50%; background: #d9ea95; color: #12291f; box-shadow: 0 0 0 12px rgba(217,234,149,.18); }
.tm-outro em { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 20px; border-radius: 12px; background: #fff; color: #17241f; font-size: 15px; font-weight: 700; font-style: normal; }

/* ---------- fixed bills, categories & transactions mocks ---------- */
.tm-split-tight { margin-top: 44px; }
.tm-split-tight .tm-panel { min-height: 0; }
.tm-sub { color: #8a958d; font-size: 11.5px; font-style: normal; margin-left: 4px; }
.tm-check { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 5px; border: 1.5px solid #9aaa9f; background: #fff; vertical-align: middle; }
.tm-check i { position: absolute; inset: -1.5px; display: grid; place-items: center; border-radius: 5px; background: #226452; color: #fff; }
.tm-swap-left span { text-align: left; }
.tm-table { display: grid; gap: 4px; }
.tm-tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) 118px 112px 64px 84px; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: #fff; border: 1px solid #e2e7df; font-size: 12.5px; }
.tm-tr > span:first-child { color: #75816d; font-size: 11.5px; }
.tm-tr > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.tm-tr > strong { text-align: right; font-variant-numeric: tabular-nums; }
.tm-tr .is-in { color: #0f8a5f; } .tm-tr .is-out { color: #b4372f; }
.tm-th { background: transparent; border-color: transparent; padding-block: 2px; color: #75816d; font-size: 10.5px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; }
.tm-th > span:last-child { text-align: right; }
.tm-select { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding: 4px 8px; border-radius: 8px; border: 1px solid #dfe5dc; background: #fafbf9; font-size: 11.5px; white-space: nowrap; }
.tm-select::after { content: "▾"; color: #8a958d; font-size: 10px; }
.tm-tick { display: inline-flex; align-items: center; gap: 6px; }
.tm-tick-label { color: #52637a; font-size: 11px; font-style: normal; }
.tm-unset { color: #9aa59d; font-style: normal; }
.tm-hl-row { border-color: #226452; box-shadow: 0 0 0 3px #2264521a; }
.tm-similar { top: 104px; width: 300px; }
.tm-similar > small b { color: #17241f; }
.tm-similar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #f0f2ee; font-size: 12.5px; font-weight: 600; }
.tm-similar-row small { display: block; color: #8a958d; font-size: 10.5px; font-weight: 500; }
.tm-callouts-row { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.tm-callouts-row p { font-size: 12px; padding: 10px 12px; }
.tm-callouts-row b { font-size: 13.5px; }
.tm-compare { display: grid; gap: 14px; margin-top: 44px; }
.tm-compare-2 { grid-template-columns: 1fr 1fr; }
.tm-compare-3 { grid-template-columns: repeat(3, 1fr); }
.tm-compare-col { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #e2e7df; box-shadow: 0 10px 24px -20px rgba(18,60,45,.6); }
.tm-compare-col:nth-child(2) { background: #f6faf3; }
.tm-compare-col:nth-child(3) { background: #f8f5ff; }
.tm-compare-col .tm-emoji { width: 42px; height: 42px; font-size: 22px; border-radius: 13px; margin-bottom: 4px; }
.tm-compare-col > b { font-size: 18px; letter-spacing: -.3px; }
.tm-compare-col > small { color: #226452; font-size: 13px; font-weight: 700; }
.tm-compare-col ul { display: grid; gap: 6px; margin-top: 6px; list-style: none; }
.tm-compare-col li { padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.8); border: 1px dashed #d5ddd2; color: #3f5047; font-size: 12.5px; font-style: italic; }
.tm-both { position: absolute !important; left: 50%; bottom: 18px; translate: -50% 0; padding: 9px 16px; border-radius: 999px; background: #17241f; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); }
.tm-both b { color: #d9ea95; }
.tm-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tm-cat { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e2e7df; }
.tm-cat .tm-emoji { grid-row: span 2; }
.tm-cat > b { font-size: 14px; }
.tm-cat > strong { font-size: 20px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.tm-cat .tm-bar, .tm-cat > small { grid-column: 1 / -1; }
.tm-cat > small { color: #75816d; font-size: 11.5px; }
.tm-cat.is-up { border-color: #e9b949; box-shadow: 0 0 0 3px #f6d98a55; }
.tm-cat.is-up > small { color: #a16207; font-weight: 650; }
.tm-cat.is-todo { border-style: dashed; }
.tm-cat > small.is-good { color: #0f8a5f; font-weight: 650; }
.tm-cats-3 .tm-cat { padding: 20px; }
.tm-cats-3 .tm-cat > strong { font-size: 28px; }
.tm-rule { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #f6f8f4; font-size: 13px; }
.tm-rule code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #33463d; }
.tm-rule span { color: #8a958d; }
.tm-panel-dark .tm-swap-num b { color: #fff; }
.tm-panel-dark .tm-flow-bar { background: rgba(255,255,255,.15); }
.tm-panel-dark .tm-flow-bar .is-debt { background: #d9ea95; }
.tm-panel-dark .tm-kv { border-top-color: rgba(255,255,255,.12); color: #d4e2d8; }
.tm-drop { display: grid; place-items: center; min-height: 110px; border-radius: 14px; border: 2px dashed #b9c6bc; background: #f8faf6; color: #75816d; font-size: 14px; }
.tm-drop > * { grid-area: 1 / 1; }
.tm-file { padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #dfe5dc; color: #17241f; font-weight: 650; }
.tm-file small { color: #8a958d; font-weight: 500; margin-left: 6px; }
.tm-filters { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid #e2e7df; }
.tm-search { display: inline-flex; align-items: center; gap: 6px; flex: 1; padding: 7px 10px; border-radius: 9px; border: 1.5px solid #226452; font-size: 13px; }
.tm-type { display: inline-block; width: 0; overflow: hidden; white-space: nowrap; border-right: 2px solid #226452; vertical-align: bottom; animation: tm-type .9s steps(7) var(--d, 0s) forwards; }
@keyframes tm-type { to { width: 7.2ch; } }
.tm-check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.tm-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.tm-metrics > div { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e7df; }
.tm-metrics small { color: #75816d; font-size: 11px; }
.tm-metrics b { font-size: 20px; font-variant-numeric: tabular-nums; }
.tm-list mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 2px; }
.tm-steps { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.tm-steps span { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e2e7df; font-size: 13px; }
.tm-steps b { color: #226452; }
/* Spending Compass tutorial */
.tm-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid #e2e7df; }
.tm-tabs i { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 2px solid transparent; color: #63716a; font-size: 13.5px; font-weight: 650; font-style: normal; }
.tm-tabs em { padding: 2px 8px; border-radius: 999px; background: #e7f6ee; color: #0f8a5f; font-size: 11px; font-weight: 750; font-style: normal; }
.tm-tab-drop { animation: tm-tab-drop .4s ease var(--d) both; }
.tm-tab-pick { animation: tm-tab-pick .4s ease var(--d) both; }
@keyframes tm-tab-drop { from { color: #6d4bd8; border-bottom-color: #6d4bd8; } to { color: #63716a; border-bottom-color: transparent; } }
@keyframes tm-tab-pick { to { color: #6d4bd8; border-bottom-color: #6d4bd8; } }
.tm-vs { display: grid; grid-template-columns: 74px 1fr 64px; align-items: center; gap: 10px; color: #52637a; font-size: 12.5px; }
.tm-vs b { color: #17241f; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.tm-vs .tm-bar { height: 10px; }
.tm-bar-typ span { background: #b6c2b9; }
.tm-sig { justify-self: start; padding: 3px 9px; border-radius: 999px; background: #fff6e6; color: #b45309; font-size: 11px; font-weight: 750; }
.tm-sig.is-ok { background: #e7f6ee; color: #0f8a5f; }
.tm-split-wide { grid-template-columns: 1.15fr 1fr; }
.tm-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg,#faf7ff,#eef8f3); border: 1px solid #e2e7df; }
.tm-hero small { color: #6d4bd8; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.tm-hero > div { display: grid; gap: 4px; } .tm-hero > div b { color: #0f8a5f; font-size: 30px; letter-spacing: -.5px; } .tm-hero > div span { color: #63716a; font-size: 13px; }
.tm-hero ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tm-hero li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid #e2e7df; }
.tm-hero li span { display: grid; } .tm-hero li b { color: #17241f; font-size: 13.5px; } .tm-hero li small { color: #63716a; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.tm-hero li strong { color: #0f8a5f; font-size: 17px; font-variant-numeric: tabular-nums; }
.tm-sankey, .tm-venn { width: 100%; height: auto; overflow: visible; } .tm-venn { max-width: 290px; justify-self: center; }
.tm-sankey text, .tm-venn text { fill: #17241f; font-size: 11.5px; font-weight: 700; }
.tm-sankey .tm-halo { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.tm-sankey .tm-bad, .tm-venn .tm-bad { fill: #be123c; } .tm-sankey .tm-good { fill: #0f8a5f; }
.tm-rib { fill-opacity: .3; } .tm-rib.is-fixed { fill: #64748b; } .tm-rib.is-day { fill: #7c3aed; } .tm-rib.is-left { fill: #10b981; } .tm-rib.is-act { fill: #e11d48; fill-opacity: .5; }
.tm-node-in { fill: #059669; } .tm-node-fixed { fill: #64748b; } .tm-node-day { fill: #7c3aed; } .tm-node-left { fill: #10b981; } .tm-node-act { fill: #e11d48; }
.tm-insights { display: grid; gap: 10px; align-content: start; }
.tm-insight { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e7df; border-top: 4px solid #7c3aed; }
.tm-insight.is-warn { border-top-color: #f59e0b; } .tm-insight.is-bad { border-top-color: #e11d48; }
.tm-insight b { color: #17241f; font-size: 21px; letter-spacing: -.3px; } .tm-insight.is-bad b { color: #be123c; }
.tm-insight span { color: #17241f; font-size: 13px; font-weight: 650; } .tm-insight small { color: #63716a; font-size: 12px; }
.tm-venn circle { stroke-width: 1.5; } .tm-venn .is-a { fill: rgba(225,29,72,.12); stroke: #e11d48; } .tm-venn .is-b { fill: rgba(245,158,11,.14); stroke: #f59e0b; } .tm-venn .is-c { fill: rgba(124,58,237,.1); stroke: #7c3aed; }
.tm-venn text { font-size: 11px; fill: #52637a; } .tm-venn text.tut-in { font-size: 13px; fill: #17241f; } .tm-venn text.tm-bad { fill: #be123c; }
.tm-pill-act { background: #fff1f2; color: #be123c; }
.tm-range { display: grid; grid-template-columns: 74px 1fr; gap: 4px 10px; align-items: center; font-size: 12.5px; color: #17241f; }
.tm-range > span { font-weight: 700; } .tm-range > b { grid-column: 2; font-size: 12px; }
.tm-range > div { position: relative; height: 26px; border-radius: 8px; background: #f6f8f5; }
.tm-range > div > i { position: absolute; top: 50%; transform: translate(-50%,-50%); }
.tm-range .tm-range-band { height: 12px; border-radius: 6px; background: #ddd6fe; transform: translateY(-50%); }
.tm-range .tm-range-typ { width: 9px; height: 9px; border-radius: 2px; background: #17241f; transform: translate(-50%,-50%) rotate(45deg); }
.tm-range .tm-range-dot { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; transform: none; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tm-range .tm-range-dot.is-warn { background: #f59e0b; } .tm-range .tm-range-dot.is-good { background: #10b981; }
.tm-warn { color: #b45309; } .tm-good { color: #0f8a5f; }

/* Responsive */
@media (max-width: 1180px) {
  .tut-layout { grid-template-columns: 1fr; }
  .tut-side { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .tut-chapters { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .tut-cta { grid-column: 2; grid-row: 1; align-self: center; }
}
@media (max-width: 640px) {
  .tut-controls { flex-wrap: wrap; gap: 4px; padding: 8px 10px; }
  .tut-segments { order: -1; flex-basis: 100%; margin: 4px 0 8px; }
  .tut-time { margin-left: auto; min-width: 0; }
  .tut-caption { font-size: 14px; padding: 12px 14px 14px; }
  .tut-bigplay { width: 58px; height: 58px; box-shadow: 0 0 0 7px rgba(255,255,255,.35); }
  .tut-side { grid-template-columns: 1fr; padding: 16px; }
  .tut-cta { grid-column: auto; grid-row: auto; }
  .tut-chapters { grid-template-columns: 1fr; }
  .tut-end-card { padding: 16px; gap: 6px; }
  .tut-end-card h3 { font-size: 17px; }
  #payoff-view .header, #goals-view .header { flex-wrap: wrap; }
}
