/* Leonardo — „Ülj be egy meetingre” szimulátor + a kivetítős reakció-réteg */
.ld-sec--sim { padding-top: clamp(36px, 4vw, 56px); }
.ld-sim { position: relative; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(227, 163, 50, .5), 0 40px 80px -30px rgba(0, 0, 0, .8), 14px 14px 0 rgba(227, 163, 50, .85); font-size: 14.5px; }
.ld-sim__chrome { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: var(--ink); color: var(--paper); }
.ld-sim__logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-d); font-size: 19px; font-weight: 600; }
.ld-sim__logo .ld-mark { width: 28px; height: 28px; color: var(--paper); }
.ld-sim__state { font-family: var(--ff-m); font-size: 11px; letter-spacing: .12em; padding: 3px 10px; border-radius: 99px; background: var(--gold); color: var(--ink); font-weight: 500; }
.ld-sim.is-run .ld-sim__state { background: var(--sage); color: #fff; }
.ld-sim__title { font-size: 14px; color: rgba(247, 242, 231, .85); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-sim__title i { color: var(--gold-2); font-style: normal; margin: 0 4px; }
.ld-sim__clock { font-family: var(--ff-m); font-size: 15px; letter-spacing: .06em; color: var(--gold-2); }
.ld-sim__rec { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-m); font-size: 11px; letter-spacing: .14em; color: rgba(247, 242, 231, .5); }
.ld-sim__rec i { width: 8px; height: 8px; border-radius: 50%; background: #666; }
.ld-sim.is-run .ld-sim__rec { color: #ff8d75; }
.ld-sim.is-run .ld-sim__rec i { background: #ff5a3c; animation: ld-pulse 1.2s infinite; }
.ld-sim__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 11px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.ld-opt { display: inline-flex; align-items: center; gap: 8px; }
.ld-opt > span { font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.ld-seg3 { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--card); }
.ld-seg3 button { font-family: var(--ff-c); font-weight: 500; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; padding: 7px 11px; background: transparent; border: 0; border-right: 1.5px solid var(--ink); white-space: nowrap; transition: background .2s, color .2s; }
.ld-seg3 button:last-child { border-right: 0; }
.ld-seg3 button:hover { background: var(--gold-pale); }
.ld-seg3 button.is-on { background: var(--ink); color: var(--gold-2); }
.ld-sim__sec { margin-left: auto; font-family: var(--ff-m); font-size: 11px; letter-spacing: .05em; color: var(--ink-soft); }
.ld-sim__sec b { color: var(--sage); font-weight: 500; }
.ld-sim__sec b.is-mid { color: #9a6a0a; } .ld-sim__sec b.is-off { color: var(--sang); }

.ld-sim__body { display: grid; grid-template-columns: 1.08fr 1.55fr .88fr; height: 410px; }
.ld-pan { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 16px 12px; border-right: 1px solid var(--line-2); }
.ld-pan:last-child { border-right: 0; }
.ld-pan__h { font-family: var(--ff-c); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.ld-pan__h em { font-family: var(--ff-m); font-style: normal; font-weight: 400; font-size: 10px; letter-spacing: .08em; color: var(--ink-mute); }

.ld-tr { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.ld-tr li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; padding: 8px 10px; border-left: 3px solid var(--line-2); background: rgba(253, 251, 246, .8); border-radius: 0 8px 8px 0; animation: ld-rise .5s var(--ease); transition: background .4s, border-color .4s; }
.ld-tr li.is-flash { background: var(--gold-pale); border-left-color: var(--gold); }
.ld-tr time { font-family: var(--ff-m); font-size: 10.5px; color: var(--ink-mute); padding-top: 2px; grid-row: 1 / 3; }
.ld-tr b { font-family: var(--ff-c); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.ld-tr p { font-size: 13.5px; line-height: 1.4; }
.ld-tr li.is-typing p::after { content: '▍'; color: var(--gold); animation: ld-blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes ld-blink { 50% { opacity: 0; } }
.ld-tr__empty { color: var(--ink-mute); font-size: 13px; padding: 10px; }

.ld-mgrid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start; scrollbar-width: thin; }
.ld-mcol { min-height: 118px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(253, 251, 246, .75); padding: 8px 9px 9px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ld-mcol__h { display: flex; align-items: center; gap: 6px; font-family: var(--ff-c); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.ld-mcol__h .ld-ico { width: 24px; height: 24px; flex: none; }
.ld-mcol__h i { margin-left: auto; font-style: normal; font-family: var(--ff-m); font-size: 10.5px; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 99px; background: var(--paper-3); }
.ld-mcol__l { display: grid; gap: 5px; align-content: start; }
.ld-mchip { position: relative; padding: 5px 8px 5px 10px; font-size: 12.5px; line-height: 1.3; border-radius: 6px; background: var(--card); border: 1px solid var(--line); animation: ld-chip .8s var(--ease); }
.ld-mchip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); border-radius: 6px 0 0 6px; }
.ld-mchip small { display: inline-block; margin-left: 5px; font-family: var(--ff-m); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
[data-mcol="risk"] .ld-mchip::before, [data-mcol="contra"] .ld-mchip::before { background: var(--sang); }
[data-mcol="open"] .ld-mchip::before { background: var(--blue); }
[data-mcol="dec"] .ld-mchip::before { background: var(--sage); }
@keyframes ld-chip { 0% { opacity: 0; transform: translateY(-12px) scale(.9); background: var(--gold); } 60% { opacity: 1; } 100% { transform: none; } }

.ld-an { display: grid; gap: 7px; }
.ld-an li { display: grid; grid-template-columns: 1fr 46px 22px; gap: 8px; align-items: center; font-size: 12.5px; }
.ld-an__bar { position: relative; display: block; height: 5px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.ld-an__bar b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sage); border-radius: 3px; }
.ld-an li.is-run .ld-an__bar b { width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); background-size: 200% 100%; animation: ld-shim 1s linear infinite; }
.ld-an li.is-done .ld-an__bar b { width: 100%; }
.ld-an em { font-style: normal; font-family: var(--ff-m); font-size: 11px; text-align: right; color: var(--ink-soft); }
@keyframes ld-shim { to { background-position: -200% 0; } }
.ld-cache { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font-family: var(--ff-m); font-size: 11px; letter-spacing: .05em; display: flex; justify-content: space-between; }
.ld-cache b { color: var(--gold-2); font-weight: 500; }
.ld-feed { margin-top: 10px; flex: 1; min-height: 0; overflow: hidden; display: grid; align-content: start; gap: 6px; }
.ld-feed li { font-size: 11.5px; line-height: 1.35; color: var(--ink-soft); padding-left: 12px; position: relative; animation: ld-rise .5s var(--ease); }
.ld-feed li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.ld-feed li:nth-child(n+4) { opacity: .5; } .ld-feed li:nth-child(n+6) { display: none; }

.ld-sim__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line-2); background: var(--paper-2); position: relative; }
.ld-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-act { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); font-family: var(--ff-c); font-weight: 600; letter-spacing: .09em; font-size: 14px; text-transform: uppercase; transition: transform .35s var(--ease), background .25s, box-shadow .3s, opacity .2s; }
.ld-act .ld-ico { width: 34px; height: 34px; }
.ld-act--main { box-shadow: 3px 3px 0 var(--ink); }
.ld-act:not([disabled]):hover { transform: translate(-1px, -2px); background: var(--gold-pale); box-shadow: 5px 5px 0 var(--ink); }
.ld-act:not([disabled]):hover .ld-ico { transform: rotate(-6deg) scale(1.1); }
.ld-act[disabled] { opacity: .42; cursor: not-allowed; box-shadow: none; }
.ld-sim.is-ready .ld-act:not([disabled]) { animation: ld-glow 2.8s ease-in-out infinite; }
@keyframes ld-glow { 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 4px rgba(227, 163, 50, .35); } }
.ld-plus1btn { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; padding: 8px 18px 8px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--gold); font-weight: 600; font-size: 14px; animation: ld-rise .6s var(--ease); box-shadow: 4px 4px 0 var(--ink); transition: transform .3s var(--ease); }
.ld-plus1btn[hidden] { display: none; }
.ld-plus1btn:hover { transform: translate(-1px, -2px); }
.ld-plus1btn__m { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold-2); font-family: var(--ff-c); font-weight: 700; font-size: 16px; }
.ld-plus1btn__m::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); animation: ld-ping 1.6s infinite; }
.ld-pop { position: relative; }
.ld-pop__box { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 20; width: min(360px, 86vw); padding: 10px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); animation: ld-rise .35s var(--ease); }
.ld-pop__box[hidden] { display: none; }
.ld-pop__box ul { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.ld-pop__box ul button { width: 100%; text-align: left; font-size: 13.5px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; line-height: 1.3; }
.ld-pop__box ul button:hover { background: var(--gold-pale); }
.ld-ask { display: flex; gap: 6px; margin-bottom: 8px; }
.ld-ask input { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 8px; background: var(--paper); }
.ld-ask input:focus { outline: none; border-color: var(--gold-deep); }
.ld-ask button { width: 36px; border: 0; border-radius: 8px; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; }

.ld-sim__tl { display: grid; grid-template-columns: 1.2fr 1fr; border-top: 1px solid var(--line-2); }
.ld-tl, .ld-rx { padding: 12px 18px 14px; min-width: 0; }
.ld-tl { border-right: 1px solid var(--line-2); }
.ld-tl ol { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; min-height: 54px; }
.ld-tl li { flex: none; }
.ld-tl button { display: grid; gap: 2px; text-align: left; padding: 6px 12px 7px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font-size: 12px; line-height: 1.25; animation: ld-pop .5s var(--ease); transition: border-color .25s, background .25s; }
.ld-tl button:hover { border-color: var(--gold-deep); background: var(--gold-pale); }
.ld-tl time { font-family: var(--ff-m); font-size: 10.5px; color: var(--gold-deep); }
.ld-tl li.is-ai button { background: var(--gold-pale); border-color: var(--gold-deep); }
.ld-rx ol { display: grid; gap: 6px; }
.ld-rx li { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font-size: 12.5px; line-height: 1.4; }
.ld-rx li button { display: grid; gap: 2px; width: 100%; background: transparent; border: 0; padding: 0; text-align: left; }
.ld-rx li b { font-family: var(--ff-c); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.ld-rx li span { font-family: var(--ff-m); font-size: 10.5px; color: var(--ink-soft); }
.ld-rx li:not(.ld-rx__empty):hover { border-color: var(--gold-deep); background: var(--gold-pale); }
.ld-rx__empty { color: var(--ink-mute); border-style: dashed !important; background: transparent !important; }

/* indító („KÉSZ”) képernyő */
.ld-ready { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(247, 242, 231, .9); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); transition: opacity .6s var(--ease), visibility .6s; }
.ld-ready.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.ld-ready__box { width: min(520px, 100%); display: grid; gap: 18px; justify-items: stretch; padding: 28px 30px 24px; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 10px 10px 0 var(--ink); }
.ld-ready__k { display: flex; align-items: center; gap: 10px; font-family: var(--ff-d); font-size: 28px; font-weight: 600; }
.ld-ready__k .ld-mark { width: 38px; height: 38px; }
.ld-ready__k b { color: var(--gold-deep); font-family: var(--ff-c); letter-spacing: .12em; font-size: 20px; }
.ld-ready__l li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.ld-ready__l span { color: var(--ink-soft); }
.ld-ready__l b { font-weight: 600; text-align: right; }
.ld-ready__l b.ok { color: var(--sage); font-family: var(--ff-m); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.ld-ready__box .ld-btn { justify-self: stretch; }
.ld-ready__n { font-size: 12px; color: var(--ink-mute); text-align: center; }
.ld-synth { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 12; display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--ink); color: var(--paper); border-radius: 99px; box-shadow: var(--shadow-2); font-family: var(--ff-m); font-size: 12px; letter-spacing: .04em; overflow: hidden; }
.ld-synth[hidden] { display: none; }
.ld-synth i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold); border-top-color: transparent; animation: ld-spin .7s linear infinite; }
.ld-toast { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); z-index: 11; padding: 11px 20px; background: var(--ink); color: var(--paper); border: 1.5px solid var(--gold); border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-2); animation: ld-rise .5s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.ld-toast[hidden] { display: none; }
.ld-toast b { color: var(--gold-2); font-family: var(--ff-c); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }

/* kivetítős reakció-réteg */
.ld-proj { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(8, 14, 26, .84); backdrop-filter: blur(5px); animation: ld-fade .35s ease; }
.ld-proj[hidden] { display: none; }
.ld-proj__frame { width: min(940px, 100%); max-height: 100%; overflow: auto; background: var(--ink); color: var(--paper); border: 1.5px solid var(--gold); border-radius: 14px; box-shadow: 0 30px 70px -20px #000; display: grid; animation: ld-dlg-in .5s var(--ease); }
.ld-proj__top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-d); }
.ld-proj__t { font-family: var(--ff-c); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-size: 14px; color: var(--gold-2); padding: 3px 12px; border: 1.5px solid var(--gold); border-radius: 4px; }
.ld-proj__meta { flex: 1; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .06em; color: rgba(247, 242, 231, .6); min-width: 0; }
.ld-proj__stage { position: relative; padding: clamp(18px, 3vw, 34px); min-height: 280px; display: grid; align-content: center; gap: 14px; background: radial-gradient(520px 280px at 100% 0, rgba(227, 163, 50, .18), transparent 70%); }
.ld-proj__stage .ld-sl__h { font-size: clamp(22px, 2.8vw, 34px); max-width: 26ch; }
.ld-proj__stage .ld-sl__l li { font-size: 15.5px; }
.ld-proj__why { margin: 0 clamp(18px, 3vw, 34px) 14px; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(227, 163, 50, .12); font-size: 14px; line-height: 1.45; border-radius: 0 8px 8px 0; animation: ld-rise .4s var(--ease); }
.ld-proj__why[hidden] { display: none; }
.ld-proj__why b { color: var(--gold-2); font-family: var(--ff-c); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.ld-proj__voice { display: grid; grid-template-columns: auto 160px 1fr; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line-d); background: rgba(247, 242, 231, .04); }
.ld-proj__voice .ld-wave { height: 34px; }
.ld-proj__voice .ld-wave i { background: var(--gold-2); }
.ld-cap { font-family: var(--ff-d); font-style: italic; font-size: 16px; line-height: 1.35; color: rgba(247, 242, 231, .92); min-height: 2.7em; }
.ld-cap .wd { opacity: .35; transition: opacity .2s; } .ld-cap .wd.is-said { opacity: 1; } .ld-cap .wd.is-now { color: var(--gold-2); opacity: 1; }
.ld-proj__ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 10px 14px; border-top: 1px solid var(--line-d); }
.ld-proj__nav { display: inline-flex; align-items: center; gap: 10px; }
.ld-proj__nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-d2); background: transparent; color: var(--paper); font-size: 20px; line-height: 1; }
.ld-proj__nav button:hover { border-color: var(--gold); color: var(--gold-2); }
.ld-proj__nav [data-pdots] { display: inline-flex; gap: 6px; }
.ld-proj__nav [data-pdots] i { width: 9px; height: 9px; border-radius: 50%; background: rgba(247, 242, 231, .25); transition: background .3s, transform .3s; }
.ld-proj__nav [data-pdots] i.is-on { background: var(--gold); transform: scale(1.3); }
.ld-proj__cmd { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-proj__cmd button { font-family: var(--ff-c); font-weight: 500; font-size: 12px; letter-spacing: .1em; padding: 6px 11px; border: 1px solid var(--line-d2); border-radius: 6px; background: transparent; color: rgba(247, 242, 231, .85); transition: border-color .2s, color .2s, background .2s; }
.ld-proj__cmd button:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(227, 163, 50, .1); }
.ld-sim__foot { margin-top: 26px; font-size: 14px; color: rgba(247, 242, 231, .7); max-width: 80ch; }
.ld-sim__foot .ld-chip { margin-right: 6px; }

@media (max-width: 1100px) {
  .ld-sim__body { grid-template-columns: 1fr 1.3fr; height: auto; }
  .ld-pan--tr, .ld-pan--mem { height: 400px; }
  .ld-pan--an { grid-column: 1 / -1; border-top: 1px solid var(--line-2); border-right: 0; }
  .ld-an { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .ld-feed { max-height: 120px; }
}
@media (max-width: 760px) {
  .ld-sim { font-size: 14px; border-radius: 14px; box-shadow: 0 30px 60px -30px #000, 8px 8px 0 rgba(227, 163, 50, .85); }
  .ld-sim__chrome { gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
  .ld-sim__title { order: 5; flex: 1 1 100%; font-size: 13px; }
  .ld-sim__opts { padding: 10px 14px; }
  .ld-opt { flex-wrap: wrap; }
  .ld-sim__sec { margin-left: 0; }
  .ld-sim__body { grid-template-columns: 1fr; }
  .ld-pan--tr { height: 280px; } .ld-pan--mem { height: 440px; border-right: 0; border-top: 1px solid var(--line-2); }
  .ld-sim__tl { grid-template-columns: 1fr; }
  .ld-tl { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .ld-act { padding: 5px 10px 5px 6px; font-size: 12.5px; }
  .ld-act .ld-ico { width: 28px; height: 28px; }
  .ld-plus1btn { margin-left: 0; }
  .ld-proj__voice { grid-template-columns: auto 1fr; } .ld-proj__voice .ld-cap { grid-column: 1 / -1; }
  .ld-pop__box { position: fixed; left: 14px; right: 14px; bottom: 14px; width: auto; }
  .ld-ready__box { padding: 22px 20px 20px; }
  .ld-proj { padding: 8px; }
}

.ld-act.is-restricted, .ld-pop__box button.is-restricted { opacity: .55; border-style: dashed; }
.ld-restart { font: inherit; color: var(--gold-2); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
