* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#input-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    background: #f8f8f8;
}

#input-help {
    width: 100%;
    font-size: 13px;
    color: #666;
}

#input-help code {
    background: #e8e8e8;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 12px;
}

#trade-input {
    flex: 1;
    padding: 6px 10px;
    font-size: 14px;
    font-family: monospace;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

#trade-input:focus {
    border-color: #666;
}

#submit-btn {
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
}

#submit-btn:hover {
    background: #555;
}

#submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

#status {
    font-size: 13px;
    color: #888;
}

#status.error {
    color: #c00;
}

#chart-container {
    flex: 1;
    min-height: 0;
    position: relative;
}

#legend {
    position: absolute;
    top: 8px;
    left: 22px;
    z-index: 10;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}

#legend-ticker {
    font-weight: 700;
    font-size: 15px;
    margin-right: 10px;
}

.legend-desc {
    font-weight: 400;
    font-size: 13px;
    color: #888;
}

#legend-ohlc {
    font-family: monospace;
    font-size: 12px;
    color: #333;
}
