/* Execuday "How it works" live demo. Pure CSS, no external assets. */
.dm-intro { max-width: 40rem; margin: 0 auto; }
.demo { position: relative; max-width: 1000px; margin: 2rem auto 0; }
html:not(.js) .demo { display: none; }
.demo::before {
  content: ""; position: absolute; inset: 12% -3% -5%; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 25% 40%, rgb(249 115 98 / 18%), transparent 70%),
              radial-gradient(50% 60% at 78% 62%, rgb(51 65 85 / 16%), transparent 70%);
  filter: blur(28px);
}
.dm-controls { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.dm-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--tp-border); border-radius: 999px; box-shadow: var(--shadow); }
.dm-tab {
  position: relative; overflow: hidden; font: inherit; font-size: .9rem; font-weight: 600;
  min-height: 40px; padding: .45rem 1.05rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--tp-primary); transition: background .2s, color .2s;
}
.dm-tab:hover { color: var(--tp-primary-dark); background: var(--tp-primary-50); }
.dm-tab[aria-selected="true"] { background: var(--tp-primary); color: #fff; }
.dm-tab-bar { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 22%); opacity: 0; }
.dm-tab[aria-selected="true"] .dm-tab-bar { opacity: 1; }
.dm-tab-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--tp-accent); }
.dm-pause {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: var(--tp-primary);
  border: 1px solid var(--tp-border); box-shadow: var(--shadow);
}
.dm-pause:hover { color: var(--tp-primary-dark); border-color: var(--tp-primary-muted); }
.dm-tab:focus-visible, .dm-pause:focus-visible, .dm-panel:focus-visible { outline: 2px solid var(--tp-accent-ink); outline-offset: 2px; }
.dm-panel { position: relative; z-index: 1; border-radius: 18px; }

/* Window */
.dm-window {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--tp-border); border-radius: 18px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 28px 60px -18px rgb(15 23 42 / 28%);
  font-size: 13px; line-height: 1.4; color: var(--tp-ink); text-align: left;
  -webkit-user-select: none; user-select: none;
}
.dm-chrome { display: flex; align-items: center; gap: 6px; padding: .55rem .9rem; background: var(--tp-bg); border-bottom: 1px solid var(--tp-border); }
.dm-chrome > span { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.dm-chrome > span:nth-child(1) { background: #FECACA; }
.dm-chrome > span:nth-child(3) { background: #BBF7D0; }
.dm-url { display: flex; align-items: center; gap: .4rem; flex: 1; max-width: 380px; margin: 0 auto; padding: .2rem .7rem; font-size: 11.5px; color: var(--tp-muted); background: #fff; border: 1px solid var(--tp-border); border-radius: 7px; }
.dm-url svg { flex-shrink: 0; }
.dm-url-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-app { display: grid; grid-template-columns: 184px 1fr; height: 450px; }
.dm-side { background: #F1F5F9; border-right: 1px solid var(--tp-border); padding: .9rem .7rem; }
.dm-logo { display: flex; align-items: center; gap: .5rem; margin: 0 .3rem .25rem; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.dm-logo img { width: 24px; height: 24px; border-radius: 7px; }
.dm-ws { margin: 0 .3rem 1rem; font-size: 11px; color: var(--tp-muted); }
.dm-nav { list-style: none; margin: 0; padding: 0; }
.dm-nav li { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; margin-bottom: 2px; border-radius: 8px; color: #475569; transition: background .3s, color .3s; }
.dm-nav li i { width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .55; }
.dm-nav li.on { background: #fff; color: var(--tp-primary-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--tp-accent), 0 1px 2px rgb(15 23 42 / 6%); }
.dm-nav li.on i { opacity: 1; border-color: var(--tp-accent); }
.dm-main { display: flex; flex-direction: column; min-width: 0; }
.dm-top { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--tp-border); }
.dm-title { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.dm-top-r { display: flex; align-items: center; gap: .55rem; margin-left: auto; font-size: 12px; color: #475569; }
.dm-bell { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--tp-border); border-radius: 8px; color: var(--tp-primary); }
.dm-bell b { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--tp-accent); box-shadow: 0 0 0 2px #fff; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.dm-bell.on b { transform: scale(1); }
.dm-view { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 1rem 1.1rem; background: var(--tp-bg); }

/* Shared bits */
.av { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; font-size: 10.5px; font-weight: 700; color: #fff; box-shadow: 0 0 0 2px #fff; }
.av-m { background: #4F46E5; } .av-j { background: #334155; } .av-s { background: #0F766E; } .av-a { background: #F97362; color: #1E293B; }
.dm-card { background: #fff; border: 1px solid var(--tp-border); border-radius: 12px; padding: .75rem .85rem; box-shadow: 0 1px 2px rgb(15 23 42 / 5%); min-width: 0; }
.dm-ch { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; font-weight: 700; font-size: 13px; }
.dm-ch small { font-size: 11px; font-weight: 500; color: var(--tp-muted); }
.pill { display: inline-flex; align-items: center; padding: .16rem .55rem; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; transition: background .35s, color .35s; }
.pill.pending { background: #FEF3C7; color: #92400E; }
.pill.ok { background: #D1FAE5; color: #065F46; }
.pill.ns { background: #F1F5F9; color: #475569; }
.pill.ip { background: #E0F2FE; color: #075985; }
.dm-btn { display: inline-flex; align-items: center; padding: .36rem .7rem; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--tp-primary); color: #fff; transition: transform .15s, box-shadow .2s, background .2s; }
.dm-btn.ghost { background: #fff; color: #475569; border-color: var(--tp-border); }
.dm-btn.press { transform: scale(.94); box-shadow: 0 0 0 4px rgb(249 115 98 / 30%); }
.hide { display: none !important; }
.in { animation: dmIn .5s cubic-bezier(.2,.8,.2,1) both; }
.pop { animation: dmPop .45s cubic-bezier(.3,1.5,.5,1) both; }
.leave { animation: dmOut .35s ease forwards; }
.fade { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.fade.on { opacity: 1; transform: none; }
@keyframes dmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dmPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes dmOut { to { opacity: 0; transform: scale(.92); } }
.toast {
  position: absolute; top: .6rem; right: .8rem; z-index: 3; display: flex; align-items: center; gap: .55rem; max-width: 270px;
  padding: .55rem .75rem; background: #fff; border: 1px solid var(--tp-border); border-left: 3px solid var(--tp-accent); border-radius: 10px;
  box-shadow: 0 14px 30px -10px rgb(15 23 42 / 30%); font-size: 12px;
  opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.toast.on { opacity: 1; transform: none; }
.toast p { margin: 0; } .toast b { display: block; } .toast span { color: #475569; }
.toast .tic { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--tp-accent-light); color: var(--tp-accent-ink); font-weight: 800; }
.inp { position: relative; display: flex; align-items: center; min-height: 32px; padding: .4rem .6rem; background: #fff; border: 1.5px solid var(--tp-border); border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.inp.focus { border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgb(249 115 98 / 25%); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; background: var(--tp-ink); opacity: 0; }
.inp.focus .caret { opacity: 1; animation: dmBlink 1s steps(1) infinite; }
@keyframes dmBlink { 50% { opacity: 0; } }
.ph { color: #64748B; }
.mention { padding: 0 .2rem; border-radius: 4px; background: rgb(249 115 98 / 15%); color: #334155; font-weight: 700; }

/* Scene 1: time off */
.s1 { display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: auto 1fr; gap: .8rem; height: 100%; }
.s1 .cal { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; }
.rq { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: 10px; transition: background .5s; }
.rq.new { background: var(--tp-accent-light); }
.rq + .rq { margin-top: .25rem; }
.rq .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rq .tx span { font-size: 11.5px; color: var(--tp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq .acts { display: flex; gap: .3rem; }
.week { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.day { display: flex; flex-direction: column; gap: .3rem; min-width: 0; padding: .4rem .35rem; background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 8px; transition: border-color .4s, background .4s; }
.day b { font-size: 10.5px; font-weight: 600; color: var(--tp-muted); }
.day b em { display: block; font-style: normal; font-size: 15px; font-weight: 700; color: var(--tp-ink); }
.day.flag { border-color: var(--tp-accent); background: var(--tp-accent-light); }
.ev { padding: .2rem .3rem; border-radius: 5px; font-size: 10px; font-weight: 600; line-height: 1.25; overflow: hidden; }
.ev.t { background: var(--tp-accent-light); color: var(--tp-accent-ink); box-shadow: inset 0 0 0 1px var(--tp-accent-100); }
.ev.v { background: #E0E7FF; color: #3730A3; }
.ev.r { background: #E0F2FE; color: #0369A1; }
.mid-t { display: none; }
.legend { display: flex; gap: .9rem; margin-top: .55rem; font-size: 11px; color: var(--tp-muted); }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: .3rem; border-radius: 2px; background: var(--tp-accent); }
.legend i.v { background: #6366F1; }
.fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .5rem; }
.f label { display: block; margin-bottom: .2rem; font-size: 10.5px; font-weight: 600; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .04em; }
.val { display: flex; align-items: center; gap: .35rem; min-height: 32px; padding: .3rem .5rem; border: 1px solid var(--tp-border); border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.val .av { width: 20px; height: 20px; font-size: 9.5px; }
.val.focus { border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgb(249 115 98 / 25%); }
.warn { display: flex; align-items: flex-start; gap: .55rem; margin-top: .6rem; padding: .55rem .65rem; background: #FFF1EE; border: 1px solid #F97362; border-radius: 10px; color: #334155; }
.warn p { margin: 0; } .warn b { display: block; font-size: 12px; } .warn span { font-size: 11.5px; color: #475569; }
.warn u { color: #334155; font-weight: 600; text-decoration-color: #F97362; text-underline-offset: 2px; }
.warn .ic { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: #F97362; color: #1E293B; font-size: 12px; font-weight: 800; }

/* Scene 2: projects */
.s2 { display: flex; flex-direction: column; gap: .8rem; height: 100%; }
.bar { display: flex; align-items: center; gap: .6rem; }
.bar .dm-btn { margin-left: auto; }
.seg { display: inline-flex; padding: 2px; background: #fff; border: 1px solid var(--tp-border); border-radius: 8px; font-size: 12px; }
.seg span { padding: .2rem .6rem; border-radius: 6px; color: var(--tp-muted); }
.seg .on { background: #F1F5F9; color: var(--tp-ink); font-weight: 600; }
.board { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.proj { position: relative; display: flex; flex-direction: column; gap: .55rem; min-height: 230px; padding: .8rem; background: #fff; border: 1px solid var(--tp-border); border-radius: 12px; box-shadow: 0 1px 2px rgb(15 23 42 / 5%); transition: border-color .4s, box-shadow .4s, background .4s; }
.proj h5 { margin: 0; font-size: 14px; font-weight: 700; }
.proj .sub { font-size: 11px; color: var(--tp-muted); }
.ph-h { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.avs { display: flex; }
.avs .av { width: 22px; height: 22px; font-size: 9.5px; }
.avs .av + .av, .avs > span + span .av { margin-left: -5px; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tl li { display: flex; align-items: center; gap: .45rem; padding: .38rem .45rem; background: #fff; border: 1px solid var(--tp-border); border-radius: 8px; font-size: 12px; }
.tl .ck { width: 12px; height: 12px; flex-shrink: 0; border: 1.5px solid #94A3B8; border-radius: 50%; }
.tl .ck.d { background: var(--tp-success); border-color: var(--tp-success); }
.tl .nm { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .due { font-size: 11px; color: var(--tp-muted); white-space: nowrap; }
.tl .av { width: 20px; height: 20px; font-size: 9px; box-shadow: none; }
.prog { height: 6px; overflow: hidden; background: #F1F5F9; border-radius: 9px; }
.prog i { display: block; height: 100%; border-radius: inherit; background: var(--tp-primary); }
.proj.ghost { background: transparent; border: 1.5px dashed #CBD5E1; box-shadow: none; }
.proj .phx { position: absolute; inset: 0; display: none; place-items: center; font-weight: 600; color: var(--tp-muted); }
.proj.ghost .phx { display: grid; }
.proj.ghost .inner { visibility: hidden; }
.proj.nw:not(.ghost) { border-color: var(--tp-accent); box-shadow: 0 0 0 3px rgb(249 115 98 / 18%), 0 10px 24px -12px rgb(15 23 42 / 25%); animation: dmPop .5s cubic-bezier(.3,1.4,.5,1) both; }
.proj .inner { display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.modal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgb(15 23 42 / 30%); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.on { opacity: 1; visibility: visible; }
.dlg { width: min(340px, 90%); padding: 1rem 1.1rem; background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -12px rgb(15 23 42 / 40%); transform: translateY(12px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.modal.on .dlg { transform: none; }
.dlg h5 { margin: 0 0 .5rem; font-family: var(--display); font-size: 16px; font-weight: 800; }
.dlg label { display: block; margin: .6rem 0 .3rem; font-size: 10.5px; font-weight: 600; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .04em; }
.dlg .inp { font-size: 14px; font-weight: 600; }
.mem { display: flex; align-items: center; gap: .3rem; min-height: 28px; }
.mem .add { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px dashed #94A3B8; border-radius: 50%; color: var(--tp-muted); font-weight: 700; }
.dlg .acts { display: flex; justify-content: flex-end; gap: .4rem; margin-top: 1rem; }

/* Scene 3: comments */
.s3 { display: grid; grid-template-columns: 1fr 1.15fr; gap: .8rem; height: 100%; }
.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.col { display: flex; flex-direction: column; gap: .4rem; min-width: 0; padding: .45rem; background: #EEF2F6; border-radius: 10px; }
.col h6 { display: flex; justify-content: space-between; margin: .1rem .2rem .15rem; font-size: 10.5px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .05em; }
.col h6 em { font-style: normal; color: var(--tp-muted); }
.kc { display: flex; flex-direction: column; gap: .35rem; padding: .45rem .5rem; background: #fff; border: 1px solid var(--tp-border); border-radius: 8px; font-size: 11.5px; font-weight: 600; box-shadow: 0 1px 2px rgb(15 23 42 / 5%); }
.kc .row { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 500; color: var(--tp-muted); }
.kc .av { width: 18px; height: 18px; font-size: 8.5px; box-shadow: none; }
.kc.sel { border-color: var(--tp-accent); box-shadow: 0 0 0 3px rgb(249 115 98 / 18%); }
.kc.dn { color: var(--tp-muted); text-decoration: line-through; text-decoration-color: #94A3B8; }
.drw { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--tp-border); border-radius: 12px; box-shadow: 0 1px 2px rgb(15 23 42 / 5%); }
.drw-h { padding: .7rem .9rem .65rem; border-bottom: 1px solid var(--tp-border); }
.crumb { font-size: 11px; font-weight: 600; color: var(--tp-muted); }
.drw h5 { margin: .1rem 0 .45rem; font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: 11.5px; color: var(--tp-muted); }
.meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.meta strong { display: inline-flex; align-items: center; gap: .3rem; color: var(--tp-ink); font-weight: 600; }
.meta .av { width: 18px; height: 18px; font-size: 8.5px; box-shadow: none; }
.thread { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; overflow: hidden; padding: .7rem .9rem; }
.cm { display: flex; gap: .5rem; }
.cm .bd { flex: 1; min-width: 0; }
.cm .who { font-size: 12px; font-weight: 700; }
.cm time { margin-left: .3rem; font-size: 11px; font-weight: 500; color: var(--tp-muted); }
.cm p { margin: .15rem 0 0; padding: .4rem .6rem; background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 4px 10px 10px 10px; font-size: 12.5px; }
.comp { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-top: 1px solid var(--tp-border); }
.comp .inp { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; }
.ta { position: absolute; left: .4rem; bottom: calc(100% + 6px); display: flex; align-items: center; gap: .4rem; padding: .35rem .6rem .35rem .4rem; background: #fff; border: 1px solid var(--tp-border); border-radius: 8px; box-shadow: 0 10px 24px -10px rgb(15 23 42 / 30%); font-size: 12px; font-weight: 600; }
.ta .av { width: 20px; height: 20px; font-size: 9px; box-shadow: none; }
.ta small { color: var(--tp-muted); font-weight: 500; }

/* Cursor */
.dm-cursor { position: absolute; left: 0; top: 0; z-index: 10; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45,.05,.25,1); filter: drop-shadow(0 2px 3px rgb(15 23 42 / 30%)); }
.dm-cursor svg { display: block; transform-origin: 3px 2px; transition: transform .15s; }
.dm-cursor.down svg { transform: scale(.8); }
.dm-cursor::after { content: ""; position: absolute; left: -10px; top: -10px; width: 24px; height: 24px; border: 2px solid var(--tp-accent); border-radius: 50%; opacity: 0; }
.dm-cursor.down::after { animation: dmRing .5s ease-out; }
@keyframes dmRing { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }

/* Static frame (reduced motion / paused tab switch) */
.dm-static *, .dm-static *::before, .dm-static *::after { animation: none !important; transition: none !important; }
.dm-static .dm-cursor { display: none; }

.steps-h { margin: 3.25rem 0 0; font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }

@media (max-width: 760px) {
  .dm-app { grid-template-columns: 1fr; height: 530px; }
  .dm-side, .dm-top-r .nm, .legend, .rq.old, .f-name, .kb, .proj.o2 { display: none; }
  .dm-view { padding: .7rem; }
  .dm-top { padding: .6rem .8rem; }
  .s1 { grid-template-columns: 1fr; grid-template-rows: auto; gap: .55rem; }
  .s1 .cal { grid-column: 1; grid-row: 2; }
  .s1 .task { grid-row: 3; }
  .day { padding: .3rem .35rem; }
  .day.edge, .edge-t { display: none; }
  .mid-t { display: inline; }
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s1 .dm-card { padding: .6rem .7rem; }
  .s1 .dm-ch { margin-bottom: .4rem; }
  .rq { padding: .35rem .4rem; }
  .fields { grid-template-columns: 1fr 1fr; }
  .rq .tx span { white-space: normal; }
  .board { grid-template-columns: 1fr; }
  .proj { min-height: 0; }
  .proj.nw { order: -1; min-height: 190px; }
  .proj.o1 .tl { display: none; }
  .s3 { grid-template-columns: 1fr; }
  .toast { left: .7rem; right: .7rem; max-width: none; }
}
@media (max-width: 420px) {
  .dm-tab { padding: .45rem .8rem; font-size: .85rem; }
  .dm-controls { gap: .4rem; }
  .dm-url { max-width: none; }
}
