* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #f4f5f0;
    color: #172022;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.controlShell {
    min-height: 100%;
    padding: 14px;
}

.topbar {
    position: relative;
    min-height: 70px;
    padding: 10px 118px 10px 0;
}

.eyebrow {
    margin: 0 0 3px;
    color: #c84632;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #172022;
    font-size: 34px;
    line-height: 1;
}

.topbarActions {
    position: absolute;
    right: 0;
    top: 12px;
    width: 110px;
    text-align: right;
}

.networkStatus {
    display: block;
    margin-bottom: 8px;
    overflow: hidden;
    color: #596568;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backLink {
    display: inline-block;
    min-width: 64px;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #c8cfca;
    border-radius: 8px;
    background: #ffffff;
    color: #172022;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}

.mainStack {
    max-width: 620px;
    margin: 0 auto;
}

.boardPanel,
.itemCard,
.examplePanel {
    border: 1px solid #d2d8d4;
    border-radius: 8px;
    background: #ffffff;
}

.boardPanel,
.examplePanel {
    padding: 14px;
}

.fieldLabel {
    display: block;
    margin: 0 0 6px;
    color: #596568;
    font-size: 13px;
    font-weight: bold;
}

.textInput {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0 0 12px;
    padding: 9px 11px;
    border: 1px solid #c8cfca;
    border-radius: 8px;
    background: #fbfcfb;
    color: #172022;
    font-size: 18px;
}

.textInput:focus {
    outline: 3px solid #bce8e2;
    border-color: #51a99e;
}

.selectInput {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 11px;
    border: 1px solid #c8cfca;
    border-radius: 8px;
    background: #fbfcfb;
    color: #172022;
    font-size: 18px;
}

.selectInput:focus {
    outline: 3px solid #bce8e2;
    border-color: #51a99e;
}

.toggleLine {
    display: block;
    min-height: 46px;
    padding: 11px 10px;
    border: 1px solid #d9dfdb;
    border-radius: 8px;
    background: #eef8f6;
    color: #172022;
    font-size: 16px;
    font-weight: bold;
}

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

.toggleLine span {
    vertical-align: middle;
}

.smallButton,
.photoPicker {
    min-height: 44px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.smallButton:active,
.photoPicker:active {
    opacity: 0.78;
}

.itemList {
    margin: 12px 0 0;
}

.examplePanel {
    margin: 0 0 12px;
}

.itemCard {
    position: relative;
    margin: 0 0 12px;
    padding: 12px;
    overflow: hidden;
}

.itemCardHeader {
    position: relative;
    min-height: 34px;
    padding-right: 112px;
}

.itemCardTitle {
    margin: 0;
    color: #172022;
    font-size: 18px;
    line-height: 1.2;
}

.showLabel {
    position: absolute;
    right: 0;
    top: -3px;
    min-width: 100px;
    padding: 7px 8px;
    border: 1px solid #d9dfdb;
    border-radius: 8px;
    background: #f5f7f6;
    color: #172022;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.showLabel input {
    width: 18px;
    height: 18px;
    margin: 0 5px 0 0;
    vertical-align: middle;
}

.photoPreview {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 10px 0 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #315e7d;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.photoPreview span {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    overflow: hidden;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.itemCard.disabled .photoPreview,
.itemCard.disabled .textInput {
    opacity: 0.62;
}

.itemActions {
    margin: 0 -4px;
    font-size: 0;
}

.smallButton,
.photoPicker {
    display: inline-block;
    width: 33.333%;
    padding: 10px 5px;
    border: 0;
    font-size: 14px;
    line-height: 1.1;
    vertical-align: top;
}

.photoPicker {
    position: relative;
    overflow: hidden;
    background: #51a99e;
    color: #ffffff;
}

.photoPicker input {
    position: absolute;
    left: -9999px;
}

.smallButton {
    background: #e9ece8;
    color: #172022;
}

.smallButton.removeButton {
    background: #f5e1dc;
    color: #9e3324;
}

.itemActions .photoPicker,
.itemActions .smallButton {
    border-left: 4px solid #ffffff;
    border-right: 4px solid #ffffff;
}

.statusText {
    min-height: 22px;
    margin: 12px 2px 0;
    color: #596568;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

@media (min-width: 560px) {
    .itemCard {
        padding: 14px;
    }

    .photoPreview {
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 28px;
    }

    .topbar {
        padding-right: 104px;
    }

    .topbarActions {
        width: 98px;
    }

    .smallButton,
    .photoPicker {
        font-size: 12px;
    }
}
