:root {
    color-scheme: light;
    font-synthesis: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: #ffffff;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #ffffff;
    color: #000000;
    font-family: Baskerville, "Big Caslon", Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex="-1"]:focus-visible {
    outline: 1px solid #77716a;
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.page {
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 72px 40px 64px;
}

.site-header {
    padding-bottom: 44px;
    text-align: center;
}

.wordmark {
    display: inline-block;
    color: #000000;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-decoration: none;
}

.site-header h1 {
    margin: 10px 0 0;
    color: #666666;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.view {
    border-top: 0.5px solid #cccccc;
}

.view-loading,
.auth-view,
.inactive-view,
.error-view {
    padding: 52px 0;
    text-align: center;
}

.view-loading p,
.inactive-view p,
.error-view p {
    margin: 0;
    color: #666666;
    font-size: 14px;
}

.auth-view > div,
.auth-view form,
.inactive-view,
.error-view {
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
}

h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
}

.intro {
    margin: 10px auto 0;
    max-width: 430px;
    color: #666666;
    font-size: 14px;
    line-height: 1.55;
}

.auth-view form {
    margin-top: 32px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #666666;
    font-size: 12.5px;
}

input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cccccc;
    border-radius: 0;
    background: #ffffff;
    color: #000000;
    padding: 11px 13px;
    font-size: 16px;
    line-height: 1.4;
    appearance: none;
}

input:focus {
    border-color: #8f887f;
    outline: none;
}

.code-input {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.32em;
    text-align: center;
}

.button {
    min-height: 48px;
    border: 1px solid #000000;
    border-radius: 0;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14.5px;
    line-height: 1.3;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button-primary:hover:not(:disabled) {
    border-color: #333333;
    background: #333333;
}

.button-secondary {
    border-color: #bdbdbd;
    background: #ffffff;
    color: #000000;
}

.button-secondary:hover:not(:disabled) {
    border-color: #777777;
}

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

.auth-view form .button,
.inactive-view .button,
.error-view .button {
    width: 100%;
    margin-top: 12px;
}

.text-button {
    min-height: 24px;
    border: 0;
    border-bottom: 0.5px solid #bdbdbd;
    border-radius: 0;
    background: transparent;
    color: #666666;
    padding: 2px 0 3px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
}

.text-button:hover {
    color: #000000;
    border-color: #777777;
}

#change-email-button,
#inactive-sign-in-button,
#error-sign-in-button {
    margin-top: 22px;
}

.form-status,
.action-status,
.dashboard-status {
    min-height: 20px;
    margin: 16px 0 0;
    color: #666666;
    font-size: 13px;
}

.inactive-view h2,
.error-view h2 {
    margin-bottom: 8px;
}

.inactive-view .button,
.error-view .button {
    display: block;
    margin-top: 28px;
    text-decoration: none;
}

.account-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 14px 0;
    color: #666666;
    font-size: 12.5px;
    overflow-wrap: anywhere;
}

.account-line .text-button {
    flex: 0 0 auto;
}

.dashboard-section {
    border-top: 0.5px solid #d7d7d7;
    padding: 40px 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: #666666;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.invitation {
    text-align: center;
}

.invite-link {
    margin-top: 28px;
    color: #333333;
    font-size: 14px;
    text-overflow: ellipsis;
}

.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.action-status {
    margin-top: 10px;
}

.price-section {
    text-align: center;
}

.price {
    margin: 0;
    font-size: 46px;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.price-period {
    color: #666666;
    font-size: 14px;
    letter-spacing: 0;
}

.price-note {
    min-height: 20px;
    margin: 10px 0 0;
    color: #666666;
    font-size: 13px;
}

.breakdown,
.counts {
    margin: 30px 0 0;
    border-top: 0.5px solid #d7d7d7;
}

.breakdown > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 0.5px solid #e5e5e5;
    padding: 9px 0;
}

.breakdown dt,
.breakdown dd,
.counts dt,
.counts dd {
    margin: 0;
}

.breakdown dt {
    color: #666666;
    font-size: 13.5px;
}

.breakdown dd {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.status-section h2,
.activity-section h2 {
    font-size: 16px;
}

.counts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 0.5px solid #d7d7d7;
}

.counts > div {
    padding: 16px 8px 14px;
    text-align: center;
}

.counts > div + div {
    border-left: 0.5px solid #e5e5e5;
}

.counts dt {
    color: #666666;
    font-size: 12px;
}

.counts dd {
    margin-top: 3px;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.fine-print {
    margin: 12px 0 0;
    color: #777777;
    font-size: 12.5px;
    line-height: 1.5;
}

.activity-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    border-top: 0.5px solid #d7d7d7;
}

.activity-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 0.5px solid #e5e5e5;
    padding: 11px 0;
    font-size: 13.5px;
}

.activity-list time {
    flex: 0 0 auto;
    color: #777777;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.empty-state {
    margin: 18px 0 0;
    color: #666666;
    font-size: 13.5px;
}

.dashboard-status {
    margin: 0;
    text-align: center;
}

.account-actions {
    display: flex;
    justify-content: center;
    gap: 22px;
    border-top: 0.5px solid #d7d7d7;
    padding-top: 30px;
}

.account-actions a {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    color: #666666;
    border-bottom: 0.5px solid #bdbdbd;
    font-size: 13px;
    line-height: 1.35;
    padding: 2px 0;
    text-decoration: none;
}

.account-actions a:hover {
    color: #000000;
    border-color: #777777;
}

.terms-page .site-header {
    padding-bottom: 40px;
}

.terms-content {
    border-top: 0.5px solid #cccccc;
    padding-top: 34px;
}

.terms-content .updated {
    margin: 0 0 32px;
    color: #777777;
    font-size: 12.5px;
}

.terms-content section + section {
    margin-top: 30px;
}

.terms-content h2 {
    margin: 0 0 9px;
    font-size: 15.5px;
}

.terms-content p {
    margin: 0;
    color: #333333;
    font-size: 14px;
    line-height: 1.65;
}

.terms-content p + p {
    margin-top: 9px;
}

.terms-back {
    margin: 42px 0 0;
    border-top: 0.5px solid #d7d7d7;
    padding-top: 24px;
}

.terms-back a {
    color: #666666;
    border-bottom: 0.5px solid #bdbdbd;
    font-size: 13px;
    text-decoration: none;
}

.terms-back a:hover {
    color: #000000;
    border-color: #777777;
}

.noscript {
    border-top: 0.5px solid #cccccc;
    padding: 40px 0;
    color: #666666;
    font-size: 14px;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .page {
        padding: 48px 24px 44px;
    }

    .site-header {
        padding-bottom: 36px;
    }

    .view-loading,
    .auth-view,
    .inactive-view,
    .error-view {
        padding: 42px 0;
    }

    .dashboard-section {
        padding: 34px 0;
    }

    .price {
        font-size: 42px;
    }

    .counts > div {
        padding-right: 4px;
        padding-left: 4px;
    }

    .counts dt {
        font-size: 11.5px;
    }

    .account-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 390px) {
    .button-row {
        grid-template-columns: 1fr;
    }

    .counts {
        grid-template-columns: 1fr 1fr;
    }

    .counts > div:nth-child(3) {
        border-left: 0;
    }

    .counts > div:nth-child(n + 3) {
        border-top: 0.5px solid #e5e5e5;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
