:root {
    color-scheme: dark;
    font-family: "Segoe UI", "Yu Gothic UI", sans-serif;
    color: #e5ebed;
    background: #11171b;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 1100px;
    margin: auto;
    padding: 44px 28px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: .04em;
    margin: 12px 0;
}

h2 {
    margin: 30px 0 10px;
    font-size: 24px;
    font-weight: 500;
}
h2:first-child {
    margin-top: 0;
}

p {
    margin: 5px 0 0;
}

.card {
    background: #1a2329;
    border: 1px solid #2b393f;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

form {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    background: #223238;
    color: inherit;
    border: 1px solid #49605e;
    border-radius: 6px;
    font: inherit;
}

button {
    width: fit-content;
    padding: 10px 20px;
    margin: 20px 0 0;
    border: 1px solid #49605e;
    border-radius: 5px;
    background: #315851;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.message {
    padding: 12px 14px;
    border-radius: 6px;
    background: #233734;
}

.error {
    background: #4c302e;
    color: #fff;
}

.activity {
    margin-top: 38px;
    background: #1a2329;
    border: 1px solid #2b393f;
    border-radius: 12px;
    padding: 24px;
}

.activity-note {
    font-size: 12px;
    color: #97a5ad;
    line-height: 1.8;
}

.activity-fade {
    position: relative;
}

.activity-fade::before,
.activity-fade::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.activity-fade::before {
    left: 0;
    background: linear-gradient(to right, #1a2329, rgba(26, 35, 41, 0));
}

.activity-fade::after {
    right: 0;
    background: linear-gradient(to left, #1a2329, rgba(26, 35, 41, 0));
}

.activity-fade.more-left::before,
.activity-fade.more-right::after {
    opacity: 1;
}

.activity-scroll {
    overflow-x: auto;
}

.activity-grid {
    min-width: 700px;
}

.activity-row {
    display: grid;
    grid-template-columns: 65px repeat(24, minmax(18px, 1fr)) 65px;
    gap: 0;
    align-items: center;
    margin: 22px 0;
}

.activity-label {
    font-size: 11px;
    color: #a8b7bd;
    white-space: nowrap;
}

.activity-label-end {
    text-align: right;
}

.activity-cell {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    border: 1px solid #425058;
    border-right: 0;
    min-width: 0;
}

.activity-cell:nth-last-child(2) {
    border-right: 1px solid #425058;
}

.activity-row:last-child .activity-cell:nth-last-child(2) {
    border-color: rgba(66, 80, 88, 0.35);
}

.activity-quarter {
    min-width: 0;
    background: #28343a;
}

.activity-quarter.active {
    background: #56ad7c;
}

.activity-quarter.future {
    background: transparent;
}

.activity-quarter:focus {
    outline: 2px solid #e5ebed;
    outline-offset: -2px;
    z-index: 2;
}

.activity-hour {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    font-size: 9px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow: 0 1px 2px #111, 0 0 2px #111;
}

@media(max-width:750px) {
    body {
        padding: 24px 18px
    }

    h1 {
        font-size: 27px
    }

    .card,
    .activity {
        padding: 16px
    }
}