/* ================= style.css ================= */
*{
  box-sizing:border-box
}
body{
margin:0;
font-family:system-ui,sans-serif;
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
transition:.3s;
}

body.dark{
background:#020617;
color:#e5e7eb
}

body.light{
background:#f1f5f9;
color:#020617
}

.app{
    width:100%;
    max-width:420px;
    padding:10px
}
.header{
    text-align:center;
    margin-bottom:10px
}
.toggle{
    margin-top:5px;
    border:none;
    padding:6px 12px;
    border-radius:20px;
    cursor:pointer
}


.card{
padding:16px;
border-radius:18px;
background:rgba(255,255,255,.08);
backdrop-filter:blur(10px);
}


.row{
    display:grid;
    grid-template-columns:1fr 80px 40px;
    gap:6px;
    align-items:center;
    padding:6px 0
}
input{
    padding:6px;
    border-radius:8px;
    border:none;
    text-align:center
}
button{
    width:100%;
    margin-top:10px;
    padding:10px;
    border:none;
    border-radius:14px;
    cursor:pointer
}


.progress{
    margin-top:10px;
    height:10px;
    background:#334155;
    border-radius:10px;
    overflow:hidden
}
#bar{
    height:100%;
    width:0%;
    background:#22c55e;
    transition:1s
}


.result{
    text-align:center;
    font-size:20px;
    font-weight:bold;
    margin-top:8px
}
.actions{
    display:flex;
    gap:6px
}
.footer{
    text-align:center;
    font-size:12px;
    margin-top:8px
}


@media print{
.toggle,.actions{display:none}
}