/* FILE: /liveapps/overlay.css */

.dmf-fib-root {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 8900;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

.dmf-corner-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    position: relative;
    z-index: 6;
}

.dmf-jump-trigger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(6, 8, 14, 0.92);
    border: 1px solid rgba(186, 224, 255, 0.55);
    color: #bae0ff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9);
    transition: 0.18s ease;
    padding: 0;
}
.dmf-jump-trigger:hover,
.dmf-jump-trigger.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.dmf-fib-trigger {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #06070b;
    border: 1px solid rgba(57, 255, 136, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 0 12px rgba(57, 255, 136, 0.22);
    transition: transform 0.25s ease, border-color 0.2s ease;
    position: relative;
    padding: 0;
}
.dmf-fib-trigger:hover,
.dmf-fib-root.open .dmf-fib-trigger {
    transform: rotate(25deg) scale(1.06);
    border-color: #fff;
}
.dmf-fib-trigger.has-flash {
    border-color: #39ff88;
    animation: dmfPulseGlow 1.1s infinite alternate;
}
.dmf-fib-png { width: 40px; height: 40px; object-fit: contain; }
.dmf-fib-svg { width: 34px; height: 34px; color: #d6eeff; }
.dmf-fib-alert {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #39ff88;
    box-shadow: 0 0 10px #39ff88;
    animation: dmfBlink 0.9s infinite alternate;
}

@keyframes dmfPulseGlow {
    0% { box-shadow: 0 0 8px rgba(57, 255, 136, 0.3); }
    100% { box-shadow: 0 0 24px rgba(57, 255, 136, 0.95); }
}
@keyframes dmfBlink {
    0% { opacity: 0.35; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.15); }
}

/* Single Contained, Dismissible Notification Bar (Never Stacks Infinitely!) */
.dmf-attn-bar {
    position: absolute;
    bottom: 64px;
    right: 0;
    pointer-events: auto;
    z-index: 9;
    background: rgba(8, 22, 15, 0.96);
    border: 1px solid #39ff88;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: stretch;
    white-space: nowrap;
}
.dmf-attn-text {
    color: #39ff88;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 10px;
    cursor: pointer;
}
.dmf-attn-text:hover {
    background: #39ff88;
    color: #000;
}
.dmf-attn-close {
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-left: 1px solid rgba(57, 255, 136, 0.4);
    color: #fff;
    font-size: 11px;
    padding: 0 9px;
    cursor: pointer;
}
.dmf-attn-close:hover {
    background: #ff5c5c;
    color: #000;
}

/* 3-Second Weight Flash Pill */
.dmf-fib-weight {
    position: absolute;
    right: 108px;
    bottom: 12px;
    background: #06070b;
    border: 1px solid rgba(57, 255, 136, 0.6);
    padding: 5px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    color: #e4f2ff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9);
}
.dmf-fib-weight.visible {
    opacity: 1;
    transform: translateX(0);
}
.dmf-fib-weight strong { color: #39ff88; }
.dmf-fib-weight span { margin: 0 5px; color: rgba(255, 255, 255, 0.35); }

/* Wider, Non-Crowded Fibonacci Spiral Nodes */
.dmf-fib-spiral {
    position: absolute;
    bottom: 27px;
    right: 27px;
    width: 0;
    height: 0;
}
.dmf-fib-node {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    margin-left: -28px;
    margin-top: -28px;
    border-radius: 50%;
    background: #06070b;
    border: 1px solid rgba(186, 224, 255, 0.68);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.2s ease, border-color 0.15s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.95);
    padding: 2px;
}
.dmf-fib-node.is-room-node,
.dmf-fib-node.node-flash { border-color: #39ff88; }
.dmf-fib-node.is-cycle-node { border-color: #ffd479; color: #ffd479; }
.dmf-fib-node.node-flash { animation: dmfPulseGlow 1s infinite alternate; }
.dmf-fib-root.open .dmf-fib-node.on-page {
    pointer-events: auto;
    opacity: 1;
}
.dmf-fib-node:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
    z-index: 12;
}
.dmf-fib-node:hover .dmf-fib-num { color: #000; }
.dmf-fib-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    color: #39ff88;
    line-height: 1;
}
.dmf-fib-lbl {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1;
    text-align: center;
}

/* Floating Quick-Jump & Instant Search Pocket */
.dmf-jump-pocket {
    pointer-events: auto;
    display: none;
    flex-direction: column;
    position: fixed;
    right: 20px;
    bottom: 84px;
    width: 280px;
    background: #06070c;
    border: 1px solid rgba(186, 224, 255, 0.5);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95);
    padding: 10px;
    z-index: 8940;
}
.dmf-jump-pocket.active { display: flex; }
.dmf-jp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    color: #39ff88;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.dmf-jp-search input {
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    font-size: 11.5px;
    padding: 6px 8px;
    margin-bottom: 8px;
    outline: none;
}
.dmf-jp-search input:focus { border-color: #39ff88; }
.dmf-jp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.dmf-jp-grid button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f2f2f5;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    text-transform: uppercase;
    padding: 6px 7px;
    text-align: left;
    cursor: pointer;
}
.dmf-jp-grid button:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* DIV-Based Dirigent Roster Pocket (Never triggers engine.php's details[open] sync blocker!) */
.dmf-roster-pocket {
    border: 1px solid rgba(57, 255, 136, 0.35);
    background: rgba(0, 0, 0, 0.55);
    margin-top: 6px;
}
.dmf-roster-bar {
    cursor: pointer;
    padding: 8px 12px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #39ff88;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.dmf-roster-bar:hover {
    background: rgba(57, 255, 136, 0.08);
}
.dmf-roster-pocket-body {
    display: none;
    padding: 8px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.dmf-roster-pocket.open .dmf-roster-pocket-body {
    display: block;
}
.dmf-roster-scroll {
    max-height: 220px;
    overflow-y: auto;
}
.dmf-pres-tag {
    font-family: ui-monospace, monospace;
    font-size: 9.5px;
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-left: 6px;
}
.dmf-pres-tag.live {
    border-color: #39ff88;
    color: #39ff88;
    background: rgba(57, 255, 136, 0.1);
}
.dmf-pres-tag.gone {
    border-color: rgba(255, 160, 120, 0.45);
    color: #ffb899;
}

/* Independent App Window */
.dmf-app-window {
    pointer-events: auto;
    display: none;
    flex-direction: column;
    position: fixed;
    right: 20px;
    bottom: 84px;
    width: 425px;
    height: 540px;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 104px);
    background: #050507;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.96);
    z-index: 8950;
}
.dmf-app-window.active { display: flex; }
.dmf-app-window.is-fullscreen {
    inset: 10px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}
.dmf-app-bar,
.dmf-app-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: #090b10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}
.dmf-app-foot {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.dmf-foot-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.dmf-app-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    max-width: 270px;
}
.dmf-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.78);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 7px;
    cursor: pointer;
    white-space: nowrap;
}
.dmf-tab-btn:hover,
.dmf-tab-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 700;
}
.dmf-app-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.dmf-app-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    text-transform: uppercase;
    padding: 3px 8px;
    cursor: pointer;
    text-decoration: none;
}
.dmf-app-btn:hover { background: #fff; color: #000; border-color: #fff; }
.dmf-app-btn.close { border-color: rgba(255, 120, 120, 0.6); color: #ffb8b8; }
.dmf-app-btn.close:hover { background: #ff5c5c; color: #000; border-color: #ff5c5c; }
.dmf-app-frame { flex: 1; width: 100%; border: none; background: #050507; }

@media (max-width: 768px) {
    .dmf-fib-root { bottom: 14px; right: 14px; }
    .dmf-app-window {
        inset: 6px !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
    }
    .dmf-app-tabs { max-width: 58vw; }
}