* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #101922;
    color: #f4f8fb;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body {
    min-height: 100vh;
    padding: 14px;
}

.control-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.status-bar {
    display: block;
    min-height: 34px;
    margin-bottom: 12px;
    padding: 9px 12px;
    background: #172534;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(244, 248, 251, 0.78);
    font-size: 13px;
    overflow: hidden;
}

.status-bar a {
    float: right;
    color: #bde7ff;
    text-decoration: none;
}

.header-block {
    margin-bottom: 12px;
    padding: 17px 16px 15px;
    background: #1f3140;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.label,
.panel-heading {
    color: rgba(244, 248, 251, 0.68);
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    margin: 7px 0 5px 0;
    font-size: 31px;
    line-height: 1;
    letter-spacing: 0;
}

p {
    margin: 0;
    color: rgba(244, 248, 251, 0.74);
    font-size: 14px;
    line-height: 1.35;
}

.panel {
    margin-bottom: 12px;
    padding: 13px 12px;
    background: #172534;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.button-list {
    margin-top: 10px;
}

.button-list button,
.top-actions button,
.top-actions a {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0 0 8px 0;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #25394b;
    color: #f4f8fb;
    font: inherit;
    font-size: 16px;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.button-list.compact button {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
    vertical-align: top;
}

.button-list button.is-active {
    background: #2e746f;
    border-color: rgba(255, 255, 255, 0.35);
}

.button-list .button-detail {
    display: block;
    margin-top: 4px;
    color: rgba(244, 248, 251, 0.72);
    font-size: 12px;
    line-height: 1.25;
}

.range-row {
    display: block;
    min-height: 28px;
    margin-top: 4px;
    color: rgba(244, 248, 251, 0.82);
    font-size: 14px;
}

.range-row strong {
    float: right;
    color: #fff;
}

input[type="range"] {
    width: 100%;
    margin: 6px 0 14px;
}

.check-row {
    display: block;
    min-height: 44px;
    padding-top: 10px;
    color: rgba(244, 248, 251, 0.88);
    font-size: 15px;
}

.check-row input {
    width: 22px;
    height: 22px;
    margin: -2px 10px 0 0;
    vertical-align: middle;
}

.top-actions {
    margin-bottom: 12px;
    overflow: hidden;
}

.top-actions button,
.top-actions a {
    text-align: center;
    background: #365268;
}

.back-to-apps {
    display: block;
    line-height: 1.35;
    background: #172534;
    color: rgba(244, 248, 251, 0.82);
    text-decoration: none;
}

.top-actions button:active,
.button-list button:active,
.back-to-apps:active {
    transform: translateY(1px);
}

@media (min-width: 520px) {
    body {
        padding-top: 24px;
    }

    .top-actions button,
    .top-actions a {
        display: inline-block;
        width: 48%;
        margin-right: 2%;
        vertical-align: top;
    }
}
