body {
    margin: 0;
    padding: 20px;
    background: #f4f6f8;
    color: #17202a;
    font-family: Arial, Helvetica, sans-serif;
}

.display-frame-body {
    padding: 0;
    background: #ffffff;
}

.engine {
    max-width: 900px;
    margin: 0 0 20px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 6px;
}

.engine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

h1 {
    margin: 0;
    font-size: 20px;
}

.engine-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.engine-actions button {
    white-space: nowrap;
}

button {
    padding: 8px 14px;
    border: 1px solid #b8c1cc;
    border-radius: 4px;
    background: #ffffff;
    color: #17202a;
    cursor: pointer;
}

button:hover {
    border-color: #087f8c;
}

pre {
    margin: 0;
    padding: 12px;
    min-height: 90px;
    max-height: 240px;
    overflow: auto;
    background: #101820;
    color: #dff7ef;
    border-radius: 4px;
    white-space: pre-wrap;
}

nav {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

nav button {
    padding: 8px 12px;
    border: 1px solid #d8dee4;
    border-radius: 4px;
    background: #ffffff;
    color: #17202a;
    text-decoration: none;
}

nav button.active {
    border-color: #087f8c;
    background: #e6f7f9;
}

.menu-group {
    position: relative;
    display: inline-flex;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    display: none;
    min-width: 150px;
    padding-top: 4px;
}

.submenu button {
    display: block;
    width: 100%;
    border-radius: 0;
    text-align: left;
}

.submenu button:first-child {
    border-radius: 4px 4px 0 0;
}

.submenu button:last-child {
    border-radius: 0 0 4px 4px;
}

.menu-group:hover .submenu {
    display: block;
}

.page-container {
    min-height: 70vh;
    position: relative;
}

.page-frame {
    position: absolute;
    left: -10000px;
    top: 0;
    visibility: hidden;
    width: 100%;
    min-height: 70vh;
    height: 70vh;
    border: 0;
    background: #ffffff;
    overflow: hidden;
}

.page-frame.active {
    position: relative;
    left: 0;
    visibility: visible;
}

.active-trades-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.active-trades-head h2 {
    margin: 0;
}

.active-trades-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-all-countdown {
    padding: 7px 10px;
    border: 1px solid #d8dee4;
    border-radius: 4px;
    background: #ffffff;
    color: #52606d;
    font-variant-numeric: tabular-nums;
}
