html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #1d2622;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

button,
input,
textarea {
    font-family: inherit;
}

.mobile-shell {
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 0 14px 0;
}

.topbar > div:first-child {
    padding-right: 12px;
}

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

.topbar h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1;
}

.topbar-actions {
    flex: 0 0 auto;
    text-align: right;
}

.status-pill,
.back-link {
    display: inline-block;
    min-height: 34px;
    padding: 8px 10px;
    border: 2px solid #1d2622;
    background: #ffffff;
    color: #1d2622;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
}

.back-link {
    margin-top: 6px;
}

.main-stack {
    padding-bottom: 24px;
}

.card {
    margin-bottom: 14px;
    border: 2px solid #1d2622;
    background: #ffffff;
    padding: 14px;
}

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

.card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1;
}

.card-head span {
    margin-left: 12px;
    color: #52605a;
    font-weight: bold;
}

.name-card label,
.field-label {
    display: block;
    margin-bottom: 5px;
    color: #52605a;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.name-row {
    display: flex;
}

input,
textarea {
    width: 100%;
    border: 2px solid #1d2622;
    background: #f8fafb;
    color: #1d2622;
    font-size: 16px;
}

input {
    min-height: 48px;
    padding: 8px 10px;
}

textarea {
    display: block;
    min-height: 112px;
    margin-bottom: 10px;
    padding: 10px;
    resize: vertical;
}

.secondary-button,
.primary-button,
.upvote-button {
    min-height: 48px;
    border: 2px solid #1d2622;
    font-size: 16px;
    font-weight: bold;
    touch-action: manipulation;
}

.secondary-button {
    flex: 0 0 92px;
    margin-left: 8px;
    background: #24736f;
    color: #ffffff;
}

.primary-button {
    background: #b4482f;
    color: #ffffff;
}

.full-button {
    width: 100%;
}

.question-list {
    min-height: 130px;
}

.control-question {
    margin: 0 0 10px 0;
    border: 2px solid #1d2622;
    background: #f8fafb;
    padding: 12px;
}

.control-question.own {
    background: #eef2ed;
}

.control-question-text {
    margin: 0 0 8px 0;
    color: #1d2622;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.2;
}

.control-question-meta {
    margin: 0 0 10px 0;
    color: #52605a;
    font-size: 13px;
    font-weight: bold;
}

.upvote-button {
    width: 100%;
    background: #ffffff;
    color: #1d2622;
}

.upvote-button:active {
    background: #dfe9fb;
}

.upvote-button.selected {
    background: #24736f;
    color: #ffffff;
}

.upvote-button.disabled {
    background: #e6e9ea;
    color: #52605a;
}

.status-text {
    min-height: 20px;
    margin: 8px 0 0 0;
    color: #52605a;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 360px) {
    .mobile-shell {
        padding: 10px;
    }

    .topbar {
        display: block;
    }

    .topbar-actions {
        margin-top: 10px;
        text-align: left;
    }

    .topbar h1 {
        font-size: 26px;
    }

    .name-row {
        display: block;
    }

    .secondary-button {
        width: 100%;
        margin: 8px 0 0 0;
    }
}
