* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Source Serif 4", Georgia, "Iowan Old Style", serif;
    color: #2c2416;
    min-height: 100vh;
    padding: 22px 14px 40px;
    background: #efe6d6;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background: #f6f0e4;
    border: 1px solid #ddcbb0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(61, 44, 28, 0.12);
}

header {
    text-align: center;
    padding: 22px 22px 0;
}

h1, h2, h3 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 560;
    letter-spacing: -0.02em;
    color: #3d2c1c;
}

h1 {
    font-size: 2.3rem;
    line-height: 1.1;
}

.sheet {
    padding: 16px 22px 8px;
}

.banner {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 60%;
    border: 1px solid #ddcbb0;
    border-radius: 10px;
    margin: 0 0 18px;
}

section {
    margin-bottom: 26px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #3d2c1c;
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ddcbb0;
    border-radius: 10px;
    background: #fffaf3;
    color: #2c2416;
    font-family: inherit;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 2px rgba(90, 60, 30, 0.05);
}

input[type="text"]:focus, textarea:focus {
    outline: 2px solid #c4893a;
    border-color: #c4893a;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.45;
}

::placeholder {
    color: #7a6550;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    background: #5e4634;
    color: #fbf6ee;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    margin: 5px 8px 5px 0;
    min-height: 44px;
    touch-action: manipulation;
}

.btn:hover, .btn:active {
    background: #4a3728;
}

.btn:focus-visible {
    outline: 2px solid #c4893a;
    outline-offset: 2px;
}

.btn.primary {
    background: #9a3f2a;
    width: 100%;
    margin-top: 4px;
    font-weight: 600;
}

.btn.primary:hover, .btn.primary:active {
    background: #7e3221;
}

.btn.danger {
    background: transparent;
    color: #8a3a2c;
    border-color: #d7b0a4;
}

.btn.danger:hover, .btn.danger:active {
    background: #f8ebe6;
}

.hint, .status {
    font-size: 0.95rem;
    color: #5c4a38;
    margin-top: 8px;
    line-height: 1.45;
}

.status:empty {
    display: none;
}

h2 {
    font-size: 1.7rem;
}

.list-section, .summary-section {
    border-top: 1px solid #e4d3b8;
    padding-top: 18px;
}

.hidden {
    display: none;
}

#item-list {
    margin: 12px 0 4px;
}

.item {
    display: flex;
    align-items: center;
    padding: 12px 2px;
    border-bottom: 1px solid #eadfcd;
    font-size: 1.12rem;
}

.item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    accent-color: #9a3f2a;
    flex-shrink: 0;
}

.item.checked label {
    text-decoration: line-through;
    color: #746556;
}

.item label {
    flex: 1;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.item .price {
    font-size: 0.95rem;
    color: #7a5b3a;
    margin-left: 8px;
    min-width: 96px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.item .price.missing {
    color: #6f5b45;
    font-style: italic;
    font-size: 0.85rem;
}

.actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-section h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

#summary {
    background: #fbf7ef;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e4d3b8;
    border-left: 4px solid #c4893a;
    font-size: 1.05rem;
    line-height: 1.65;
}

#summary strong {
    color: #2c2416;
}

footer {
    text-align: center;
    margin-top: 8px;
    font-size: 0.88rem;
    color: #6f5b45;
    border-top: 1px solid #eadfcd;
    padding: 14px 0 16px;
    line-height: 1.4;
}

@media (max-width: 480px) {
    body {
        padding: 10px 8px 18px;
    }

    .container {
        border-radius: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    .sheet {
        padding: 14px 16px 8px;
    }

    .banner {
        height: 160px;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    .actions {
        flex-direction: column;
    }

    .item {
        font-size: 1.05rem;
        padding: 14px 0;
    }
}
