:root {
    --red: #ed1c24;
    --ink: #202124;
    --muted: #60646c;
    --line: #e8eaed;
    --surface: #ffffff;
}

body {
    color: var(--ink);
    font-family: Nunito, Arial, sans-serif;
    min-width: 320px;
}

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

.topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand img {
    height: 42px;
    width: auto;
}

.topnav {
    align-items: center;
    display: flex;
    gap: 16px;
}

.topnav a, .topnav button, .admin-header a, .primary-link {
    background: var(--red);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    padding: 8px 14px;
    text-decoration: none;
}

.topnav form {
    margin: 0;
}

.notice {
    border-radius: 6px;
    margin: 16px auto;
    max-width: 980px;
    padding: 12px 16px;
}

.notice-success {
    background: #e7f6ec;
    color: #136b2f;
}

.notice-error {
    background: #fde8e8;
    color: #9f1d1d;
}

.login-screen, .thanks-screen, .empty-state {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 32px 16px;
    text-align: center;
}

.login-panel {
    max-width: 420px;
    width: 100%;
}

.login-panel img, .thanks-screen img {
    max-width: 320px;
    width: 100%;
}

.login-panel h1, .thanks-screen h1, .empty-state h1 {
    font-size: 28px;
    margin: 18px 0 8px;
}

.login-panel p {
    color: var(--muted);
    margin-bottom: 24px;
}

.login-panel label, .edit-shell label {
    display: block;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: left;
}

.login-panel input, .edit-shell input, .edit-shell textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    margin-top: 6px;
    padding: 10px 12px;
    width: 100%;
}

.login-panel button, .edit-shell button {
    background: var(--red);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 16px;
    width: 100%;
}

.welcome-strip {
    margin: 16px auto 0;
    max-width: 1024px;
    padding: 0 16px;
}

.intro {
    padding-top: 12px;
}

.tree-logo {
    height: 120px;
    max-width: 100%;
}

.intro h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 16px 0 0;
}

.leaf {
    background: transparent;
    border: 0;
    padding: 0;
}

.aspiration-form {
    padding: 24px 0 56px;
}

.aspiration-form select,
.aspiration-form input,
.aspiration-form textarea {
    border-radius: 4px;
}

.admin-shell, .edit-shell {
    margin: 28px auto;
    max-width: 1180px;
    padding: 0 20px;
}

.admin-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-header h1, .edit-shell h1 {
    font-size: 28px;
    margin: 0;
}

.table-wrap {
    border: 1px solid var(--line);
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    font-size: 14px;
    width: 100%;
}

th, td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f6f7f8;
}

.actions {
    white-space: nowrap;
}

.actions a {
    color: var(--red);
    font-weight: 700;
}

.actions form {
    display: inline;
}

.actions button {
    background: transparent;
    border: 0;
    color: var(--red);
    cursor: pointer;
    font-weight: 700;
    padding: 0 0 0 8px;
}

.edit-shell {
    max-width: 620px;
}

.edit-shell textarea {
    min-height: 160px;
}

.check {
    align-items: center;
    display: flex !important;
    gap: 10px;
}

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

.form-actions {
    display: flex;
    gap: 12px;
}

.form-actions button {
    width: auto;
}

.form-actions a {
    align-items: center;
    color: var(--red);
    display: inline-flex;
    font-weight: 700;
}

@media (max-width: 760px) {
    .topbar, .topnav {
        align-items: flex-start;
        flex-direction: column;
    }

    .wrapper {
        max-width: 100%;
        overflow-x: auto;
    }

    .wrapper .form {
        max-width: calc(100vw - 32px);
    }
}

