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

body {
    margin: 0;
    min-height: 100vh;
}

.app-shell {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding:
        calc(env(safe-area-inset-top) + 24px) 16px calc(env(safe-area-inset-bottom) + 24px);
}

.app-shell-home {
    padding-block: 0;
    padding-top: 150px;
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.login-shell {
    padding-top: 56px;
}

h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.app-shell-home h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 3rem;
    margin-bottom: 40px;
}

input[type="search"],
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    min-height: 64px;
    font-size: 1.35rem;
    padding: 16px;
    border-radius: 14px;
}

button,
input[type="submit"] {
    width: 100%;
    min-height: 60px;
    font-size: 1.15rem;
    border-radius: 14px;
}

form {
    width: 100%;
}

#results {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

#results li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#results a {
    text-decoration: none;
    font-size: 1.1rem;
}

.meta {
    color: #8d8d8d;
    font-size: 0.9rem;
}

.note-content ul {
    list-style: none;
    padding-left: 0;
}

.note-content li::marker {
    content: "";
}

.note-content {
    line-height: 1.6;
    font-size: 1.05rem;
}

.note-content h1,
.note-content h2,
.note-content h3 {
    margin-top: 1.5rem;
}

.note-content p {
    margin: 1rem 0;
}

.note-content a {
    text-decoration: underline;
}

.note-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

.note-content pre {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 10px;
    overflow-x: auto;
}

.note-content img {
    max-width: 100%;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .app-shell {
        padding-top: calc(env(safe-area-inset-top) + 40px);
    }

    input[type="search"],
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        min-height: 64px;
        font-size: 1.35rem;
    }
}