html {
    line-height: 1.5;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
body {
    margin: 0;
    background-color: whitesmoke;
}
.progress-bar {
    /*
     * a progress bar is created by the js on the fly
     */
    display: block;
    position: fixed;
    width: 100%;
    left: 0px;
    top: 0px;
    z-index: 50;
    height: 0.25rem;
    background-color: royalblue;
    transition:
        width 300ms ease-out,
        opacity 150ms 150ms ease-in;
    transform: translate3d(0, 0, 0);
}
.viewport {
    /*
     * the viewport contains 1 or more panes
     */
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.pane {
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    max-width: 640px;
}
.pane:first-child {
    /*
     * only pane is easy, no need to made a scroll context
     */
    display: flow-root;
}
.pane:not(:first-child) {
    /*
     * subsequent panes are hidden
     */
    display: none;
}
.pane .section {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 0.5rem;
}
.action-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    line-height: 1.25;
}
.action-bar .button {
    color: blue;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.25rem;
    padding-top: 0.5rem;
}
.toolbar .button {
    display: inline-block;
    flex: none;
    appearance: none;
    white-space: nowrap;
    border-radius: 0.25rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: bold;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.25rem;
    background-color: darkorchid;
    color: white;
}
.toolbar .button.convenient {
    background-color: springgreen;
}
.toolbar .button.danger {
    background-color: crimson;
}
@media (min-width: 801px) {
    /*
     * display upto 2 panes, side by side
     */
    .pane.pane1of1 {
	/*
	 * only pane is easy, no need to made a scroll context
	 */
	display: flow-root;
	max-width: 800px;
	width: 100%;
    }
    .pane.pane1of2,
    .pane.pane2of2 {
	/*
	 * 2 side-by-side panes, each occupy 50% width of the screen
	 */
	display: flow-root;
	width: 50vw;
	height: 100vh;
	overflow-x: clip;
	overflow-y: scroll;
	scrollbar-gutter: stable;
    }
}
@media (min-width: 1280px) {
    .pane.pane1of1 {
	max-width: 1024px;
    }
    .pane.pane1of2,
    .pane.pane2of2 {
	max-width: 640px;
    }
}
