* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
}

.bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
    background: #1a1d24;
    color: #e8e8e8;
    font-size: 0.8125rem;
}

.bar__label {
    color: #9aa0ab;
    margin-right: 0.35rem;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
}

.bar select,
.bar input {
    font: inherit;
    background: #2a2e38;
    color: #e8e8e8;
    border: 1px solid #3c4250;
    border-radius: 4px;
    padding: 0.3rem 0.4rem;
}

.bar input {
    width: 7.5rem;
}

.bar__steps {
    display: flex;
    gap: 0.25rem;
}

.bar__steps button {
    font: inherit;
    background: transparent;
    color: #c8ccd4;
    border: 1px solid #3c4250;
    border-radius: 4px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}

.bar__steps button:hover {
    background: #2a2e38;
}

.bar__steps button.active {
    background: #3554d1;
    border-color: #3554d1;
    color: #fff;
}

.bar__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.bar__controls button {
    font: inherit;
    background: #2a2e38;
    color: #c8ccd4;
    border: 1px solid #3c4250;
    border-radius: 4px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}

.bar__controls button:hover {
    background: #353a47;
}

.notice {
    margin: 0;
    padding: 0.4rem 0.75rem;
    background: #fdf3d7;
    color: #6b5310;
    font-size: 0.8125rem;
    font-family: system-ui, sans-serif;
}

#frame {
    flex: 1;
    width: 100%;
    border: 0;
}
