* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #0f172a; color: #0f172a; height: 100vh; display: flex; flex-direction: column; overflow: hidden; user-select: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #64748b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #38bdf8; }

.topbar { background: #0f172a; color: #f8fafc; height: 50px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #1e293b; flex-shrink: 0; z-index: 60; }
.nav-left { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-top { background: #1e293b; color: #e2e8f0; border: 1px solid #475569; padding: 5px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: 0.15s; white-space: nowrap; flex-shrink: 0; }
.btn-top:hover { background: #334155; }
.ico2d { width: 14px; height: 14px; vertical-align: -2px; flex-shrink: 0; display: inline-block; }
.exp-hdr { display: flex; align-items: center; gap: 6px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-drawer { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.btn-director { background: #16a34a; color: #fff; border-color: #22c55e; }
.btn-director.playing { background: #dc2626; border-color: #ef4444; }
.btn-tour { background: #0284c7; color: #fff; border-color: #38bdf8; }
.btn-help-icon { width: 27px; height: 27px; padding: 0; border-radius: 50%; justify-content: center; background: #0284c7; color: #fff; border: 1.5px solid #38bdf8; font-size: 13px; font-weight: 900; box-shadow: 0 0 10px rgba(56,189,248,0.25); }
.btn-help-icon:hover { background: #0369a1; border-color: #facc15; color: #facc15; transform: scale(1.06); }
.btn-layout-icon { width: 27px; height: 27px; padding: 0; border-radius: 6px; justify-content: center; background: #1e293b; color: #38bdf8; border: 1.5px solid #475569; }
.btn-layout-icon:hover { background: #334155; border-color: #facc15; color: #facc15; transform: scale(1.06); }
.help-tour-wrap { flex-shrink: 0; }
.btn-admin { background: #312e81; color: #e0e7ff; border-color: #4f46e5; margin-left: 8px; position: relative; }
.admin-fb-badge { background: #f59e0b; color: #0f172a; font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 99px; margin-left: 2px; line-height: 1.2; }
.btn-feedback-top { position: relative; background: #162032; color: #e2e8f0; border-color: #38bdf8; padding-right: 11px; }
.btn-feedback-top:hover { background: #1e293b; border-color: #facc15; color: #fff; }
.feedback-led { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; transition: all 0.25s ease; }
.feedback-led.led-none { background: #475569; border: 1px solid #64748b; opacity: 0.7; }
.feedback-led.led-submitted { background: #f59e0b; border: 1px solid #fde047; box-shadow: 0 0 7px rgba(245, 158, 11, 0.85); }
.feedback-led.led-read { background: #38bdf8; border: 1px solid #bae6fd; box-shadow: 0 0 7px rgba(56, 189, 248, 0.85); }
.feedback-led.led-replied-unread { background: #22c55e; border: 1px solid #bbf7d0; box-shadow: 0 0 10px #22c55e; animation: fbLedPulse 1.15s infinite alternate; }
.feedback-led.led-replied-read { background: #22c55e; border: 1px solid #86efac; box-shadow: 0 0 5px rgba(34, 197, 94, 0.6); }
@keyframes fbLedPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 4px #22c55e; }
  100% { transform: scale(1.3); box-shadow: 0 0 12px #4ade80, 0 0 18px rgba(74, 222, 128, 0.8); }
}
.feedback-status-pill { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; white-space: nowrap; text-transform: none; letter-spacing: 0.2px; }
.feedback-status-pill.pill-none { background: #1e293b; color: #94a3b8; border: 1px solid #334155; }
.feedback-status-pill.pill-submitted { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid #f59e0b; }
.feedback-status-pill.pill-read { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid #0284c7; }
.feedback-status-pill.pill-replied { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid #22c55e; }
.feedback-open-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #1e3a8a; color: #f8fafc; text-decoration: none; font-size: 11.5px; font-weight: 700; padding: 7px 10px; border-radius: 6px; border: 1px solid #3b82f6; transition: 0.15s; }
.feedback-open-link:hover { background: #2563eb; border-color: #facc15; color: #fff; }
.fb-thread-card { background: #0f172a; border: 1px solid #334155; border-radius: 7px; padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }
.fb-thread-card.unread-reply { border-color: #22c55e; box-shadow: 0 0 12px rgba(34, 197, 94, 0.18); }
.fb-msg-bubble { padding: 6px 9px; border-radius: 6px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.fb-msg-user { background: #1e293b; border-left: 3px solid #f59e0b; color: #e2e8f0; }
.fb-msg-admin { background: #062c21; border: 1px solid #15803d; border-left: 3px solid #22c55e; color: #dcfce7; }
.fb-scopes-wrap { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.fb-scope-chip { display: inline-flex; align-items: center; gap: 5px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 4px 8px; font-size: 11px; color: #cbd5e1; cursor: pointer; transition: 0.15s; user-select: none; }
.fb-scope-chip:hover { border-color: #38bdf8; color: #fff; }
.fb-scope-chip input[type="checkbox"] { accent-color: #38bdf8; cursor: pointer; }
.btn-next-step { background: #2563eb; color: #fff; border-color: #3b82f6; }
.btn-step-arrow { background: #2563eb; color: #ffffff; border: 1px solid #3b82f6; padding: 5px 9px; font-size: 11.5px; }
.btn-step-arrow:hover:not(.disabled) { background: #1d4ed8; border-color: #60a5fa; }
.btn-step-arrow.disabled { background: #1e293b; color: #475569; border-color: #334155; cursor: default; opacity: 0.75; }
.btn-step-arrow.disabled:hover { background: #1e293b; color: #475569; border-color: #334155; }
.director-top-group { display: inline-flex; align-items: center; gap: 5px; margin: 0 10px; }
.scorm-indicator { font-family: Consolas, monospace; font-size: 11px; background: #1e293b; color: #38bdf8; padding: 4px 8px; border-radius: 5px; border: 1px solid #334155; white-space: nowrap; flex-shrink: 0; }
.profile-select { background: #1e293b; color: #facc15; border: 1px solid #475569; padding: 4px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; cursor: pointer; outline: none; flex-shrink: 0; max-width: 146px; }
.voice-select { color: #38bdf8; max-width: 195px; }

/* ROZWIJANE RAMKI (BREADCRUMB, STATUS, LEKTOR) — HOVER ORAZ KLIKNIĘCIE (PIN) */
.expandable-frame { position: relative; min-width: 0; cursor: pointer; }
#topBreadcrumbWrap { flex: 1; max-width: 460px; min-width: 120px; }
.expandable-summary { background: #1e293b; border: 1px solid #334155; border-radius: 6px; padding: 4px 9px; display: flex; align-items: center; justify-content: space-between; gap: 6px; transition: border-color 0.15s, background 0.15s; }
.expandable-frame:hover .expandable-summary, .expandable-frame.pinned .expandable-summary { border-color: #38bdf8; background: #162032; }
.breadcrumb-short { font-size: 12px; color: #e2e8f0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.expand-caret { font-size: 10px; color: #38bdf8; flex-shrink: 0; transition: transform 0.2s; }
.expandable-frame:hover .expand-caret, .expandable-frame.pinned .expand-caret { transform: rotate(180deg); color: #facc15; }

.expandable-dropdown { display: none; position: absolute; top: calc(100% + 5px); left: 0; min-width: 380px; max-width: 560px; background: #0f172a; color: #f8fafc; border: 1.5px solid #38bdf8; border-radius: 8px; padding: 10px 12px; box-shadow: 0 14px 34px rgba(0,0,0,0.65); z-index: 85; cursor: default; }
.expandable-frame:hover .expandable-dropdown, .expandable-frame.pinned .expandable-dropdown { display: block; }
.expandable-dropdown.drop-right { left: auto; right: 0; min-width: 340px; }
.expandable-dropdown.drop-up { top: auto; bottom: calc(100% + 6px); left: 0; right: 0; min-width: 360px; max-width: 100%; max-height: 240px; overflow-y: auto; }
.exp-hdr { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: #38bdf8; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid #1e293b; }
.exp-body { font-size: 12.5px; color: #e2e8f0; line-height: 1.5; user-select: text; }

/* PLAKIETKI POZIOMÓW (TIERS) */
.tier-badge { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; flex-shrink: 0; }
.tier-basic { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.tier-extended { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.tier-advanced { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; }

/* MODAL PANELU ADMINA */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.78); z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop.open { display: flex; }
.admin-modal { background: #0f172a; color: #f8fafc; border: 1px solid #475569; border-radius: 12px; width: 100%; max-width: 980px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.6); overflow: hidden; }
.admin-modal-hdr { padding: 14px 20px; background: #1e293b; border-bottom: 1px solid #334155; display: flex; justify-content: space-between; align-items: center; }
.admin-modal-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.admin-grid-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-box { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 12px 14px; }
.admin-box h4 { font-size: 13.5px; color: #38bdf8; margin-bottom: 8px; }
.admin-chk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #e2e8f0; margin-bottom: 6px; cursor: pointer; }
.admin-table-wrap { max-height: 280px; overflow-y: auto; border: 1px solid #334155; border-radius: 6px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { background: #0f172a; color: #94a3b8; padding: 8px 10px; text-align: left; position: sticky; top: 0; }
.admin-table td { padding: 6px 10px; border-bottom: 1px solid #334155; color: #e2e8f0; }

.local-dots { display: flex; align-items: center; gap: 5px; background: #1e293b; padding: 4px 8px; border-radius: 99px; border: 1px solid #334155; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #475569; cursor: pointer; }
.dot.done { background: #4ade80; }
.dot.active { background: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.25); transform: scale(1.15); }

.progress-line { height: 3px; background: #1e293b; width: 100%; flex-shrink: 0; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#22c55e,#38bdf8); transition: width 0.3s; }

/* SZUFLADA MAPY KURSU */
.drawer-backdrop { position: fixed; inset: 53px 0 0 0; background: rgba(15,23,42,0.65); z-index: 70; display: none; }
.drawer-backdrop.open { display: flex; }
.drawer { width: 540px; max-width: 95vw; height: 100%; background: #0f172a; color: #f8fafc; border-right: 1px solid #334155; display: flex; flex-direction: column; box-shadow: 10px 0 30px rgba(0,0,0,0.5); overflow: hidden; }
.drawer-hdr { padding: 12px 16px; border-bottom: 1px solid #1e293b; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.drawer-title-row, .drawer-sub-actions { display: flex; justify-content: space-between; align-items: center; }
.drawer-sub-actions { font-size: 11px; color: #94a3b8; }
.instructor-toggle { font-size: 11.5px; color: #facc15; cursor: pointer; }
.search-in { width: 100%; background: #1e293b; border: 1px solid #475569; color: #fff; padding: 7px 10px; border-radius: 6px; font-size: 12.5px; outline: none; }
.drawer-body { flex: 1; min-height: 0; overflow-y: scroll; padding: 12px 14px 28px; display: flex; flex-direction: column; gap: 10px; }
.mod-box { flex-shrink: 0; background: #1e293b; border: 1px solid #334155; border-radius: 8px; display: flex; flex-direction: column; }
.mod-hdr { padding: 9px 12px; font-size: 12.5px; font-weight: 800; color: #e2e8f0; background: #162032; border-radius: 7px 7px 0 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 8px; }
.mod-box.collapsed .mod-hdr { border-radius: 7px; }
.mod-box.collapsed .mod-steps { display: none; }
.mod-steps { max-height: 220px; overflow-y: auto; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid #334155; }
.step-row { flex-shrink: 0; padding: 6px 8px; border-radius: 5px; font-size: 12px; color: #cbd5e1; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 6px; }
.step-row:hover { background: #334155; }
.step-row.active { background: #2563eb; color: #fff; font-weight: 700; }
.step-row.locked { opacity: 0.72; }
.step-act-btn { background: #0f172a; color: #94a3b8; border: 1px solid #475569; border-radius: 4px; padding: 2px 6px; font-size: 10.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: 0.15s; }
.step-act-btn.mark-done:hover { background: #166534; color: #dcfce7; border-color: #22c55e; }
.step-act-btn.mark-reset { color: #fca5a5; border-color: #7f1d1d; }
.step-act-btn.mark-reset:hover { background: #991b1b; color: #fff; border-color: #ef4444; }

/* WORKSPACE & SPLITTERS */
.workspace { flex: 1; display: flex; padding: 6px; overflow: hidden; background: #cbd5e1; min-height: 0; }
.pane-col { display: flex; flex-direction: column; overflow: hidden; min-width: 340px; min-height: 0; }
.card { background: #ffffff; border: 1px solid #94a3b8; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; min-height: 90px; transition: box-shadow 0.25s; }
.splitter-v { width: 8px; cursor: col-resize; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 4px; transition: background 0.15s; }
.splitter-v:hover { background: rgba(37, 99, 235, 0.22); }
.splitter-v::after { content: "║"; font-size: 11px; color: #475569; }
.splitter-h { height: 8px; cursor: row-resize; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 4px; transition: background 0.15s; }
.splitter-h:hover { background: rgba(37, 99, 235, 0.22); }
.splitter-h::after { content: "══"; font-size: 10px; color: #475569; letter-spacing: -1px; }
.splitter-tour-glow { background: #facc15 !important; box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.75), 0 0 18px #facc15 !important; z-index: 122; position: relative; }
.splitter-tour-glow::after { color: #0f172a !important; font-weight: 900; }

/* SCENA WIEDZY */
.stage-header { background: #f1f5f9; border-bottom: 1.5px solid #cbd5e1; padding: 7px 12px; display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.stage-title-row, .dock-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 6px; }
.dock-bar { flex-wrap: wrap; }
.kicker { font-size: 10px; font-weight: 800; color: #1d4ed8; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-title { font-size: 14.5px; font-weight: 800; color: #0f172a; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-pills { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; flex: 1; }
.dock-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; border: 1px solid #94a3b8; background: #e2e8f0; color: #475569; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dock-pill.open { background: #2563eb; color: #ffffff; border-color: #1d4ed8; }

.stage-canvas { flex: 1; min-height: 0; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #e2e8f0; user-select: text; }
.stage-canvas.grid-mode { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }

.win-panel { background: #ffffff; border: 1.5px solid #94a3b8; border-radius: 8px; display: flex; flex-direction: column; flex: 1; box-shadow: 0 4px 12px rgba(15,23,42,0.06); overflow: hidden; transition: 0.25s; }
.win-panel.full-span { grid-column: 1 / -1; }
.win-panel.maximized-mode { border: 2px solid #2563eb; min-height: 100%; }
.win-panel.director-focus-win { border: 2.5px solid #eab308; box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.35); }
.win-titlebar { background: linear-gradient(90deg, #1e293b, #0f172a); color: #f8fafc; padding: 7px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.win-controls { display: flex; gap: 6px; }
.win-btn { background: rgba(255,255,255,0.14); color: #f8fafc; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.win-btn:hover { background: #3b82f6; color: #fff; }
.win-btn.restore-active { background: #facc15; color: #0f172a; border-color: #eab308; font-weight: 800; }
.win-btn.close:hover { background: #ef4444; color: #fff; }
.win-body { padding: 14px 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.55; }

.empty-stage-box { grid-column: 1 / -1; margin: auto; background: #f8fafc; border: 2px dashed #94a3b8; border-radius: 10px; padding: 26px 30px; text-align: center; color: #334155; }

/* SKŁADNIA POWERSHELL 7 / GIT BASH */
.ps-codeblock { background: #0b0f19; border: 1px solid #334155; border-radius: 7px; padding: 8px; font-family: 'Cascadia Code', Consolas, monospace; font-size: 13px; color: #e2e8f0; display: flex; flex-direction: column; gap: 4px; }
.code-line { padding: 5px 10px; border-radius: 5px; border-left: 3px solid transparent; display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: 0.2s; }
.code-line.laser-focus { background: rgba(250, 204, 21, 0.18); border-left-color: #facc15; box-shadow: inset 0 0 0 1px rgba(250,204,21,0.45); }
.laser-tag { display: none; background: #facc15; color: #0f172a; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.code-line.laser-focus .laser-tag { display: inline-block; }

.ps-c { color: #facc15; font-weight: 700; }
.ps-sub { color: #f8fafc; font-weight: 600; }
.ps-f { color: #38bdf8; }
.ps-p { color: #c084fc; }
.ps-s { color: #2dd4bf; }
.ps-cm { color: #4ade80; font-style: italic; }
.cmd-pill { background: #0f172a; color: #f8fafc; padding: 2px 7px; border-radius: 4px; font-family: Consolas, monospace; font-size: 12px; border: 1px solid #334155; display: inline-block; }

.voice-bar { background: #0f172a; color: #f1f5f9; padding: 6px 10px; font-size: 12px; display: flex; gap: 8px; align-items: center; flex-shrink: 0; border-top: 2px solid #2563eb; overflow: visible; }
.voice-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.voice-badge { background: #f59e0b; color: #0f172a; padding: 4px 8px; border-radius: 5px; font-weight: 900; font-size: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 32px; transition: 0.2s; }
.voice-badge.playing { background: #22c55e; color: #0f172a; box-shadow: 0 0 10px rgba(34, 197, 94, 0.55); }
.speaker-svg { width: 17px; height: 15px; }
.speaker-wave-anim { animation: speakerPulse 0.75s infinite alternate ease-in-out; }
@keyframes speakerPulse { from { opacity: 0.35; } to { opacity: 1; } }
.voice-expandable { flex: 1; min-width: 0; }
.voice-subtitle-short { font-size: 12px; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ZADANIE NADZOROWANE (ZWIĘZŁY TYTUŁ W NAGŁÓWKU, PASEK PEŁNEJ TREŚCI POD SPODEM, KOMPAKTOWE INDYKATORY NA DOLE) */
#leftBottom { transition: flex 0.2s, height 0.2s; overflow: visible; }
#leftBottom.minimized { flex: 0 0 auto !important; height: auto !important; min-height: 0 !important; }
#leftBottom.minimized .task-body-pad { display: none !important; }
#leftBottom.minimized .task-hdr { border-bottom: none; border-radius: 6px; }
.task-hdr { padding: 6px 12px; min-height: 38px; background: #fffbeb; border-bottom: 1px solid #fde68a; border-radius: 6px 6px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-shrink: 0; }
.task-hdr-title { font-size: 13px; color: #92400e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; display: inline-flex; align-items: center; gap: 6px; }
.task-hdr-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.task-body-pad { padding: 8px 12px; overflow-y: auto; flex: 1; user-select: text; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; border-radius: 0 0 6px 6px; background: #ffffff; }
.hint-dropdown { left: auto !important; right: 0 !important; top: auto !important; bottom: calc(100% + 7px) !important; min-width: 360px; max-width: 480px; border-color: #f59e0b; }
#hintWrap:hover #btnHintTask, #hintWrap.pinned #btnHintTask { background: #fef3c7 !important; border-color: #f59e0b !important; color: #92400e !important; }
.guided-box { background: linear-gradient(90deg, #eff6ff, #f8fafc); border: 1.5px solid #93c5fd; border-left: 4px solid #2563eb; border-radius: 6px; padding: 8px 12px; font-size: 12.5px; color: #0f172a; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.task-full-desc { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.4; }
.task-cmd-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 11.5px; color: #334155; }
.guided-cmd-btn { background: #0f172a; color: #facc15; border: 1px solid #334155; border-radius: 4px; padding: 2px 8px; font-family: Consolas, monospace; font-size: 11.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: 0.15s; }
.guided-cmd-btn:hover { background: #1e293b; border-color: #38bdf8; color: #38bdf8; }
.guided-cmd-btn.done-cmd-btn { background: #052e16; color: #86efac; border-color: #16a34a; opacity: 0.82; }
.guided-cmd-btn.next-cmd-btn { border-color: #facc15; box-shadow: 0 0 0 1.5px rgba(250, 204, 21, 0.38); }
.task-progress-footer { margin-top: auto; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 10px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.task-progress-footer.all-done { background: #f0fdf4; border-color: #4ade80; }
.prog-indicators { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.prog-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; border: 1px solid #cbd5e1; background: #fffbeb; color: #92400e; }
.prog-chip.done { background: #dcfce7; border-color: #4ade80; color: #166534; }
.prog-mini-track { width: 80px; height: 7px; background: #e2e8f0; border-radius: 99px; overflow: hidden; border: 1px solid #cbd5e1; }
.prog-mini-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width 0.25s; }
.step-done-banner { display: none !important; }

/* INSPEKTOR I KOLOROWANIE SKŁADNI */
#rightTop { overflow: visible; }
.inspector-bar { background: #e2e8f0; padding: 6px 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid #cbd5e1; flex-shrink: 0; border-radius: 8px 8px 0 0; }
.insp-tabs { display: flex; gap: 4px; flex-shrink: 0; }
.insp-tab { padding: 6px 11px; font-size: 12px; font-weight: 700; background: #cbd5e1; border: none; border-radius: 6px 6px 0 0; cursor: pointer; color: #334155; display: inline-flex; align-items: center; gap: 5px; }
.insp-tab.active { background: #fff; color: #1d4ed8; }
.status-expandable { max-width: 280px; margin-bottom: 4px; }
.status-pill { font-family: Consolas, monospace; font-size: 11.5px; background: #0f172a !important; color: #38bdf8; padding: 3px 8px !important; border-radius: 5px; }
.status-short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; display: block; }
.inspector-body { padding: 8px 12px; flex: 1; overflow: hidden; }
.trees { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; height: 100%; }
.tbox { position: relative; background: #f8fafc; border: 1.5px solid #cbd5e1; border-top: 4px solid #2563eb; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; transition: 0.25s; min-width: 0; }
.tbox.flash { box-shadow: 0 0 0 2.5px #eab308, 0 0 18px rgba(250,204,21,0.45); background: #fefce8; }
.card.flash { box-shadow: 0 0 0 2.5px #eab308, 0 0 18px rgba(250,204,21,0.45); }
.term-card.flash { box-shadow: 0 0 0 2.5px #eab308, 0 0 18px rgba(250,204,21,0.45); background: #0b0f19 !important; }
.tcode { font-family: 'Cascadia Code', Consolas, monospace; font-size: 11.5px; background: #0b0f19; color: #e2e8f0; border: 1px solid #334155; padding: 7px 9px; border-radius: 5px; white-space: pre-wrap; flex: 1; margin: 4px 0; line-height: 1.45; overflow-y: auto; user-select: text; }

/* TOKENY KOLOROWANIA SKŁADNI W ZAKŁADKACH INSPEKTORA */
.syn-kw { color: #c084fc; font-weight: 700; }
.syn-fn { color: #38bdf8; font-weight: 700; }
.syn-str { color: #2dd4bf; }
.syn-num { color: #fb923c; font-weight: 700; }
.syn-cm { color: #4ade80; font-style: italic; }
.syn-var { color: #facc15; font-weight: 600; }
.syn-h1 { color: #38bdf8; font-weight: 800; }
.syn-sha { color: #facc15; font-weight: 700; background: rgba(250,204,21,0.12); padding: 0 3px; border-radius: 3px; }
.syn-br { color: #4ade80; font-weight: 800; }
.syn-rem { color: #fb923c; font-weight: 800; }
.syn-tag { color: #e879f9; font-weight: 800; }
.syn-conf-h { display: block; background: rgba(239,68,68,0.25); color: #fca5a5; font-weight: 800; padding: 0 4px; border-left: 3px solid #ef4444; }
.syn-conf-m { display: block; background: rgba(250,204,21,0.22); color: #fde047; font-weight: 800; padding: 0 4px; border-left: 3px solid #facc15; }
.syn-conf-f { display: block; background: rgba(34,197,94,0.25); color: #86efac; font-weight: 800; padding: 0 4px; border-left: 3px solid #22c55e; }

.term-card { background: #0b0f19; color: #e2e8f0; border: 1px solid #334155; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; min-height: 80px; transition: box-shadow 0.25s; }
.term-bar { background: #1e293b; padding: 6px 12px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.active-wb { background: #2563eb !important; border-color: #3b82f6 !important; color: #fff !important; }
.vfs-select { background: #0f172a; color: #facc15; border: 1px solid #475569; padding: 3px 8px; border-radius: 4px; font-family: Consolas, monospace; font-size: 11.5px; }
.term-body { flex: 1; min-height: 0; padding: 10px 14px; font-family: Consolas, monospace; font-size: 13px; line-height: 1.5; overflow-y: auto; user-select: text; }
.term-in { background: #111827; border-top: 1px solid #1e293b; padding: 7px 12px; display: flex; align-items: center; font-family: Consolas, monospace; font-size: 13px; flex-shrink: 0; }
.term-in input { flex: 1; background: transparent; border: none; color: #facc15; font-family: inherit; font-size: 13px; outline: none; margin-left: 6px; }
.p-dir { color: #facc15; font-weight: 700; } .p-br { color: #38bdf8; font-weight: 700; margin-left: 4px; } .p-merge { color: #f43f5e; font-weight: 700; }
.out { color: #cbd5e1; border-left: 2px solid #38bdf8; padding-left: 8px; margin: 3px 0 8px; white-space: pre-wrap; }
.term-diff-add { display: block; background: rgba(34, 197, 94, 0.16); color: #4ade80; font-weight: 700; padding: 0 6px; border-left: 3px solid #22c55e; }
.term-diff-del { display: block; background: rgba(239, 68, 68, 0.16); color: #f87171; font-weight: 700; padding: 0 6px; border-left: 3px solid #ef4444; }
.term-diff-hunk { display: block; color: #c084fc; font-weight: 800; background: rgba(192, 132, 252, 0.12); padding: 0 6px; }
.term-diff-hdr { display: block; color: #38bdf8; font-weight: 800; }
.term-err { color: #f87171; font-weight: 700; }
.term-hint { color: #facc15; font-weight: 600; }
.term-hist-num { color: #64748b; font-weight: 700; user-select: none; }
.term-pipe { color: #f43f5e; font-weight: 900; }
.vfs-textarea { width: 100%; flex: 1; background: #0f172a; color: #f8fafc; border: 1px solid #475569; border-radius: 6px; padding: 10px; font-family: Consolas, monospace; font-size: 13px; resize: none; outline: none; }

table.tech-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tech-table th { background: #e2e8f0; padding: 7px 10px; text-align: left; }
table.tech-table td { padding: 7px 10px; border-bottom: 1px solid #e2e8f0; }
tr.row-focus { background: #fef9c3 !important; outline: 2px solid #eab308; }

/* INTERAKTYWNY OBCHÓD PO APLIKACJI (ANIMOWANY KURSOR + SPOTLIGHT) */
.tour-overlay { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.tour-spotlight { position: fixed; border: 3px solid #facc15; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.65), 0 0 25px #facc15; transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.tour-cursor { position: fixed; z-index: 125; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; display: flex; align-items: center; justify-content: center; transform: translate(-12px, -12px); }
.tour-cursor-icon { font-size: 30px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.85)); animation: tourBounce 1.1s infinite alternate ease-in-out; }
.tour-cursor-ring { position: absolute; width: 44px; height: 44px; border: 3px solid #facc15; border-radius: 50%; animation: tourPulse 1.3s infinite ease-out; }
@keyframes tourBounce { from { transform: translate(0, 0) scale(1); } to { transform: translate(6px, 6px) scale(1.12); } }
@keyframes tourPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.tour-card { position: fixed; z-index: 130; width: 390px; max-width: 92vw; background: #0f172a; color: #f8fafc; border: 2px solid #38bdf8; border-radius: 12px; padding: 14px 16px; box-shadow: 0 20px 45px rgba(0,0,0,0.75); pointer-events: auto; transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.tour-card-hdr { display: flex; justify-content: space-between; align-items: center; }
.tour-card-ftr { margin-top: 12px; padding-top: 10px; border-top: 1px solid #334155; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* PRZYCISK PAUZY (TYLKO IKONA II / ▶ OBOK STOP) */
.btn-pause-icon { background: #f59e0b; color: #0f172a; border-color: #fbbf24; padding: 5px 8px; }
.btn-pause-icon:hover { background: #fbbf24; color: #0f172a; }
.btn-pause-icon.paused { background: #0284c7; color: #ffffff; border-color: #38bdf8; box-shadow: 0 0 12px rgba(56, 189, 248, 0.55); }

/* TRYB FOKUSU LEKTORA: STABILNY JAK SKAŁA UKŁAD + ESTETYCZNE PRZYCIEMNIENIE TŁA + SPOKOJNY TRANSPARENTNY WSKAŹNIK */
.workspace.director-mode-active {
  background: #0b1120 !important;
}

/* Estetyczne, łagodne przyciemnienie nieomawianych w danej chwili paneli kokpitu (bez wyczerniania!) */
.workspace.director-mode-active .card:not(.director-lit-pane),
.workspace.director-mode-active .term-card:not(.director-lit-pane) {
  opacity: 0.56 !important;
  filter: brightness(0.76) !important;
  transition: opacity 0.22s ease, filter 0.22s ease;
}

/* Rozjaśniony panel, o którym w tej chwili mówi lektor */
.workspace.director-mode-active .director-lit-pane {
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 0 0 2px #38bdf8, 0 0 22px rgba(56, 189, 248, 0.35) !important;
  z-index: 15;
  transition: opacity 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

/* Dodatkowe wyróżnienie panelu docelowego w kokpicie */
.workspace.director-mode-active .director-primary-target {
  box-shadow: 0 0 0 2.5px #facc15, 0 0 26px rgba(250, 204, 21, 0.45) !important;
}

/* Powiększona, czytelna typografia „Ekranu Prezentacji” w zmaksymalizowanej karcie wykładowej (BEZ skoków rozmiaru!) */
.workspace.director-mode-active #leftTop .win-panel.maximized-mode .win-titlebar {
  font-size: 13.5px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #1d4ed8, #0f172a);
}
.workspace.director-mode-active #leftTop .win-panel.maximized-mode .win-body {
  font-size: 14.5px;
  line-height: 1.6;
  padding: 16px 20px;
  gap: 12px;
}

/* Łagodne przygaszenie nieomawianych wierszy tabeli i linii kodu (BEZ transform:scale, żeby nic nie drgało!) */
.workspace.director-mode-active table.tech-table.has-row-focus tbody tr:not(.row-focus) {
  opacity: 0.58;
  transition: opacity 0.22s ease;
}
.workspace.director-mode-active table.tech-table tbody tr.row-focus {
  background: #fef9c3 !important;
  outline: 2px solid #eab308;
  position: relative;
  z-index: 5;
}

.workspace.director-mode-active .ps-codeblock.has-line-focus .code-line:not(.laser-focus) {
  opacity: 0.55;
  transition: opacity 0.22s ease;
}
.workspace.director-mode-active .ps-codeblock .code-line.laser-focus {
  background: rgba(250, 204, 21, 0.22);
  border-left: 4px solid #facc15;
}

/* Łagodne przygaszenie pozostałych boksów w Inspektorze .git, gdy omawiany jest konkretny boks */
.workspace.director-mode-active .trees.has-box-focus .tbox:not(.flash) {
  opacity: 0.58 !important;
  filter: brightness(0.84) !important;
}
.workspace.director-mode-active .trees .tbox.flash {
  z-index: 10;
  box-shadow: 0 0 0 2.5px #facc15, 0 0 18px rgba(250, 204, 21, 0.45) !important;
}

/* Wyraziste, w 100% transparentne różowo-magentowe kółeczko wskaźnika prelegenta (płynny ruch 60 FPS bez zasłaniania tekstu) */
.director-orb {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 63, 94, 0.56) 0%,
    rgba(236, 72, 153, 0.44) 62%,
    rgba(236, 72, 153, 0.08) 100%
  );
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.52);
  border: none;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
