#poc-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #44465E;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
    cursor: url('sprites/cursor_default.ico'), default;
}

#poc-auth-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-portrait-card {
    background-color: #EEEEEE;
    width: 90%;
    max-width: 400px;
    padding: 50px 40px;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    text-align: center;
    transform: translateY(0);
    border-top: 4px solid #AAA348;
    cursor: url('sprites/cursor_default.ico'), default;
}

.auth-form-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.auth-form-container.auth-hidden {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.modal-portrait-card h3 {
    color: #44465E;
    font-size: 22pt;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-subtitle {
    color: #44465E;
    font-size: 13pt;
    margin-bottom: 30px;
    opacity: 0.8;
}

.minimal-input {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Afacad', sans-serif;
    font-size: 14pt;
    color: #44465E;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgba(68, 70, 94, 0.3);
    margin-bottom: 25px;
    transition: border-color 0.3s ease;
    outline: none;
    cursor: url('sprites/cursor_input.ico') 12 12, text;
    box-sizing: border-box;
}

.minimal-input:focus {
    border-bottom-color: #AAA348;
}

.minimal-input::placeholder {
    color: rgba(68, 70, 94, 0.4);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11pt;
    margin-bottom: 25px;
    color: #44465E;
}

.auth-options a {
    color: #44465E;
    text-decoration: none;
    cursor: url('sprites/cursor_point.ico'), pointer;
    transition: color 0.2s ease;
}

.auth-options a:hover {
    color: #AAA348;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: url('sprites/cursor_point.ico'), pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    display: none;
}

.auth-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #44465E;
    border-radius: 2px;
    position: relative;
    transition: all 0.2s ease;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
    background-color: #AAA348;
    border-color: #AAA348;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #2b2c3b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.poc-auth-submit {
    width: 100%;
    padding: 12px;
    font-family: 'Afacad', sans-serif;
    font-size: 14pt;
    color: #EEEEEE;
    background-color: #44465E;
    border: none;
    border-radius: 3px;
    cursor: url('sprites/cursor_point.ico'), pointer;
    transition: background-color 0.2s ease;
}

.poc-auth-submit:hover {
    background-color: #AAA348;
    color: #2b2c3b;
}

.modal-fine-print {
    display: block;
    margin-top: 20px;
    font-size: 10pt;
    color: #44465E;
    opacity: 0.8;
}

.modal-fine-print a {
    color: #AAA348;
    text-decoration: none;
    cursor: url('sprites/cursor_point.ico'), pointer;
}

.auth-msg {
    font-size: 11pt;
    min-height: 16px;
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.3;
    color: #44465E;
}
.auth-msg.error { color: #b23b3b; }
.auth-msg.success { color: #6a7d2e; }

.back-to-login {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: none;
    font-size: 18pt;
    color: #44465E;
    cursor: url('sprites/cursor_point.ico'), pointer;
    transition: color 0.2s ease;
    padding: 5px;
}

.back-to-login:hover {
    color: #AAA348;
}


#auth-loader-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 60%;
    max-width: 600px;
    align-items: center;
}

.auth-loader-bar {
    width: 100%;
    height: 8px;
    background-color: #2b2c3b;
    position: relative;
    border-radius: 2px;
}

.auth-loader-fill {
    height: 100%;
    width: 0%;
    background-color: #AAA348;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.auth-loader-text {
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #FFEC64;
    letter-spacing: 1px;
}

.desktop-poc-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    padding-top: 5px;
    width: 100%;
    height: calc(100vh - 65px);
    background-color: #2b2c3b;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
	overflow-anchor: none;
} 

#poc-desktop-environment {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 900px;
    font-family: 'Afacad', sans-serif;
    color: #44465E;
    user-select: none;
    -webkit-user-select: none;
    margin: 0;
}

#poc-desktop-grid {
    height: 100%; 
    aspect-ratio: 12 / 8; 
    flex-shrink: 0; 
    display: grid;
    grid-template-columns: repeat(12, 1fr); 
    grid-template-rows: repeat(8, 1fr);     
    gap: 1px;
    z-index: auto;
    border-left: 2px solid #44465E;
    border-right: 2px solid #44465E;
    background: radial-gradient(
			222px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
			rgba(238, 238, 238, 0.33),
			transparent 100%
		), var(--gridtop-line, #44465E);
}

#poc-desktop-grid.in-workflow {
    --gridtop-line: #A99FFC;
}

#poc-desktop-grid {
    overflow-y: auto; 
    overflow-x: hidden;
}

#poc-desktop-grid::-webkit-scrollbar { width: 5px; }
#poc-desktop-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
#poc-desktop-grid::-webkit-scrollbar-thumb { background: #AAA348; border-radius: 0px; }

@media (display-mode: fullscreen) {
    #poc-desktop-grid {
        grid-template-columns: repeat(10, 1fr);
        aspect-ratio: 10 / 8;
    }
    
    .poc-side-pane {
        min-width: 360px; 
    }
}

.poc-side-pane {
    flex: 1; 
    min-width: 200px;
    max-width: 400px; 
    position: relative;
    overflow-y: auto;
}

#poc-left-pane {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 40%, rgba(0,0,0,0.15) 100%), 
                linear-gradient(to bottom, #808390 0%, #a8abb8 15%, #dbdce6 45%, #c0c3cf 80%, #9598a6 100%);
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.25), inset 1px 0 0 rgba(255,255,255,0.5);
	overflow-anchor: none;
}

#poc-right-pane {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 40%, rgba(0,0,0,0.15) 100%), 
                linear-gradient(to bottom, #808390 0%, #a8abb8 15%, #dbdce6 45%, #c0c3cf 80%, #9598a6 100%);
    box-shadow: inset 5px 0 15px rgba(0,0,0,0.25), inset -1px 0 0 rgba(255,255,255,0.5);
}

.poc-pane-content {
    padding: 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.docked-item-mockup {
    width: 100%;
    height: 120px;
    background-color: #eee; 
    border: 2px solid #44465E;
    margin-bottom: 15px;
    box-shadow: inset 0 0 10px rgba(169, 159, 252, 0.2), 0 4px 6px rgba(0,0,0,0.3);
}

.docked-item-mockup:hover {
    background-color: #eee; 
	border: 2px solid #7D6988;
}

.poc-side-pane::-webkit-scrollbar { width: 5px; }
.poc-side-pane::-webkit-scrollbar-track { background: #C8BFE7; }
.poc-side-pane::-webkit-scrollbar-thumb { background: #44465E; border-radius: 3px; }

.poc-grid-cell {
    background-color: #EEEEEE; 
    transition: background-image 0.15s ease, outline 0.1s ease, filter 0.15s ease;
    cursor: url('sprites/cursor_point.ico'), auto;    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 2px solid transparent;
    outline-offset: -2px;
	cursor: url('sprites/cursor_cross.ico') 12 12, auto;
}

.poc-grid-cell:hover {
    background-image: linear-gradient(rgba(125, 105, 136, 0.25), rgba(125, 105, 136, 0.25));
}

.poc-grid-cell.poc-active-menu {
    background-image: linear-gradient(rgba(68, 70, 94, 0.25), rgba(68, 70, 94, 0.25));
}

.poc-grid-cell.poc-selected {
    background-image: linear-gradient(rgba(170, 163, 72, 0.4), rgba(170, 163, 72, 0.4)) !important; 
    outline: 2px dashed #AAA348;
}

.poc-grid-cell[data-group] {
    background-image: linear-gradient(var(--group-color), var(--group-color)) !important;
}

.poc-group-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 11px;
    color: #44465E;
    opacity: 0.8;
    pointer-events: none;
	z-index: 10;
}

.poc-desktop-icon {
    width: 45%; 
    height: 45%;
    transform: scale(1);
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.15)); 
    transition: filter 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: url('sprites/cursor_move.ico') 12 12, move;
	position: relative;
    z-index: 10;
}

.poc-desktop-icon:active {
    cursor: moving;
}

.poc-desktop-icon * {
    pointer-events: none !important;
}

.poc-grid-cell:hover .poc-desktop-icon,
.poc-grid-cell.poc-active-menu .poc-desktop-icon,
.poc-grid-cell.poc-selected .poc-desktop-icon {
    transform: scale(1.15);
    filter: saturate(0) brightness(1.5) drop-shadow(0px 8px 12px rgba(0,0,0,0.25));
}

.poc-grid-cell.poc-selected-connect {
    background-image: linear-gradient(rgba(68, 70, 94, 0.4), rgba(68, 70, 94, 0.4)) !important; 
    outline: 2px solid #44465E;
}

.poc-desktop-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.poc-ctx-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background-color: #FAFAFA; 
    border: 1px solid rgba(68, 70, 94, 0.2);
    box-shadow: 4px 4px 15px rgba(30, 32, 44, 0.15);
    z-index: 10000;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 170px; 
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Afacad', sans-serif;
	cursor: url('sprites/cursor_point.ico'), auto;

}

.poc-ctx-menu::-webkit-scrollbar { width: 4px; }
.poc-ctx-menu::-webkit-scrollbar-thumb {
    background: rgba(68, 70, 94, 0.3);
}

.poc-ctx-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.poc-ctx-item { 
    position: relative; 
    list-style: none; 
}

.poc-ctx-item > a {
    font-size: 11pt; 
    color: #44465E;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    border-left: 3px solid transparent;
    cursor: url('sprites/cursor_point.ico'), auto;    position: relative;
    overflow: hidden; 
    transition: background-color 0.1s, border-left-color 0.1s;
}

.poc-ctx-item > a:hover {
    background-color: rgba(68, 70, 94, 0.1); 
    border-left-color: #44465E;
    color: #44465E;
}

.poc-ctx-item > a::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        400px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), 
        rgba(68, 70, 94, 0.08), 
        transparent 95%
    );
    opacity: 0;
    transition: opacity 0.2s;
}

.poc-ctx-item > a:hover::before { opacity: 1; }

.poc-ctx-submenu {
    visibility: hidden;
    opacity: 0;
    position: fixed; 
    width: 170px;
    background-color: #FAFAFA;
    border: 1px solid rgba(68, 70, 94, 0.2);
    box-shadow: 4px 4px 15px rgba(30, 32, 44, 0.15);
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 10005; 
}

.poc-ctx-submenu::-webkit-scrollbar { width: 4px; }
.poc-ctx-submenu::-webkit-scrollbar-thumb {
    background: rgba(68, 70, 94, 0.3);
}

.poc-ctx-submenu.is-open {
    visibility: visible;
    opacity: 1;
}

#poc-dev-overlay {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #44465E;
    color: #A99FFC;
    padding: 12px 24px;
    border-radius: 0px;
    font-size: 14pt;
    
    z-index: 10100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Afacad', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#poc-dev-overlay.show {
    opacity: 1;
    visibility: visible;
}

.poc-eq-submenu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background-color: #FAFAFA;
    border: 1px solid rgba(68, 70, 94, 0.2);
    box-shadow: 4px 4px 15px rgba(30, 32, 44, 0.15);
    padding: 15px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 10005;
    width: auto;
    max-height: none;
    overflow-y: visible;
    cursor: url('sprites/cursor_default.ico'), auto;
}

.poc-eq-submenu.is-open {
    visibility: visible;
    opacity: 1;
}

.poc-eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45px;
    gap: 10px;
}

.poc-eq-btncol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.poc-eq-label {
    font-size: 10pt;
    
    text-align: center;
    line-height: 1.1;
    height: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.poc-eq-track {
    position: relative;
    height: 130px;
    width: 100%;
    cursor: url('sprites/cursor_default.ico'), auto;
}

.poc-eq-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 130px;
    height: 4px;
    background: #A99FFC;
    outline: none;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    margin: 0;
    cursor: url('sprites/cursor_default.ico'), auto;
}

.poc-eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 18px;
    background: #44465E;
	cursor: url('sprites/cursor_ns.ico') 12 12, auto;
    border-radius: 0px;
}

.poc-eq-slider::-moz-range-thumb {
    width: 6px;
    height: 18px;
    background: #44465E;
	cursor: url('sprites/cursor_ns.ico') 12 12, auto;
    border-radius: 0px;
    border: none;
}

.poc-param-submenu {
    width: 220px;
}

.poc-param-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #FAFAFA;
    cursor: url('sprites/cursor_default.ico'), auto;}

.poc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 4px;
    background: #AAA348;
    outline: none;
    border-radius: 2px;
}

.poc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 18px;
    background: #44465E;
	cursor: url('sprites/cursor_ew.ico') 12 12, auto;
    border-radius: 0px; 
}

.poc-slider::-moz-range-thumb {
    width: 6px;
    height: 18px;
    background: #44465E;
	cursor: url('sprites/cursor_ew.ico') 12 12, auto;
    border-radius: 0px;
    border: none;
}

.poc-number {
    width: 45px;
    padding: 4px;
    border: 1px solid rgba(68, 70, 94, 0.2);
    background: #EEEEEE;
    color: #44465E;
    font-family: 'Afacad', sans-serif;
    font-size: 11pt;
    
    text-align: center;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.15s;
    cursor: url('sprites/cursor_input.ico') 12 12, text;
}

.poc-number:focus {
    border-color: #AAA348;
    background: #FAFAFA;
}

.poc-number::-webkit-outer-spin-button,
.poc-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.poc-number[type=number] {
    -moz-appearance: textfield;
}

.poc-ctx-check > a {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.poc-ctx-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid rgba(68, 70, 94, 0.5);
    background: #EEEEEE;
    border-radius: 2px;
    cursor: url('sprites/cursor_point.ico'), auto;    position: relative;
    transition: background 0.1s, border-color 0.1s;
}

.poc-ctx-checkbox:checked {
    background: #AAA348;
    border-color: #44465E;
}

.poc-ctx-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid #44465E;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.poc-eq-band {
    position: relative;
}

.poc-eq-help-overlay {
    position: absolute;
    inset: -4px;
    z-index: 10;
    display: none;
}

.poc-eq-submenu.eq-help-active .poc-eq-help-overlay {
    display: block;
    cursor: url('sprites/cursor_help.ico'), help;
}

.poc-eq-submenu.eq-help-active .poc-eq-band {
    cursor: url('sprites/cursor_help.ico'), help;
}

.poc-eq-help-btn {
    align-self: flex-start;
    background: #EEEEEE;
    border: 1px solid rgba(68, 70, 94, 0.3);
    color: #44465E;
    font-family: 'Afacad', sans-serif;
    
    font-size: 10pt;
    line-height: 1;
    padding: 3px 7px;
    cursor: url('sprites/cursor_point.ico'), auto;    border-radius: 2px;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.poc-eq-help-btn:hover {
    border-color: #AAA348;
    color: #AAA348;
}

.poc-eq-submenu.eq-help-active .poc-eq-help-btn {
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.2);
    background: #E0E0E0;
    border-color: #AAA348;
    color: #AAA348;
}

.poc-eq-help-tip {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #FAFAFA;
    border: 2px solid #AAA348;
    color: #44465E;
    padding: 10px 14px;
    font-family: 'Afacad', sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    max-width: 220px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 10030;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    border-radius: 2px;
}

.poc-eq-help-tip.is-visible {
    opacity: 1;
    visibility: visible;
}

.poc-eq-help-tip strong {
    display: block;
    margin-bottom: 4px;
    
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px dashed rgba(68, 70, 94, 0.3);
    padding-bottom: 4px;
}

@media (max-width: 768px) {
    #poc-desktop-environment {
        height: 60vh;
        min-height: 400px;
    }
    .poc-group-badge {
        font-size: 9px;
        top: 2px;
        right: 4px;
    }
}

#poc-selection-box {
    position: fixed;
    pointer-events: none;
    z-index: 10500;
    display: none;
}

#poc-selection-box.gold-select {
    background-color: #AAA34833;
    border: 2px dashed #AAA348;
}

#poc-selection-box.magenta-select {
    background-color: #44465E33;
    border: 2px solid #44465E;
}

#poc-selection-box.blue-select {
    background-color: #7F78C526;
    border: 2px solid #7F78C5;
}

#poc-connection-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.poc-flow-line {
    stroke: #A99FFC;
    stroke-width: 3;
    stroke-dasharray: 10 6;
    animation: flowDash 1s linear infinite;
    stroke-linecap: round;
}

/* A connection line that is tracking a dragged icon: ghosted like the drag image. */
.poc-flow-line.poc-flow-ghost {
    opacity: 0.4;
}

@keyframes flowDash {
    to { stroke-dashoffset: -16; }
}

#poc-right-pane .poc-pane-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

.descriptor-dots-group {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-right: 6px;
}

.desc-dot-btn {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(68, 70, 94, 0.3);
    cursor: url('sprites/cursor_point.ico'), auto;    transition: background 0.15s ease, transform 0.15s ease;
}

.desc-dot-btn:hover {
    background: #44465E;
    transform: scale(1.2);
}

.desc-dot-btn.active {
    background: #AAA348;
    box-shadow: 0 0 3px rgba(170, 163, 72, 0.5);
}

.descriptor-panel {
    flex: 0 0 12.5%;
    width: 100%;
    background-color: #b9bac4; 
    box-shadow: inset 3px 3px 6px rgba(255, 255, 255, 0.8), 
                inset -3px -3px 6px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 0px 15px 0 12px; 
    border-bottom: 1px solid rgba(68, 70, 94, 0.3);
    overflow: hidden;
    position: relative;
    transition: flex-basis 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), padding-top 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.descriptor-panel.expanded-height {
    flex: 0 0 25% !important;
}

.descriptor-panel a {
	cursor: url('sprites/cursor_default.ico'), auto;
}


.descriptor-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        350px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), 
        rgba(255, 255, 255, 0.45), 
        transparent 80%
    );
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.descriptor-panel:hover::before {
    opacity: 1;
}

.descriptor-drag-grip {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    cursor: url('sprites/cursor_move.ico') 12 12, move;
    background-image: radial-gradient(rgba(68, 70, 94, 0.4) 35%, transparent 35%);
    background-size: 4px 4px;
    background-position: 0 0;
    flex-shrink: 0;
    transition: background-image 0.2s ease;
}

.descriptor-drag-grip:hover {
    background-image: radial-gradient(rgba(68, 70, 94, 0.8) 35%, transparent 35%);
}

.descriptor-drag-grip:active {
    cursor: url('sprites/cursor_move.ico') 12 12, move;
}

.descriptor-panel.dragging {
    opacity: 0.6;
}

.descriptor-panel.collapsed {
    flex: 0 0 3.125% !important; 
    padding-top: 0px; 
    box-shadow: inset 4px 9px 6px rgba(255, 255, 255, 0.8), 
                inset -3px -1px 6px rgba(0, 0, 0, 0.25);
}

.descriptor-panel.is-contained .descriptor-drag-grip,
.descriptor-panel.is-contained .descriptor-drag-grip:hover {
    background-image: none;
}

#file-explorer-main.collapsed {
    flex: 0 0 25px !important;
}

.descriptor-header-stripe {
    width: 100%;
    height: 24px;
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
	cursor: url('sprites/cursor_default.ico'), auto;

}

.descriptor-mini-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.descriptor-mini-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.2));
}

.descriptor-input {
    flex: 0 1 85px;
    width: 85px;
    min-width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Afacad', sans-serif;
    font-size: 12pt;
    color: #44465E;
    padding: 0 4px;
    margin: 0;
    line-height: 24px;
    border-radius: 2px;
    cursor: url('sprites/cursor_input.ico') 12 12, text;

    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    transition: background-color 0.1s ease, flex 0.25s ease, width 0.25s ease;
}

.descriptor-input:focus {
    background-color: #EEEEEE;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
    flex: 1 0 auto;
    width: 140px;
}

.descriptor-utility-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    flex-shrink: 0;
    color: #44465E;
	margin-left: auto;
}

.descriptor-page-btn,
.descriptor-chevron-btn {
    cursor: url('sprites/cursor_point.ico'), auto;    font-size: 6pt;
    user-select: none;
    color: #44465E;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
	transform: none;
}

.tab-page-left {
    transform: rotate(0deg);
}

.tab-page-right {
    transform: rotate(180deg);
}

.descriptor-page-btn:hover,
.descriptor-chevron-btn:hover {
    color: #AAA348;
}

.descriptor-panel.collapsed .descriptor-page-btn {
    display: none !important;
}


.descriptor-input::placeholder {
    color: rgba(68, 70, 94, 0.5);
}

.descriptor-input:focus {
    background-color: #EEEEEE;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
}

:root {
    --panel-bg: #44465E;
    --panel-highlight: #7F78C5;
    --glow-color: #7F78C5;
    --glow-intense: #A99FFC;
    --glass-bg: #000000B4;
}

#poc-left-pane .poc-pane-content {
    padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.fisher-panel {
    background: linear-gradient(180deg, var(--panel-highlight) 0%, var(--panel-bg) 5%, var(--panel-bg) 95%, #44465E 100%);
    width: 100%; 
    padding: 0px; 
    border-radius: 0px;
	border-bottom: 2px solid #22222c;
    position: relative;
    box-sizing: border-box;
    margin-bottom: 0;
	flex: 0 0 25%;
	transition: flex-basis 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-width 0.4s ease;
    transform-origin: top;
    max-height: 500px;
    overflow: hidden;
}

.fisher-panel.meters-hidden {
    flex-basis: 0% !important;
    max-height: 0px !important;
    opacity: 0 !important;
    transform: translateY(-50px);
    border-bottom-width: 0px !important;
    margin-bottom: 0px !important;
}

.display-window {
    background: var(--glass-bg);
    border: 2px, 0px, 2px, 0px solid #857EB6;
    border-bottom-color: #22222c;
    border-right-color: #22222c;
    padding: 10px 10px 0px 10px; 
    border-radius: 0px;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.9);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
	height: 100%;
	box-sizing: border-box;
	align-items: center; 
}

.display-window::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none; z-index: 10;
}

.meter-container { width: 100%; position: relative; text-align: center; }
.meter-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 3px var(--glow-color)); margin-bottom: -6px; overflow: visible;}
.tick { stroke: var(--glow-color); stroke-width: 1.5; stroke-linecap: round; }
.tick-thick { stroke: var(--glow-color); stroke-width: 2; stroke-linecap: round; }
.scale-line { stroke: var(--glow-color); stroke-width: 2; fill: none; }
.meter-text { fill: var(--glow-color); font-family: 'Montserrat', 'Afacad', sans-serif; letter-spacing: 1px;  }
.meter-text-title { fill: var(--glow-color); font-size: 12px; letter-spacing: 4px; opacity: 0.8;  }
.needle-pivot { transform-origin: 150px 180px; transform: rotate(-49deg); }
.needle-line { stroke: var(--glow-intense); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px #fff); }
.meter-label { color: var(--glow-color); font-size: 11px; letter-spacing: 4px; margin-top: 5px; opacity: 0.9; filter: drop-shadow(0 0 4px var(--glow-color));  }

.fisher-panel.can-flip {
    perspective: 1000px;
    position: relative;
    cursor: url('sprites/cursor_point.ico'), auto;}

.fisher-panel.can-flip .panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.panel-front, .panel-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-front {
    position: relative;
    z-index: 2;
    transform: rotateY(0deg);
	height: 100%;
}

.panel-back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
    transform: rotateY(-180deg);
}

.fisher-panel.can-flip.flipped .panel-front {
    transform: rotateY(180deg);
}

.fisher-panel.can-flip.flipped .panel-back {
    transform: rotateY(0deg);
}

.display-window-back {
    background: var(--glass-bg);
    border: 2px solid #857EB6;
    border-bottom-color: #22222c;
    border-right-color: #22222c;
    padding: 12px 14px 10px 14px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.perfmon-container {
    font-family: 'JetBrains Mono', monospace, Courier, monospace;
    color: var(--glow-color);
    font-size: 11px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    filter: drop-shadow(0 0 2px var(--glow-color));
}

.perfmon-header {
    border-bottom: 1px dashed rgba(127, 120, 197, 0.4);
    padding-bottom: 5px;
    margin-bottom: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

.perfmon-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.perfmon-table th {
    border-bottom: 1px solid rgba(127, 120, 197, 0.2);
    padding-bottom: 3px;
    font-weight: bold;
    font-size: 10px;
    opacity: 0.7;
}

.perfmon-table td {
    padding: 4px 0;
}

.proc-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
}

.perfmon-footer {
    border-top: 1px dashed rgba(127, 120, 197, 0.4);
    padding-top: 5px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: bold;
}

.blink-dot {
    width: 6px;
    height: 6px;
    background-color: var(--glow-color);
    border-radius: 50%;
    animation: diagnosticBlink 1s infinite steps(2);
}

@keyframes diagnosticBlink {
    to { opacity: 0; }
}

.perfmon-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-bottom: 6px;
    padding-right: 4px;
}

.perfmon-scroll-wrapper::-webkit-scrollbar { width: 4px; }
.perfmon-scroll-wrapper::-webkit-scrollbar-thumb { background: rgba(127, 120, 197, 0.4); border-radius: 2px; }

.net-mini-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.net-mini-icon svg { width: 100%; height: 100%; }

.net-mini-icon svg * {
    fill: var(--glow-color) !important;
    stroke: var(--glow-color) !important;
}

.net-mini-icon svg [fill="none"] { fill: none !important; }

.net-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

.net-status-dot.green { background-color: #00E200; box-shadow: 0 0 4px #00E200; }
.net-status-dot.red { background-color: #FF3333; box-shadow: 0 0 4px #FF3333; }

.proc-id-col {
    display: flex;
    align-items: center;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proc-id-col {
    display: flex;
    align-items: center;
    max-width: 125px;
    overflow: hidden;
    white-space: nowrap;
}

.net-marquee-box {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: block;
}

.net-node-name {
    display: inline-block;
    white-space: nowrap;
}

.net-node-name.winamp-scroll {
    animation: winampMarquee 20s linear infinite;
}

@keyframes winampMarquee {
    0%, 50% { transform: translateX(0); }
    65% { transform: translateX(var(--scroll-dist, 0)); }
    90% { transform: translateX(var(--scroll-dist, 0)); }
    100% { transform: translateX(0); }
}

.proc-id-col {
    display: flex;
    align-items: center;
    width: 125px;
    max-width: 125px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.net-marquee-box {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: block;
}

.net-node-name {
    display: inline-block;
    white-space: nowrap;
    padding-right: 14px;
}

.net-node-name.winamp-scroll {
    animation: winampMarquee 20s linear infinite;
}

@keyframes winampMarquee {
    0%, 50% { transform: translateX(0); }
    65%, 90% { transform: translateX(var(--scroll-dist, 0)); }
    100% { transform: translateX(0); }
}

.file-explorer-panel {
    margin-top: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(68, 70, 94, 0.3);
	padding-right: 0;
}

.file-explorer-panel .descriptor-input:focus {
    background-color: transparent;
    box-shadow: none;
	padding-right: 15px;
}

.file-explorer-panel.collapsed .descriptor-chevron-btn {
    transform: rotate(90deg);
}

.file-explorer-panel:not(.collapsed) .descriptor-chevron-btn {
    transform: rotate(270deg) ;
}

.file-explorer-panel .descriptor-chevron-btn {
    transition: color 0.15s ease, transform 0.25s ease-in-out;
}

.file-tree-wrapper {
    flex: 1;
    overflow-x: hidden;
    padding: 10px 15px;
    font-family: 'Afacad', sans-serif;
    font-size: 11pt;
    
    color: #44465E;
	text-align: left;
	position: relative;
	z-index: 2;
	border-top: 1px solid #44465E;
    border-image: linear-gradient(to right, transparent 0%, transparent 15%, #44465E 90%) 1;
	transition: opacity 0.3s ease-in;
}

.file-explorer-panel.collapsed .file-tree-wrapper {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease-out;
}

.file-tree-wrapper::-webkit-scrollbar { 
    width: 5px; 
    background-color: #C8BFE7; 
}
.file-tree-wrapper::-webkit-scrollbar-thumb { 
    background: #44465E; 
    border-radius: 0px; 
}

ul.file-tree, ul.file-tree ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.file-tree ul {
    padding-left: 10px;
}

ul.file-tree-nested {
    position: relative;
}

ul.file-tree-nested::before {
    content: "";
    position: absolute;
    left: 8px; 
    top: 6px;
    bottom: 8px;
    width: 1px;
    background-image: linear-gradient(to bottom, #44465E 75%, transparent 75%);
	background-size: 1px 2px;
    background-repeat: repeat-y;
    opacity: 0.7;
    pointer-events: none;
	transition: background-image 0.15s ease, opacity 0.15s ease;
}

ul.file-tree-nested:hover::before {
    opacity: 0.9;
    background-image: linear-gradient(to bottom, #7F78C5 66%, transparent 66%);
}

.file-tree li {
    margin: 4px 0;
    white-space: nowrap;
}

.file-tree-caret {
    cursor: url('sprites/cursor_point.ico'), auto;    user-select: none;
    display: inline-flex;
    align-items: center;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background-color 0.1s;
}

.file-tree-caret::before {
    content: "\25B6";
    color: #44465E;
    display: inline-block;
    margin-right: 6px;
    font-size: 8pt;
    transition: transform 0.15s ease;
}

.file-tree-caret.file-tree-caret-down::before {
    transform: rotate(90deg);
}

.file-tree-nested {
    display: none;
}

.file-tree-active {
    display: block;
}

.file-node {
    cursor: url('sprites/cursor_point.ico'), auto;    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
    margin-left: 14px;
    transition: background-color 0.1s;
}
/*
.file-node:hover, .file-tree-caret:hover {
    background-color: rgba(68, 70, 94, 0.1);
}
*/
.file-search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 24px;
    padding-left: 0px;
    padding-right: 15px;
    margin-top: 8px;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease-in;
}

.file-search-container .descriptor-mini-icon {
    margin-right: 0px; 
}

.file-explorer-panel.collapsed .file-search-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease-out;
}

#poc-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poc-custom-modal {
    width: 280px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 40%, rgba(0,0,0,0.15) 100%), 
                linear-gradient(to bottom, #808390 0%, #a8abb8 15%, #dbdce6 45%, #c0c3cf 80%, #9598a6 100%);
    border: 1px solid rgba(68, 70, 94, 0.4);
    box-shadow: 4px 4px 15px rgba(30, 32, 44, 0.3), inset 1px 1px 0 rgba(255,255,255,0.5);
    font-family: 'Afacad', sans-serif;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.poc-custom-modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: radial-gradient(
        350px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), 
        rgba(255, 255, 255, 0.45), 
        transparent 80%
    );
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.poc-custom-modal:hover::before {
    opacity: 1;
}

.poc-modal-header {
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid rgba(68, 70, 94, 0.3);
    font-size: 11pt;
    
    color: #44465E;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    cursor: url('sprites/cursor_default.ico'), auto;}

.poc-modal-body {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.poc-modal-input {
    width: 100%;
    background: #FAFAFA;
    border: 1px solid rgba(68, 70, 94, 0.3);
    font-family: 'Afacad', sans-serif;
    font-size: 12pt;
    color: #44465E;
    padding: 4px 8px;
    outline: none;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
    border-radius: 2px;
    cursor: url('sprites/cursor_input.ico') 12 12, text;
}

.poc-modal-input:focus {
    border-color: #AAA348;
}

.poc-modal-btn {
    background: transparent;
    border: 1px solid rgba(68, 70, 94, 0.5);
    font-family: 'Afacad', sans-serif;
    font-size: 11pt;
    
    color: #44465E;
    padding: 4px 16px;
    cursor: url('sprites/cursor_point.ico'), auto;    border-radius: 2px;
    transition: background 0.1s ease, border-color 0.1s ease;
}

.poc-modal-btn:hover {
    background: rgba(68, 70, 94, 0.1);
    border-color: #44465E;
}

.poc-modal-btn-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 22px;
    margin-top: 4px;
}

.poc-modal-keybtn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    cursor: url('sprites/cursor_point.ico'), auto;
    outline: none;
}

.poc-modal-keybtn svg {
    display: block;
    overflow: visible;
}

.poc-modal-keybtn .key-top {
    transition: transform 0.08s ease;
}

.poc-modal-keybtn .cap-base {
    transition: stroke 0.15s ease;
}

.poc-modal-keybtn .key-top text {
    transition: fill 0.15s ease;
}

.poc-modal-keybtn:hover .key-top {
    transform: translate(1px, 1px);
}

.poc-modal-keybtn:hover .cap-base {
    stroke: #AAA348;
}

.poc-modal-keybtn:hover .key-top text {
    fill: #AAA348;
}

.poc-modal-keybtn:active .key-top {
    transform: translate(3px, 3px);
}

.poc-modal-keybtn:focus-visible .cap-base {
    stroke: #AAA348;
    stroke-width: 2;
}

@media (max-width: 1600px) {
    #poc-desktop-grid {
        aspect-ratio: 1 / 1;
        grid-template-columns: repeat(8, 1fr);
    }
}

.mini-gridtop-wrapper {
    overflow: visible;
}

.mini-gridtop {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1px;
    width: 100%;
    height: 100%;
    background: #22222c; 
    box-sizing: border-box;
    cursor: url('sprites/cursor_cross.ico') 12 12, auto;
    overflow: hidden;
}

.mini-grid-cell {
    background: rgba(127, 120, 197, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
    position: relative;
    width: 100%;
    height: 100%;
}

.mini-grid-cell:hover {
    background: rgba(127, 120, 197, 0.4);
}

.mini-grid-cell svg {
    width: 80%;
    height: 80%;
    display: block;
}

.mini-grid-cell svg * { 
    fill: var(--glow-color) !important; 
    stroke: var(--glow-color) !important; 
}
.mini-grid-cell svg [fill="none"] { fill: none !important; }

.grid-tooltip {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glow-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    padding: 6px 8px;
    font-size: 10px;
    color: var(--glow-color);
    z-index: 100;
    pointer-events: none;
    min-width: 100px;
    backdrop-filter: blur(2px);
}

.grid-tooltip .tooltip-header {
    border-bottom: 1px dashed rgba(127, 120, 197, 0.5);
    margin-bottom: 4px;
    padding-bottom: 3px;
    font-weight: bold;
    letter-spacing: 1px;
}

.grid-tooltip .lbl { 
    opacity: 0.6; 
}

.poc-silver-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(240,240,240,0.95) 40%, rgba(220,220,220,0.95) 100%);
    border: 1px solid rgba(68, 70, 94, 0.4);
    box-shadow: 2px 2px 10px rgba(30, 32, 44, 0.2), inset 1px 1px 0 rgba(255,255,255,0.8);
    z-index: 10000;
    margin: 0;
    padding: 2px;
    list-style: none;
    width: 160px;
    font-family: 'Afacad', sans-serif;
    border-radius: 2px;
}

.poc-silver-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.poc-silver-item {
    position: relative;
    list-style: none;
    margin-bottom: 1px;
}

.poc-silver-item > a {
    font-size: 10.5pt; 
    color: #44465E;
    padding: 5px 12px;
    display: flex;
    text-decoration: none;
	cursor: url('sprites/cursor_key.ico'), auto;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    transition: color 0.1s;
	z-index: 1;
}

.poc-silver-item > a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        200px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), 
        rgba(255, 255, 255, 0.6), 
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
	z-index: -1;
}

.poc-silver-item > a:hover {
    color: #44465E;
    background-color: rgba(127, 120, 197, 0.2); 
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.8), inset -1px -1px 2px rgba(0,0,0,0.1);
    border-radius: 2px;
}

.poc-silver-item > a:hover::before {
    opacity: 1;
}

.poc-silver-shortcut {
    margin-left: auto;
    padding-left: 24px;
    opacity: 0.45;
    font-size: 9pt;
    white-space: nowrap;
    align-self: center;
}

#omegaContextMenu {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    z-index: 10000;
}
#omegaContextMenu.is-open {
    visibility: visible;
    opacity: 1;
}

.poc-eq-margin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
	background: linear-gradient(to bottom, #b0b3be 0%, #d8d9e0 12%, rgba(240,240,240,0.95) 35%, rgba(240,240,240,0.95) 65%, #d0d2da 88%, #a8aab6 100%);
    border-left: 2px solid #35364c;
    box-shadow: -3px 0 6px rgba(30, 32, 44, 0.35), inset 1px 0 0 rgba(255,255,255,0.7);
    margin-top: -15px;
    margin-right: -15px;
    margin-bottom: -15px;
    margin-left: 4px;
    padding: 15px 10px 15px 10px;
    align-self: stretch;
    cursor: url('sprites/cursor_default.ico'), auto;
    position: relative;
    outline: none;
    z-index: -2;
}

.poc-eq-margin:active {
    cursor: url('sprites/cursor_default.ico'), auto;
}

.poc-eq-margin::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        180px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
        rgba(255, 255, 255, 0.55),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poc-eq-margin:hover::before {
    opacity: 1;
}

.poc-eq-util-btn {
    width: 22px;
    height: 22px;
    background: #EEEEEE;
    border: 1px solid rgba(68, 70, 94, 0.3);
    color: #44465E;
    font-family: 'Afacad', sans-serif;
    
    font-size: 9pt;
    cursor: url('sprites/cursor_point.ico'), auto;    border-radius: 2px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.1s ease;
    position: relative;
    z-index: 1;
}

.poc-eq-util-btn:hover {
    border-color: #AAA348;
    color: #AAA348;
    background-color: rgba(127, 120, 197, 0.15);
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.8), inset -1px -1px 2px rgba(0,0,0,0.1);
}

.poc-eq-util-btn.active {
    background: #44465E;
    color: #FFFFFF;
    border-color: #44465E;
}

.poc-eq-util-btn svg {
    width: 14px;
    height: 14px;
    display: block;
    overflow: visible;
}

.view-hidden {
    display: none !important;
}

.is-floating {
    position: fixed !important;
    z-index: 9900;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 4px 4px 15px rgba(30, 32, 44, 0.25) !important;
    border: 1px solid #7D6988 !important;
}

.descriptor-input:focus ~ .descriptor-tabs {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    pointer-events: none;
}

.descriptor-tabs {
    display: flex;
    gap: 2px;
    margin-left: 3px;
    overflow: hidden;
    max-width: 300px;
    opacity: 1;
    flex: 0 1 auto;
    transition: max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.2s ease, 
                margin-left 0.25s ease;
}

.desc-tab {
    font-size: 9.5pt;
    
    padding: 2px 3px;
    cursor: url('sprites/cursor_point.ico'), auto;    color: rgba(68, 70, 94, 0.5);
    border: 1px solid transparent;
    border-radius: 2px;
    flex-shrink: 0;
    transition: background 0.1s;
}

.desc-tab:hover {
    color: #44465E;
}

.desc-tab.active {
    color: #44465E;
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(68, 70, 94, 0.3);
}

.docked-eq-panel {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
    overflow: hidden !important; 
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    perspective: 800px; 
    padding: 0; 
    z-index: 2; 
}

.docked-eq-panel.active {
    display: flex;
}

.knob-wheel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.knob-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -27px;
    align-items: center;
    backface-visibility: hidden;
    transition: opacity 0.5s ease;
}

.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22px;
    flex: 0 0 32px;
    gap: 3px;
    z-index: 99;
}

.knob-label {
    font-size: 8px;
    
    color: #44465E;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
}

.knob-val {
    font-size: 9px;
    width: 100%;
    background: transparent;
    border: none;
    color: #44465E;
    font-family: 'JetBrains Mono', monospace;
    
    text-align: center;
    padding: 0;
    outline: none;
    cursor: url('sprites/cursor_input.ico') 12 12, text;
}

.knob-val:focus {
    background: #FAFAFA;
    border-radius: 2px;
}

.knob-body {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
	cursor: url('sprites/cursor_ns.ico') 12 12, auto;
    position: relative;
    background: linear-gradient(135deg, #F0F0F0 0%, #C0C3CF 40%, #9598A6 100%);
    box-shadow: 
        inset 1px 1px 2px rgba(255, 255, 255, 0.9), 
        inset -1px -1px 3px rgba(0, 0, 0, 0.4),
        1px 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #777;
    transition: filter 0.1s;
}

.knob-body:active {
    filter: brightness(0.9);
}

.knob-dial {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
}

.knob-dial::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    width: 2px;
    height: 7px;
    background-color: #44465E;
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.6);
}

.descriptor-panel.expanded-height .docked-eq-panel {
    padding: 10px 5px;
    align-items: flex-start;
}

.descriptor-panel.expanded-height .knob-wheel {
    transform: none !important;
    display: grid !important; 
    grid-template-columns: repeat(auto-fit, 32px);
    justify-content: center !important;
    gap: 15px 12px;
    width: 100%;
}

.descriptor-panel.expanded-height .knob-row {
    display: contents !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.docked-eq-panel.is-locked .knob-container {
    pointer-events: none;
    opacity: 0.6;
    filter: grayscale(1);
}

.poc-eq-submenu.is-locked .poc-eq-band,
.poc-eq-submenu.is-locked .poc-number {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
}

.poc-eq-submenu.is-floating.is-locked,
.poc-chat-box.is-open.is-locked {
    opacity: 0.4 !important;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.poc-eq-submenu.is-floating.is-locked .poc-eq-margin,
.poc-chat-box.is-open.is-locked .poc-eq-margin {
    pointer-events: auto;
}

.poc-eq-submenu.is-floating.is-locked .poc-eq-band,
.poc-eq-submenu.is-floating.is-locked .poc-number,
.poc-chat-box.is-open.is-locked .poc-chat-input,
.poc-chat-box.is-open.is-locked .poc-chat-icon-btn {
    opacity: 1; 
}

.poc-chat-box {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background-color: #FAFAFA;
    border: 1px solid rgba(68, 70, 94, 0.2);
    box-shadow: 4px 4px 15px rgba(30, 32, 44, 0.15);
    z-index: 9905;
    margin: 0;
    padding: 15px;
    gap: 12px;
    width: 500px;
    display: flex;
    flex-direction: row;
    font-family: 'Afacad', sans-serif;
    box-sizing: border-box;
}

.poc-chat-box.is-open {
    visibility: visible;
    opacity: 1;
    border: 1px solid #7D6988;
    box-shadow: 4px 4px 15px rgba(30, 32, 44, 0.25);
}

.poc-chat-box .poc-eq-margin::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        180px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
        rgba(255, 255, 255, 0.55),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.poc-chat-box .poc-eq-margin:hover::before {
    opacity: 1;
}

.poc-chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

.poc-chat-history {
    flex: 1 1 auto;
    background: #EEEEEE;
    border: 1px solid rgba(68, 70, 94, 0.25);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
    padding: 6px 8px;
    overflow-y: auto;
    height: 200px;
    min-height: 200px;
    font-family: 'Afacad', sans-serif;
    font-size: 12px;
    color: #44465E;
    line-height: 1.35;
    margin-bottom: 6px;
    border-radius: 2px;
    box-sizing: border-box;
    cursor: url('sprites/cursor_input.ico') 12 12, text;
}

/* Chat history + input scrollbars: a 3px clone of the file-tree scrollbar
   (lilac track, #44465E thumb), sized down for these small surfaces. */
.poc-chat-history::-webkit-scrollbar,
.poc-chat-input::-webkit-scrollbar {
    width: 3px;
    background-color: #C8BFE7;
}
.poc-chat-history::-webkit-scrollbar-thumb,
.poc-chat-input::-webkit-scrollbar-thumb {
    background: #44465E;
    border-radius: 0px;
}

.poc-chat-msg {
    margin: 0 0 3px 0;
    word-break: break-word;
    white-space: pre-wrap;
}

.poc-chat-msg.from-agent { color: #44465E; }
.poc-chat-msg.from-user  { color: #44465E;  }

.poc-chat-msg .who {
    display: inline-block;
    
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.55;
    margin-right: 5px;
    min-width: 32px;
}

.poc-chat-input {
    width: 100%;
    max-width: 100%;
    font-family: 'Afacad', sans-serif;
    font-size: 12px;
    color: #44465E;
    background: #EEEEEE;
    border: 1px solid rgba(68, 70, 94, 0.3);
    padding: 3px 6px;
    outline: none;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.08);
    border-radius: 2px;
    resize: none;
    line-height: 1.3;
    box-sizing: border-box;
    cursor: url('sprites/cursor_input.ico') 12 12, text;
}

.poc-chat-input:focus { border-color: #AAA348; background: #FAFAFA; }

.poc-chat-icon-row {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 6px;
    align-items: center;
}

.poc-chat-icon-btn {
    width: 22px;
    height: 22px;
    background: #EEEEEE;
    border: 1px solid rgba(68, 70, 94, 0.3);
    color: #44465E;
    cursor: url('sprites/cursor_point.ico'), auto;
    border-radius: 2px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: all 0.1s ease;
    position: relative;
    box-sizing: border-box;
}

.poc-chat-icon-btn:hover {
    border-color: #AAA348;
    background-color: rgba(127, 120, 197, 0.15);
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.8), inset -1px -1px 2px rgba(0,0,0,0.1);
}

.poc-chat-icon-btn svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.poc-chat-box.is-locked .poc-chat-input,
.poc-chat-box.is-locked .poc-chat-icon-btn {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
}

.poc-chat-box.is-maximized {
    padding: 0;
    gap: 0;
    border-radius: 0;
}

.poc-chat-box.is-maximized .poc-eq-margin {
    margin: 0;
}

.poc-chat-box.is-maximized .poc-chat-content {
    padding: 10px;
}

.poc-chat-box.is-maximized .poc-chat-history {
    height: auto;
    min-height: 0;
}

.docked-chat-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 8px 8px 8px;
    background: transparent;
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 0;
}

.docked-chat-panel.active { display: flex; }

.docked-chat-panel .poc-chat-history {
    flex: 1 1 auto;
    height: auto;
    min-height: 30px;
    margin-bottom: 5px;
    background: #EEEEEE;
}

.docked-chat-panel .poc-chat-input {
    width: 100%;
    box-sizing: border-box;
    height: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    font-family: 'Afacad', sans-serif;
    line-height: 1.3;
    resize: none;
}

.docked-chat-panel .poc-chat-icon-row {
    margin-top: 4px;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 6px;
    padding-right: 2px;
}

.docked-chat-panel .poc-chat-icon-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 18px;
    height: 18px;
    padding: 0;
}

.docked-chat-panel .poc-chat-icon-btn:hover {
    background: transparent;
    box-shadow: none;
}

.docked-chat-panel .poc-chat-icon-btn:hover svg path,
.docked-chat-panel .poc-chat-icon-btn:hover svg circle {
    stroke: #AAA348;
}

.docked-chat-panel.is-locked .poc-chat-input,
.docked-chat-panel.is-locked .poc-chat-icon-btn {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
}

.descriptor-panel.expanded-height .docked-chat-panel {
    padding-right: 32px;
}

.poc-grid-cell.poc-agent-active::after,
.poc-grid-cell.poc-obj-selected::after {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    border: 2px solid #7F78C5;
    box-shadow: 0 0 6px #7F78C5A6;
    z-index: 6;
}

.descriptor-panel.poc-panel-active,
.descriptor-panel.poc-panel-focused {
    outline: none;
}

.descriptor-panel.poc-panel-active::after,
.descriptor-panel.poc-panel-focused::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 2px solid #7F78C5;
    z-index: 50;
}

.poc-grid-cell:has(.poc-desktop-icon.wf-filled)::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px dashed #7D6988;
    pointer-events: none;
    z-index: 5;
}

.descriptor-panel.is-container {
    flex: 0 0 auto !important;
    background-color: color-mix(in srgb, var(--container-hue, #A99FFC) 12%, #b9bac4);
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
                flex-basis 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
                box-shadow 0.2s ease-in-out;
}

.descriptor-panel.is-container > .descriptor-header-stripe {
    padding-left: 12px;
    padding-right: 15px;
}

.descriptor-children {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.descriptor-panel.is-container.max-height {
    flex: 1 1 auto !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.descriptor-panel.is-container.collapsed .descriptor-children {
    display: none;
}

.descriptor-panel.is-contained {
    flex: 0 0 auto !important;
    height: var(--nested-row-h, 112px);
    max-height: none;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
                padding-top 0.2s ease-in-out,
                box-shadow 0.2s ease-in-out;
    background-color: color-mix(in srgb, var(--container-hue, #A99FFC) 18%, #b9bac4);
    background-image: none;
}

.descriptor-panel.is-contained.collapsed {
    flex: 0 0 auto !important;
    height: calc(var(--nested-row-h, 112px) / 4) !important;
    padding-top: 0 !important;
    box-shadow: inset 4px 9px 6px rgba(255, 255, 255, 0.8),
                inset -3px -1px 6px rgba(0, 0, 0, 0.25) !important;
}

.descriptor-panel.is-contained.expanded-height {
    flex: 0 0 auto !important;
    height: calc(var(--nested-row-h, 112px) * 2) !important;
    overflow-y: auto;
}

.poc-desktop-icon.wf-view-host {
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.poc-grid-cell:hover .poc-desktop-icon.wf-view-host,
.poc-grid-cell.poc-selected .poc-desktop-icon.wf-view-host,
.poc-grid-cell.poc-active-menu .poc-desktop-icon.wf-view-host {
    filter: none;
    transform: scale(1.15);
}

body.poc-add-task-mode .poc-eq-submenu.is-floating,
body.poc-add-task-mode .poc-chat-box.is-open {
    opacity: 0.4 !important;
    pointer-events: none !important;
}

body.poc-knob-dragging,
body.poc-knob-dragging * {
    cursor: url('sprites/cursor_ns.ico') 12 12, ns-resize !important;
}

body.poc-add-task-mode #poc-desktop-grid .poc-grid-cell {
    cursor: url('sprites/cursor_cross.ico') 12 12, crosshair;
}

#poc-add-task-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #44465E;
    color: #FFEC64;
    padding: 8px 18px;
    font-family: 'Afacad', sans-serif;
    font-size: 12pt;
    
    z-index: 10100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
    display: none;
}

body.poc-add-task-mode #poc-add-task-banner { display: block; }

.docked-eq-margin {
    position: absolute;
    top: 6px;
    right: 0;
    bottom: 6px;
    width: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    z-index: 12;
}

.descriptor-panel.expanded-height .docked-eq-margin {
    display: flex;
}

.descriptor-panel.expanded-height .docked-eq-panel {
    padding-right: 28px;
}

.descriptor-panel.expanded-height .docked-chat-panel {
    padding-right: 28px;
}

.docked-eq-margin .poc-eq-util-btn {
    width: 18px;
    height: 18px;
    font-size: 9pt;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #44465E;
    padding: 0;
}

.docked-eq-margin .poc-eq-util-btn:hover {
    background: transparent;
    box-shadow: none;
    color: #AAA348;
    border: none;
}

.docked-eq-margin .poc-eq-util-btn.active {
    background: transparent;
    color: #AAA348;
    border: none;
}

.poc-chat-icon-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background-color: #FAFAFA;
    border: 1px solid rgba(68, 70, 94, 0.2);
    box-shadow: 4px 4px 15px rgba(30, 32, 44, 0.15);
    z-index: 10010;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 160px;
    font-family: 'Afacad', sans-serif;
}

.poc-chat-icon-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.poc-chat-icon-menu .poc-ctx-item > a {
    font-size: 10.5pt;
    color: #44465E;
    padding: 5px 12px;
    display: block;
    text-decoration: none;
    border-left: 3px solid transparent;
    cursor: url('sprites/cursor_point.ico'), auto;
    transition: background-color 0.1s, border-left-color 0.1s;
}

.poc-chat-icon-menu .poc-ctx-item > a:hover {
    background-color: rgba(68, 70, 94, 0.1);
    border-left-color: #44465E;
}

.poc-chat-icon-row {
    flex-wrap: wrap;
    align-items: center;
}

.poc-chat-chips {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
    align-items: center;
}

.poc-chat-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Afacad', sans-serif;
    font-size: 9.5pt;
    color: #44465E;
    background: linear-gradient(to bottom, #fafafa 0%, #e8e8ee 100%);
    border: 1px solid rgba(68, 70, 94, 0.4);
    border-radius: 3px;
    padding: 2px 6px;
    cursor: url('sprites/cursor_point.ico'), auto;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color 0.1s, color 0.1s;
}

.poc-chat-chip .chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poc-chat-chip .chip-caret { font-size: 7pt; opacity: 0.7; }

.poc-chat-chip:hover { border-color: #AAA348; color: #AAA348; }

.poc-silver-menu.chat-cursor .poc-silver-item > a {
    cursor: url('sprites/cursor_default.ico'), auto;
}

.poc-silver-item > a.is-checked::after {
    content: "\2713";
    margin-left: auto;
    padding-left: 10px;
    color: #AAA348;
    
}

.poc-silver-item.is-disabled > a {
    opacity: 0.4;
    pointer-events: none;
}

.poc-silver-sep {
    height: 0;
    margin: 3px 5px;
    border-top: 1px solid rgba(68, 70, 94, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    list-style: none;
}

.poc-ctx-sep {
    height: 0;
    margin: 4px 6px;
    border-top: 1px solid rgba(68, 70, 94, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    list-style: none;
}

.poc-chat-msg .msg-text pre.msg-code {
    background: #2b2c3b;
    color: #e6e6ef;
    border: 1px solid #44465E;
    border-radius: 3px;
    padding: 8px 10px;
    margin: 5px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.4;
    white-space: pre;
}

.poc-chat-msg .msg-text pre.msg-code code {
    font-family: inherit;
    white-space: pre;
    background: none;
    border: none;
    padding: 0;
}

.poc-chat-msg .msg-text pre.msg-code::-webkit-scrollbar { height: 5px; }
.poc-chat-msg .msg-text pre.msg-code::-webkit-scrollbar-thumb { background: #AAA348; border-radius: 0; }

.poc-chat-msg .msg-text code.msg-inline-code {
    background: rgba(68, 70, 94, 0.12);
    border: 1px solid rgba(68, 70, 94, 0.2);
    border-radius: 3px;
    padding: 0 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.poc-app-window {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    box-sizing: border-box;
    width: 520px;
    padding: 0;
    gap: 0;
    display: flex;
    flex-direction: row;
    font-family: 'Afacad', sans-serif;
    background-color: #44465E;
    border: 2px solid #1D070E;
    box-shadow: 4px 4px 18px rgba(30, 32, 44, 0.35);
    z-index: 9900;
    transition: border-color 0.2s ease, transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.26s ease;
}

.poc-app-window.is-selected {
    border-color: #7F78C5; 
}

.poc-app-window.is-open {
    visibility: visible;
    opacity: 1;
}

.poc-app-window.is-shaded {
    display: none !important;
}

.poc-app-content {
    flex: 1;
    min-width: 0;
    min-height: 320px;
    box-sizing: border-box;
    background-color: #EEEEEE ;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.25), inset 1px 0 0 rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.poc-app-window .poc-eq-margin {
    margin: 0;
}

.poc-app-window .poc-eq-margin::before {
    background: radial-gradient(160px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
        rgba(255, 255, 255, 0.18), transparent 80%);
}

.poc-app-window.is-maximized {
    padding: 0;
    gap: 0;
}
.poc-app-window.is-maximized .poc-eq-margin {
    margin: 0;
}
.poc-app-window.is-maximized .poc-app-content {
    min-height: 0;
}

.poc-eq-util-btn.poc-app-close-armed,
.poc-eq-util-btn.poc-app-close-armed:hover {
    background: #FF3333;
    border-color: #b81b1b;
    color: #FFFFFF;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3), 0 0 6px rgba(255, 51, 51, 0.6);
}

.poc-eq-util-btn:hover {
	border-color: #1D070E;
    background-color: #44465E;
}

.poc-app-window.is-open.is-locked {
    opacity: 0.4 !important;
    pointer-events: none;
}

.poc-app-window.is-open.is-locked .poc-eq-margin {
    pointer-events: auto;
}

.drawer-icon.app-running {
    position: relative;
}
.drawer-icon.app-running::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: -5px;
    height: 3px;
    border-radius: 0px;
    background: var(--app-underline, #A99FFC);
    box-shadow: 0 0 5px var(--app-underline, #A99FFC);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.poc-app-window.is-focused:not(.is-maximized) {
    border-color: #7F78C5;
    box-shadow: 4px 4px 18px rgba(30, 32, 44, 0.35), 0 0 0 1px rgba(127, 120, 197, 0.5);
}

.poc-app-titlebar-icon {
    margin-top: auto;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.poc-app-titlebar-icon img,
.poc-app-titlebar-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0.5px 1px 0.5px rgba(0, 0, 0, 0.65));
}

.poc-app-title {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 12px 14px;
    margin-bottom: 8px;
    font-family: 'Afacad', sans-serif;
    color: #44465E;
}
.poc-app-title-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.poc-app-title-icon img,
.poc-app-title-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0.5px 1px 0.5px rgba(0, 0, 0, 0.65));
}
.poc-app-title-text {
    position: relative;
    z-index: 1;
    font-family: 'Afacad', sans-serif;
    font-size: 14pt;
    color: #44465E;
    line-height: 1;
    white-space: nowrap;
}

.poc-app-title-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #eee 0%, #44465E 50%, #eee 100%);
    background-size: 200% 100%;
    animation: moveGradientSeamless 33s linear infinite;
    z-index: 0;
    pointer-events: none;
}
/* ============================================================
   ☰ menu — signed-in vs signed-out items
   ============================================================ */
.dropdown-menu li[data-auth="in"] { display: none; }
body.is-authed .dropdown-menu li[data-auth="in"]  { display: block; }
body.is-authed .dropdown-menu li[data-auth="out"] { display: none; }

/* ============================================================
   Settings app — tabbed account area (Account / Users / Billing)
   Type scale + inputs mirror the chatbox (.poc-chat-input).
   ============================================================ */
.poc-settings {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 14px 12px 14px;
    font-family: 'Afacad', sans-serif;
    color: #44465E;
}

.poc-settings-tabs {
    flex: 0 0 auto;
    display: flex;
    gap: 2px;
    border-bottom: 1px solid rgba(68,70,94,0.2);
    margin-bottom: 10px;
}
.poc-settings-tab {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 5px 11px;
    font-family: 'Afacad', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #44465E;
    opacity: 0.5;
    cursor: url('sprites/cursor_point.ico'), pointer;
    transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.poc-settings-tab:hover { opacity: 0.85; }
.poc-settings-tab.is-active {
    opacity: 1;
    color: #1D070E;
    border-bottom-color: #AAA348;
}

.poc-settings-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}
.poc-settings-body::-webkit-scrollbar { width: 3px; background-color: #C8BFE7; }
.poc-settings-body::-webkit-scrollbar-thumb { background: #44465E; border-radius: 0; }

.poc-settings-panel { display: none; }
.poc-settings-panel.is-active { display: block; }

.poc-settings-group { margin: 0 0 16px 0; }
.poc-settings-group-title {
    font-size: 9px;
    
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0 0 7px 0;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(68,70,94,0.12);
}

.poc-settings-field { display: block; margin: 0 0 8px 0; }
.poc-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}
.poc-settings-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.3px;
    color: #44465E;
    opacity: 0.8;
    margin-bottom: 2px;
}
.poc-settings-input,
.poc-settings-select,
.poc-settings-textarea {
    width: 100%;
    max-width: 100%;
    font-family: 'Afacad', sans-serif;
    font-size: 12px;
    color: #44465E;
    background: #EEEEEE;
    border: 1px solid rgba(68, 70, 94, 0.3);
    padding: 3px 6px;
    outline: none;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.08);
    border-radius: 2px;
    box-sizing: border-box;
    line-height: 1.3;
    cursor: url('sprites/cursor_input.ico') 12 12, text;
}
.poc-settings-textarea { resize: none; line-height: 1.35; }
.poc-settings-select { cursor: url('sprites/cursor_point.ico'), pointer; }
.poc-settings-input:focus,
.poc-settings-select:focus,
.poc-settings-textarea:focus { border-color: #AAA348; background: #FAFAFA; }
.poc-settings-input:disabled,
.poc-settings-select:disabled { opacity: 0.5; }

.poc-settings-hint {
    font-size: 9px;
    letter-spacing: 0.3px;
    opacity: 0.5;
    margin-top: 3px;
}

.poc-settings-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 9px;
    margin-top: 2px;
    border-top: 1px solid rgba(68,70,94,0.2);
}
.poc-settings-msg {
    flex: 1;
    font-size: 10px;
    letter-spacing: 0.3px;
    min-height: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.poc-settings-msg.is-show { opacity: 0.85; }
.poc-settings-msg.error   { color: #b81b1b; opacity: 0.95; }
.poc-settings-msg.success { color: #5a6b1f; opacity: 0.95; }

.poc-settings-save {
    appearance: none;
    font-family: 'Afacad', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #EEEEEE;
    background: #44465E;
    border: 1px solid #1D070E;
    padding: 5px 16px;
    border-radius: 2px;
    cursor: url('sprites/cursor_point.ico'), pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.poc-settings-save:hover { background: #AAA348; color: #1D070E; border-color: #AAA348; }
.poc-settings-save:disabled { opacity: 0.4; cursor: default; }
.poc-settings-save:disabled:hover { background: #44465E; color: #EEEEEE; border-color: #1D070E; }

.poc-settings-plan {
    border: 1px solid rgba(68,70,94,0.25);
    background: #FAFAFA;
    padding: 10px 12px;
    border-radius: 2px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.poc-settings-plan-name  { font-size: 13px;  }
.poc-settings-plan-price { font-size: 12px; color: #1D070E; }
.poc-settings-plan-price b { font-size: 16px; }
.poc-settings-badge {
    display: inline-block;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 2px;
    background: rgba(68,70,94,0.12);
    color: #44465E;
    opacity: 0.85;
}
.poc-settings-stripe {
    border: 1px dashed rgba(68,70,94,0.35);
    background: #EEEEEE;
    padding: 14px 12px;
    border-radius: 2px;
    font-size: 11px;
    opacity: 0.7;
    text-align: center;
}
.poc-settings-empty {
    font-size: 11px;
    opacity: 0.6;
    padding: 4px 0;
    line-height: 1.5;
}
.poc-settings-userrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(68,70,94,0.1);
}

/* ============================================================
   Login/loadup: keep the Gridtop (and its scrollbar) hidden until
   auth_poc.js adds `gridtop-ready` — set only after the loading bars
   drop, so the desktop rises in behind the purple wall before it fades.
   ============================================================ */
body:not(.gridtop-ready) { overflow: hidden; }
body:not(.gridtop-ready) #poc-desktop-environment { visibility: hidden; }

/* ============================================================
   Billing tab — Stripe card field (matches the input styling)
   ============================================================ */
.poc-settings-card {
    padding: 7px 8px;
    background: #EEEEEE;
    border: 1px solid rgba(68, 70, 94, 0.3);
    border-radius: 2px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.08);
    box-sizing: border-box;
}
.poc-settings-card.StripeElement--focus { border-color: #AAA348; background: #FAFAFA; }
.poc-settings-card.StripeElement--invalid { border-color: #b81b1b; }
.poc-settings-saved-card {
    font-size: 12px;
    color: #44465E;
    padding: 7px 8px;
    background: #FAFAFA;
    border: 1px solid rgba(68,70,94,0.25);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.poc-settings-saved-card .card-meta { letter-spacing: 0.5px; }

/* ============================================================
   Post-login payment step (inside the auth modal)
   ============================================================ */
.auth-pay-row { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; text-align: left; }
.auth-pay-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.55; }
#auth-payment-view select.minimal-input { cursor: url('sprites/cursor_point.ico'), pointer; }
#auth-payment-view select.minimal-input option:disabled { color: #999; }
.auth-pay-card {
    padding: 11px 12px;
    background: #FFFFFF;
    border: 1px solid rgba(68, 70, 94, 0.3);
    border-radius: 3px;
    margin-bottom: 10px;
}
.auth-pay-card.StripeElement--focus { border-color: #AAA348; }
.auth-pay-card.StripeElement--invalid { border-color: #b81b1b; }
.auth-pay-check { margin-bottom: 10px; font-size: 12px; }
.auth-pay-check a { color: #AAA348; text-decoration: underline; }

/* Boxed (popped-down) Settings window: bound the height so the inner body scrolls
   with the same 3px lilac scrollbar as maximized, instead of the window running
   off-screen. ~600px tall, capped to the viewport on short screens. */
.poc-app-window:not(.is-maximized) .poc-app-content:has(.poc-settings) {
    height: 600px;
    max-height: calc(100vh - 130px);
}
