/* Интерактивная Lab-демка Worklog на тестовых данных. */
.wlog-demo {
    --wlog-card: rgba(15, 23, 42, .82);
    --wlog-line: rgba(148, 163, 184, .22);
    --wlog-green: #86efac;
    --wlog-blue: #7dd3fc;
    --wlog-yellow: #fde68a;
}
.wlog-topline,
.wlog-animation,
.wlog-layout,
.wlog-flow,
.plab-related-note { margin-top: 20px; }
.wlog-topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--wlog-line);
    border-radius: 26px;
    background: rgba(15, 23, 42, .64);
}
.wlog-topline h2 { margin: 4px 0 8px; color: #fff; }
.wlog-topline p { margin: 0; color: #bfdbfe; line-height: 1.55; }
.wlog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wlog-actions button,
.wlog-photo-row button,
.wlog-session__actions button,
.wlog-submit {
    border: 1px solid rgba(125, 211, 252, .34);
    border-radius: 999px;
    padding: 11px 16px;
    background: rgba(15, 23, 42, .7);
    color: #dbeafe;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.wlog-actions button:hover,
.wlog-photo-row button:hover,
.wlog-session__actions button:hover,
.wlog-submit:hover { transform: translateY(-1px); border-color: rgba(125, 211, 252, .8); }
.wlog-actions .is-primary,
.wlog-submit {
    border-color: transparent;
    background: linear-gradient(135deg, #86efac, #67e8f9);
    color: #04111f;
}
.wlog-animation {
    display: grid;
    grid-template-columns: 1fr 42px 1fr 42px 1fr 42px 1fr;
    gap: 10px;
    align-items: center;
}
.wlog-animation article {
    min-height: 88px;
    padding: 16px;
    border: 1px solid var(--wlog-line);
    border-radius: 22px;
    background: rgba(15, 23, 42, .68);
    color: #dbeafe;
}
.wlog-animation article span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 50%;
    background: rgba(125, 211, 252, .14);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 900;
}
.wlog-animation article strong { display: block; color: #fff; }
.wlog-animation article em { display: block; margin-top: 4px; color: #93c5fd; font-style: normal; font-size: 13px; }
.wlog-animation__line { height: 2px; border-radius: 99px; background: linear-gradient(90deg, rgba(125, 211, 252, .1), rgba(125, 211, 252, .8)); }
.wlog-animation article.is-active {
    border-color: rgba(134, 239, 172, .9);
    box-shadow: 0 0 0 4px rgba(134, 239, 172, .12), 0 18px 60px rgba(34, 211, 238, .14);
    animation: wlogPulse .9s ease infinite alternate;
}
.wlog-layout {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.wlog-phone { display: flex; justify-content: center; }
.wlog-device {
    width: min(390px, 100%);
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(2, 6, 23, .96), rgba(15, 23, 42, .9));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}
.wlog-device__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.wlog-device__top span {
    width: 92px;
    height: 5px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 99px;
    background: rgba(148, 163, 184, .45);
}
.wlog-device__top b.is-online { color: var(--wlog-green); }
.wlog-form,
.wlog-session {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 26px;
    background: rgba(2, 6, 23, .58);
}
.wlog-session { margin-top: 14px; }
.wlog-form h2,
.wlog-session h2 { margin: 4px 0 18px; color: #fff; font-size: 28px; }
.wlog-form label { display: block; margin-bottom: 14px; color: #dbeafe; }
.wlog-form label span { display: block; margin-bottom: 7px; }
.wlog-form select,
.wlog-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 14px;
    background: rgba(2, 6, 23, .72);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
}
.wlog-form textarea { min-height: 92px; resize: vertical; }
.wlog-photo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 16px; color: #bfdbfe; }
.wlog-submit { display: block; width: 100%; border-radius: 16px; }
.wlog-form small { display: block; margin-top: 12px; color: #93c5fd; text-align: center; }
.wlog-session__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.wlog-session__head strong { color: var(--wlog-green); font-size: 22px; font-variant-numeric: tabular-nums; }
.wlog-session p { margin: 0 0 14px; color: #bfdbfe; line-height: 1.5; }
.wlog-session__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wlog-session__actions button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.wlog-dashboard { min-width: 0; }
.wlog-control-panel,
.wlog-card,
.wlog-metrics article {
    border: 1px solid var(--wlog-line);
    border-radius: 24px;
    background: var(--wlog-card);
}
.wlog-control-panel {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 20px;
}
.wlog-control-panel h2,
.wlog-card h2 { margin: 4px 0 8px; color: #fff; }
.wlog-control-panel p { margin: 0; color: #bfdbfe; line-height: 1.55; }
.wlog-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.wlog-metrics article { padding: 16px; }
.wlog-metrics span { display: block; color: #93c5fd; font-size: 13px; }
.wlog-metrics strong { display: block; margin-top: 6px; color: #fff; font-size: 22px; }
.wlog-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wlog-card { padding: 18px; }
.wlog-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.wlog-card__head span { border: 1px solid rgba(125, 211, 252, .25); border-radius: 999px; padding: 7px 11px; color: #7dd3fc; font-size: 12px; font-weight: 900; }
.wlog-list,
.wlog-eventlog { display: grid; gap: 10px; max-height: 430px; overflow: auto; }
.wlog-item,
.wlog-event,
.wlog-empty {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 16px;
    padding: 13px;
    background: rgba(2, 6, 23, .42);
    color: #dbeafe;
}
.wlog-item.is-sending { border-color: rgba(253, 230, 138, .7); }
.wlog-item.is-sent { opacity: .74; }
.wlog-item strong,
.wlog-item span,
.wlog-item em { display: block; }
.wlog-item strong { color: #fff; }
.wlog-item span { margin: 6px 0; color: #67e8f9; }
.wlog-item em { color: #93c5fd; font-style: normal; font-size: 13px; line-height: 1.45; }
.wlog-event b { color: #7dd3fc; }
.wlog-empty { margin: 0; color: #93c5fd; }
.wlog-flow__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wlog-flow__grid article { border: 1px solid var(--wlog-line); border-radius: 18px; padding: 16px; background: rgba(15, 23, 42, .55); }
.wlog-flow__grid span { color: #7dd3fc; font-weight: 900; }
.wlog-flow__grid p { margin: 8px 0 0; color: #dbeafe; line-height: 1.6; }
.wlog-demo.is-feedback .wlog-device { animation: wlogNudge .45s ease; }
@keyframes wlogPulse { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes wlogNudge { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-6px); } }
@media (max-width: 1120px) {
    .wlog-animation { grid-template-columns: 1fr; }
    .wlog-animation__line { width: 2px; height: 20px; justify-self: center; }
}
@media (max-width: 980px) {
    .wlog-layout,
    .wlog-columns { grid-template-columns: 1fr; }
    .wlog-topline,
    .wlog-control-panel { flex-direction: column; align-items: stretch; }
    .wlog-actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
    .wlog-metrics,
    .wlog-flow__grid { grid-template-columns: 1fr; }
    .wlog-device { border-radius: 28px; padding: 12px; }
    .wlog-form,
    .wlog-session { padding: 16px; }
    .wlog-session__actions { grid-template-columns: 1fr; }
}
