body{
    font-family:Arial,sans-serif;
    background:#f4f6f8;
    margin:0;
    padding:20px;
}

.container{
    max-width:900px;
    margin:auto;
}

.card{
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

h1{
    margin-top:0;
    margin-bottom:20px;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

input[type="text"],
textarea{
    width:100%;
    box-sizing:border-box;
    padding:12px;
    border:1px solid #ccc;
    border-radius:10px;
    font-size:14px;
}

textarea{
    min-height:220px;
    resize:vertical;
    font-family:monospace;
}

button{
    background:#222;
    color:#fff;
    border:none;
    padding:14px 20px;
    border-radius:10px;
    cursor:pointer;
    font-size:15px;
}

button:hover{
    opacity:0.92;
}

.help{
    margin-top:10px;
    margin-bottom:20px;
    font-size:13px;
    color:#666;
    line-height:1.6;
}

.error{
    background:#ffe8e8;
    color:#c0392b;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

.success{
    background:#e9f9ee;
    color:#1e8449;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

.loading{
    opacity:0.7;
    pointer-events:none;
}

.topbar{
    position:sticky;
    top:0;
    z-index:10;
    background:#fff;
    padding:15px;
    border-radius:12px;
    margin-bottom:15px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.topbar-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
}

.progress{
    font-weight:bold;
}

.filters{
    display:flex;
    gap:8px;
}

.filter-btn{
    padding:8px 12px;
    border-radius:8px;
    border:none;
    background:#ddd;
    cursor:pointer;
}

.filter-btn.active{
    background:#222;
    color:#fff;
}

.list{
    margin-top:15px;
}

.item-row{
    background:#fff;
    padding:14px;
    border-radius:12px;
    margin-bottom:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.06);
}

.item-row.checked{
    opacity:0.6;
}

.item-row.partial{
    border-left:5px solid #f39c12;
}

.item-header{
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.item-content{
    flex:1;
}

.item-description{
    font-weight:700;
    margin-bottom:4px;
}

.item-name{
    color:#666;
    font-size:14px;
    margin-bottom:10px;
}

.item-meta{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    font-size:14px;
}

.item-meta div{
    min-width:120px;
}

.available-input{
    width:180px;
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
}

.summary{
    background:#fff;
    padding:20px;
    border-radius:12px;
    margin-top:20px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

th,td{
    border:1px solid #ddd;
    padding:10px;
    text-align:left;
    font-size:14px;
}

th{
    background:#f4f4f4;
}

.status-badge{
    display:inline-block;
    padding:4px 8px;
    border-radius:6px;
    font-size:12px;
    font-weight:bold;
}

.status-pending{
    background:#fceaea;
    color:#c0392b;
}

.status-partial{
    background:#fff4dd;
    color:#b9770e;
}

.status-available{
    background:#eafaf1;
    color:#1e8449;
}

@media(max-width:768px){

    .item-meta{
        flex-direction:column;
        gap:10px;
    }

    .available-input{
        width:100%;
    }
}

input,
textarea,
button{
    font-size:16px;
}