* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
}

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

.app {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 38px 20px 45px;
}

.hidden {
    display: none !important;
}


/* BRAND */

.brand {
    direction: ltr;
    text-align: left;
    margin-bottom: 52px;
    line-height: .85;
}

.brand-small {
    font-size: 17px;
    letter-spacing: 6px;
}

.brand-big {
    font-size: 60px;
    font-weight: 900;
    letter-spacing: -4px;
}

.brand-app {
    margin-top: 13px;
    font-size: 13px;
    letter-spacing: 9px;
}


/* GENERAL */

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.intro {
    margin-bottom: 28px;
}

.intro h1 {
    margin: 0 0 10px;
}

.intro p {
    color: #99978f;
    line-height: 1.8;
}


/* FORMS */

form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

label {
    margin-top: 11px;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #383934;
    border-radius: 5px;
    background: #171816;
    color: #e7e1d5;
    font-size: 16px;
    outline: none;
}

textarea {
    resize: vertical;
    line-height: 1.7;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #aaa69c;
}

button {
    width: 100%;
    margin-top: 22px;
    padding: 16px;
    border: 0;
    border-radius: 5px;
    background: #ddd7cb;
    color: #10110f;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

button:disabled {
    opacity: .4;
    cursor: default;
}


/* HOME */

.home-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.home-header h1 {
    margin: 14px 0 0;
    font-size: 22px;
}

.owner-badge {
    padding: 7px 9px;
    border: 1px solid #454640;
    font-size: 10px;
    letter-spacing: 2px;
    color: #aaa79e;
}


/* USER THERAPY */

.therapy-card,
.status-card {
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid #343530;
    background: #171816;
}

.therapy-card small,
.status-card small {
    color: #77786f;
    letter-spacing: 2px;
}

.therapy-card h2 {
    margin: 14px 0 8px;
}

.therapy-card p,
.status-card p {
    color: #aaa79e;
    line-height: 1.7;
}


/* EXPLANATION */

.back-button {
    width: auto;
    margin: 0 0 28px;
    padding: 8px 0;
    background: transparent;
    color: #aaa79e;
}

.explanation-box {
    margin: 24px 0;
    padding: 21px;
    border: 1px solid #343530;
    background: #171816;
    line-height: 1.95;
}

.explanation-box p {
    margin: 0 0 18px;
}

.explanation-box p:last-child {
    margin-bottom: 0;
}


/* CHOICES */

.choice-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 10px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid #343530;
    background: #171816;
}

.choice input {
    width: auto;
    margin: 0;
}


/* OWNER */

.owner-title {
    margin-bottom: 18px;
}

.owner-title small {
    color: #77786f;
    letter-spacing: 2px;
}

.owner-title h2 {
    margin: 8px 0 0;
}

.owner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 20px 0;
}

.owner-stats > div {
    min-width: 0;
    padding: 16px;
    border: 1px solid #343530;
    background: #171816;
}

.owner-stats small {
    display: block;
    margin-bottom: 8px;
    color: #77786f;
    font-size: 10px;
}

.owner-stats strong {
    font-size: 25px;
}

#ownerTherapyMessage,
#therapyFormMessage,
#message {
    min-height: 22px;
    text-align: center;
    color: #aaa79e;
    font-size: 14px;
}

.selected-request {
    margin-top: 24px;
    padding: 21px;
    border: 1px solid #343530;
    background: #171816;
}

.selected-request > small {
    color: #77786f;
    letter-spacing: 2px;
}

.selected-request h2 {
    margin: 12px 0 19px;
}

.selected-user {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 18px;
    border-bottom: 1px solid #30312d;
    color: #aaa79e;
}

.selected-user strong {
    color: #e7e1d5;
}

.request-section {
    margin-top: 20px;
}

.request-section small {
    color: #77786f;
}

.request-section p {
    margin-bottom: 0;
    line-height: 1.8;
}

.danger-button {
    margin-top: 36px;
    background: #2b1d1d;
    color: #ddd7cb;
}


/* NAV */

.bottom-nav {
    display: grid;
    gap: 4px;
    margin-top: 38px;
    border-top: 1px solid #343530;
    padding-top: 8px;
}

.user-nav {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.owner-nav {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.bottom-nav button {
    min-width: 0;
    margin: 0;
    padding: 12px 4px;
    background: transparent;
    color: #77786f;
    font-size: 10px;
    font-weight: 600;
}

.bottom-nav .active-tab {
    color: #e7e1d5;
}


/* MOBILE */

@media (max-width: 360px) {

    .app {
        padding-left: 15px;
        padding-right: 15px;
    }

    .brand-big {
        font-size: 52px;
    }

    .owner-stats {
        gap: 6px;
    }

    .owner-stats > div {
        padding: 12px;
    }
}
