html,
body {
    background: #eef3f0;
    color: #10201f;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
}

a {
    color: #0a665d;
}

.cast-shell {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 560px;
    min-height: 100vh;
    padding: 18px 16px 24px;
}

.cast-header {
    align-items: center;
    display: flex;
    padding: 10px 2px 18px;
}

.cast-mark {
    align-items: center;
    background: #10201f;
    border-radius: 8px;
    color: #f5fbf8;
    display: flex;
    font-size: 18px;
    font-weight: bold;
    height: 48px;
    justify-content: center;
    margin-right: 12px;
    width: 48px;
}

.cast-label {
    color: #4c6c68;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
}

h1 {
    font-size: 32px;
    line-height: 1.1;
}

h2 {
    font-size: 19px;
    line-height: 1.25;
}

.room-panel,
.action-panel,
.setup-panel {
    background: #ffffff;
    border: 1px solid #d8e1dd;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 14px;
}

.room-row {
    align-items: flex-start;
    border-bottom: 1px solid #e7eeeb;
    display: flex;
    min-height: 36px;
    padding: 9px 0;
}

.room-row:last-child {
    border-bottom: 0;
}

.room-row span {
    color: #59736f;
    flex: 0 0 82px;
    font-size: 14px;
    line-height: 20px;
}

.room-row strong,
.room-row a {
    flex: 1 1 auto;
    font-size: 16px;
    line-height: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.panel-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-detail {
    color: #4b6762;
    font-size: 14px;
    line-height: 20px;
    margin: -2px 0 12px;
}

.state-pill {
    background: #e7eeeb;
    border-radius: 12px;
    color: #435c58;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    line-height: 16px;
    margin-left: 10px;
    max-width: 190px;
    overflow: hidden;
    padding: 4px 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.state-pill.is-ready {
    background: #d9f2e7;
    color: #165a39;
}

.state-pill.is-warning {
    background: #fff0ca;
    color: #6d5012;
}

.state-pill.is-error {
    background: #ffe1df;
    color: #8a241d;
}

.notice {
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 12px;
    padding: 10px 11px;
}

.notice-wait {
    background: #eef4fb;
    color: #26445f;
}

.notice-ok {
    background: #e0f4e9;
    color: #1b5839;
}

.notice-warning {
    background: #fff4d6;
    color: #694b12;
}

.notice-error {
    background: #ffe6e3;
    color: #7b2119;
}

button,
.primary-action,
.secondary-action {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
    min-height: 52px;
    padding: 14px 16px;
    width: 100%;
}

button:disabled {
    cursor: default;
    opacity: 0.48;
}

.primary-action {
    align-items: center;
    background: #0a665d;
    color: #ffffff;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.secondary-action {
    background: #e7eeeb;
    color: #153431;
}

.button-icon {
    border: 2px solid #ffffff;
    border-radius: 5px;
    display: inline-block;
    font-size: 12px;
    line-height: 17px;
    margin-right: 10px;
    min-width: 26px;
    padding: 1px 3px;
    text-align: center;
}

.input-label {
    color: #344f4b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0 7px;
}

.input-row {
    display: flex;
}

.input-row input {
    border: 1px solid #b9c7c3;
    border-radius: 8px 0 0 8px;
    box-sizing: border-box;
    flex: 1 1 auto;
    font-size: 18px;
    min-height: 50px;
    min-width: 0;
    padding: 10px 11px;
}

.input-row button {
    border-radius: 0 8px 8px 0;
    flex: 0 0 96px;
    min-height: 50px;
    padding-left: 10px;
    padding-right: 10px;
    width: auto;
}

.link-button {
    background: transparent;
    color: #0a665d;
    font-size: 14px;
    margin: 6px 0 12px;
    min-height: 36px;
    padding: 4px 0;
    text-align: left;
    width: auto;
}

.diagnostic-link {
    color: #0a665d;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
    margin-top: 11px;
}

.receiver-url-block {
    background: #f2f6f4;
    border-radius: 7px;
    color: #49645f;
    font-size: 13px;
    line-height: 19px;
    padding: 10px;
}

.receiver-url-block span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.receiver-url-block code {
    color: #153431;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer-status {
    color: #49645f;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    padding: 8px 2px 0;
}

.hidden {
    display: none;
}

@media (max-width: 360px) {
    .cast-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .state-pill {
        max-width: 130px;
    }

    .room-row {
        display: block;
    }

    .room-row span {
        display: block;
        margin-bottom: 2px;
    }
}

@media (min-width: 700px) {
    .cast-shell {
        padding-top: 28px;
    }
}
