body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #111;
}

.page {
    max-width: 520px;
    margin: 0 auto;
    padding-top: 16px;
    padding-bottom: 2px;
    padding-left: 16px;
    padding-right: 16px;
}

h1 {
    font-size: 28px;
    margin: 0 0 20px;
    line-height: 1.2;
}

h2 {
    font-size: 18px;
    margin: 28px 0 12px;
    line-height: 1.2;
}

.add-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

input {
    flex: 1;
    font-size: 16px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
}

button {
    font-size: 16px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #006db6;
    color: white;
    cursor: pointer;
}

.card {
    display: flex;
    gap: 10px;
    padding: 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: #ebf4ff;
    border: 1px solid #e8e8e8;
    justify-content: space-between;
    align-items: flex-start;
}

.card-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
}

.card-left {
    flex: 1;
}

.card-date {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.toggle-button {
    padding: 0;
    width: 28px;
    height: 28px;
    background: transparent;
    color: #111;
    font-size: 20px;
}

.done {
    color: #888;
    text-decoration: line-through;
}

.empty {
    color: #777;
    margin-top: 24px;
}

textarea {
    flex: 1;
    font-size: 16px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    resize: none;
    min-height: 48px;
    font-family: inherit;
}

input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.new-board-link {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
}

.new-board-link:hover {
    color: #111;
    text-decoration: underline;
}

.card-footer {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.actions {
    margin-bottom: 16px;
}

.actions button {
    background: transparent;
    color: #555;
    padding: 0;
    font-size: 14px;
}

.actions button:hover {
    color: #111;
}

.share-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.share-box input {
    flex: 1;
    font-size: 11px;
    color: #999;
    border: 0;
    background: transparent;
    padding: 0;
}

.board-link {
    margin-bottom: 16px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    user-select: none;
}

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

.board-header h1 {
    margin: 0;
}

.board-share {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 8px;
}

.board-toplink {
    font-size: 14px;
    color: #777;
    flex-shrink: 0;
    font-weight: bold;
    padding-right: 32px;
}

.new-board-link {
    color: #999;
}

.board-share {
    padding-right: 2px;
}

.scroll-top {
    display: block;
    margin: 8px auto 24px;
    padding: 14px 16px;
    text-align: center;
    color: #999;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.recent-boards {
    margin-top: 24px;
    color: #999;
}

.recent-board-link {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #ebf4ff;
    border: 1px solid #e8e8e8;
    color: #111;
    text-decoration: none;
}

.recent-board-link:hover {
    border-color: #cfddea;
}

.recent-board-title,
.recent-board-date {
    display: block;
}

.recent-board-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.35;
    word-break: break-word;
}

.recent-board-date {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.qr-page {
    text-align: center;
}

.qr-image {
    margin: 24px auto 18px;
}

.print-card {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
    align-items: flex-start;
}

.print-card-checkbox {
    width: 22px;
    height: 22px;
    border: 1px solid #999;
    text-align: center;
    line-height: 20px;
    flex-shrink: 0;
}

.print-card-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo-header h1 {
    margin: 0;
    line-height: 1;
}

@media print {
    .page {
        max-width: none;
        padding: 0;
    }

    .board-link {
        user-select: auto;
    }
}
