:root { --bg: #0f172a; --panel: #3c4b56; --accent: #45d4df; --text: #f1f5f9; --ok: #22c55e; --fail: #ef4444; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background: var(--bg); color: var(--text); display: flex; height: 100vh; overflow: hidden; overscroll-behavior: none;}

	
body {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, grey, white) left, linear-gradient(to top, grey, white) right;
    background-size: 50% 100%;
    background-repeat: no-repeat;
}	
	
	
.mobile-header { display: none; }
.desktop-only { display: block; }
.sidebar { width: 380px; background-repeat: no-repeat; background-size: 50% 100%; background: linear-gradient(to top, grey, white) right, linear-gradient(to bottom, grey, white) left;; padding: 25px; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; z-index: 10; transition: transform 0.3s ease;}
.card { background: #495965; padding: 15px; border-radius: 8px; border: 1px solid #475569; }
.status { padding: 15px; border-radius: 8px; text-align: center; font-weight: bold; transition: all 0.3s; border: 2px solid #475569; margin-bottom: 5px; font-size: 1.1rem; }
.status-ok { background: #064e3b; color: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px rgba(34, 197, 94, 0.2); }
.status-fail { background: #450a0a; color: var(--fail); border-color: var(--fail); box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
.main { flex-grow: 1; position: relative; background: #ffffff; touch-action: none; }
canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
button { background: var(--accent); color: #0f172a; border: none; padding: 10px; border-radius: 6px; cursor: pointer; width: 100%; font-weight: 900; font-size: 0.9rem; transition: all 0.2s; text-transform: uppercase;}
button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.width-info { font-family: monospace; font-size: 1rem; display: block; margin-top: 8px; font-weight: normal; }
input[type="range"], input[type="number"], select { width: 100%; accent-color: var(--accent); background: #ffffff; border: 0px solid #475569; padding: 6px; border-radius: 4px; color: 000000; font-family: inherit; box-sizing: border-box;}
label { font-size: 0.85rem; color: #ffffff; display: block; margin-bottom: 5px; font-weight: bold; }
.flex-row { display: flex; justify-content: space-between; align-items: center; gap: 10px;}
.instruction { font-size: 0.85rem; color: #cbd5e1; margin-top: 5px; font-style: italic; line-height: 1.4; }

/* Mobile Responsive */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .mobile-header { display: flex; justify-content: space-between; align-items: center; background: var(--panel); padding: 15px; border-bottom: 1px solid #475569; z-index: 20;}
    .desktop-only { display: none; }
    .menu-btn { background: transparent; color: var(--accent); border: 1px solid var(--accent); width: auto; padding: 5px 15px;}
    .sidebar { position: absolute; top: 60px; left: 0; bottom: 0; width: 100%; max-width: 320px; transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
}