*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { color: var(--ink-2); background: var(--page); }
.relaunch-app { display: flex; min-height: 100vh; }
.relaunch-login { display: flex; flex-direction: column; align-items: center; min-height: 100vh; min-height: 100dvh; padding: 16px; }
.relaunch-login > .login-card { flex: 0 0 auto; width: 100%; max-width: 440px; margin-block: auto; }
.div-menu {
    position: sticky;
    top: 0;
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: linear-gradient(180deg, var(--side-top), var(--side-bottom));
    color: var(--side-ink);
}
.relaunch-workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.div-content { flex: 1; width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 24px 30px 56px; }
.div-content-fixed { margin-bottom: 12px; }
.div-content-scrollbox, .scrollbox-embedded { overflow-x: auto; }
.relaunch-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 30px; border-top: 1px solid var(--line-2); font-size: 12px; }
.relaunch-footer p { margin: 0; }
#dwrLoadingMessage { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10000; max-width: calc(100vw - 32px); pointer-events: none; }
@media (max-width: 980px) {
    :root { --sidebar-width: 240px; }
    .div-content { padding: 24px 20px 40px; }
}
/* Keep every existing navigation item accessible on small screens. */
@media (max-width: 640px) {
    .relaunch-app { flex-direction: column; }
    .div-menu { position: static; flex-basis: auto; width: 100%; height: auto; overflow: visible; }
    .div-content { padding: 20px 14px 32px; }
    .relaunch-footer { padding: 16px 14px; }
}
