*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:#0b1020;background:#f7faf9}
.app-header{position:sticky;top:0;background:#0f766e;color:#fff;padding:12px 16px;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.app-header h1{margin:0;font-size:20px}
.container{max-width:740px;margin:0 auto;padding:16px}

.input-row{display:flex;gap:8px;align-items:center;margin-bottom:16px}
.input-row input{flex:1;padding:10px 12px;border:1px solid #c8d1d0;border-radius:8px;background:#fff}
.input-row input[type=number]{max-width:160px}
.btn{padding:10px 14px;border:1px solid #c8d1d0;background:#fff;border-radius:8px;cursor:pointer}
.btn.primary{background:#0f766e;border-color:#0f766e;color:#fff}
.btn.danger{background:#b91c1c;border-color:#b91c1c;color:#fff}
.inline{display:flex;gap:8px;align-items:center;margin-top:8px}

h2{font-size:16px;color:#1f2937;margin:8px 0}
.list{list-style:none;margin:0;padding:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff}
.list li{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-top:1px solid #f0f2f2}
.list li:first-child{border-top:0}
.list .secondary{opacity:.75;font-size:12px}
.list.compact li{padding:8px 10px}
.badge{background:#eefdf9;color:#0f766e;border:1px solid #b2e8d8;border-radius:999px;padding:2px 8px;font-size:12px}
.row{display:flex;align-items:center;gap:8px}

/* Dialog/Modal styling */
.modal{min-width:min(92vw,560px)}
.modal-header{padding:10px 12px;border-bottom:1px solid #e5e7eb}
.modal-body{padding:10px 12px}
.modal-footer{padding:10px 12px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:8px}

@media (max-width:560px){
  .input-row{flex-wrap:wrap}
  .input-row input[type=number]{flex:1;max-width:unset}
}
