:root {
    --wd-ref-typeface-brand: 'Pagetype Sans', 'Arina', sans-serif;
    --wd-ref-typeface-plain: 'Pagetype Sans', 'Arina', sans-serif;
    --wd-sys-color-primary: rgb(218 0 25);
}

/* Toolbar + menus + buttons */
.tox {
    font-family: var(--wd-ref-typeface-plain) !important;
}

/* Dropdowns and menus */
.tox .tox-collection,
.tox .tox-listboxfield .tox-listbox--select,
.tox-button, .tox-dialog__title,
.tox-textfield {
    font-family: var(--wd-ref-typeface-plain) !important;
}

/* .tox * {
    font-family: 'Swiss Grotesk', sans-serif !important;
} */

.tox-textarea {
    font-family: 'Courier 12 Point', 'Courier New', Courier, monospace !important;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--wd-ref-typeface-plain) !important;
}

body {
    background-color: #f1f0ef;
    display: flex;
    flex-direction: column;
}

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    padding: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1000;
}

#status {
    margin-left: auto;
    background: #eee;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

#app-header .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo {
    height: 28px;
}

#app-header .right button {
    margin-left: 10px;
    padding: 6px 12px;
    cursor: pointer;
}

/* Push editor below header */
.tox-writify {
    flex: 1;
    margin-top: 50px !important;
}
