﻿.dev-v1-workspace {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
}

.dev-v1-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 420px;
}

.dev-v1-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(96, 165, 250, 0.14);
}

.dev-v1-panel:last-child { border-right: 0; }

.dev-v1-panel-head {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(8, 13, 27, 0.72);
    color: #e8f2ff;
    font-size: 0.84rem;
    font-weight: 900;
}

.dev-v1-panel-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dev-v1-panel-head i { color: #5fb8ff; }

.dev-v1-textarea,
.dev-v1-output {
    width: 100%;
    min-height: 374px;
    flex: 1 1 auto;
    margin: 0;
    padding: 16px;
    border: 0;
    outline: 0;
    resize: vertical;
    background: #101827;
    color: #e2edf9;
    font: 0.9rem/1.58 Consolas, Monaco, "Courier New", monospace;
    white-space: pre-wrap;
    overflow: auto;
}

.dev-v1-output { background: #0e1625; }

.dev-v1-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-top: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(8, 13, 27, 0.82);
}

.dev-v1-status {
    color: #a9bdd6;
    font-size: 0.82rem;
    font-weight: 800;
}

.dev-v1-status.is-error { color: #fb7185; }
.dev-v1-status.is-success { color: #34d399; }

.dev-v1-buttons,
.dev-v1-mini-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.dev-tool-action,
.dev-v1-mini {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: #cfe6ff;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
}

.dev-tool-action.is-primary {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
}

.dev-tool-action.is-muted,
.dev-v1-mini { background: rgba(148, 163, 184, 0.10); }

.dev-tool-action:hover,
.dev-v1-mini:hover {
    border-color: rgba(96, 165, 250, 0.42);
    transform: translateY(-1px);
}

body:not(.theme-dark) .dev-v1-workspace {
    border-color: rgba(29, 55, 88, 0.14);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(30, 64, 110, 0.08);
}

body:not(.theme-dark) .dev-v1-panel { border-right-color: rgba(29, 55, 88, 0.12); }
body:not(.theme-dark) .dev-v1-panel-head,
body:not(.theme-dark) .dev-v1-actions {
    border-color: rgba(29, 55, 88, 0.12);
    background: linear-gradient(180deg, #f8fbff, #eef6ff);
    color: #102033;
}
body:not(.theme-dark) .dev-v1-textarea,
body:not(.theme-dark) .dev-v1-output {
    background: #ffffff;
    color: #102033;
}
body:not(.theme-dark) .dev-v1-output { background: #f8fbff; }
body:not(.theme-dark) .dev-v1-status { color: #52677f; }
body:not(.theme-dark) .dev-tool-action,
body:not(.theme-dark) .dev-v1-mini {
    border-color: rgba(23, 105, 232, 0.18);
    background: #eef6ff;
    color: #1769e8;
}
body:not(.theme-dark) .dev-tool-action.is-primary {
    background: linear-gradient(135deg, #1769e8, #38bdf8);
    color: #ffffff;
}

@media (max-width: 900px) {
    .dev-v1-grid { grid-template-columns: 1fr; }
    .dev-v1-panel { border-right: 0; border-bottom: 1px solid rgba(96, 165, 250, 0.14); }
    .dev-v1-textarea, .dev-v1-output { min-height: 260px; }
    .dev-v1-actions { align-items: stretch; flex-direction: column; }
    .dev-v1-buttons { justify-content: flex-start; }
}
